PR c++/67273
[official-gcc.git] / gcc / testsuite / c-c++-common / pr72747-1.c
blobe87069df0f667189d5be45ad661c3e5575f7bc1c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-options "-maltivec -fdump-tree-gimple" } */
5 /* PR 72747: Test that cascaded definition is happening for constant vectors. */
7 #include <altivec.h>
9 int main (int argc, char *argv[])
11 __vector int v1,v2;
12 v1 = v2 = vec_splats ((int) 42);
13 return 0;
15 /* { dg-final { scan-tree-dump-times " v2 = { 42, 42, 42, 42 }" 1 "gimple" } } */