1 /* { dg-do compile } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-options "-c -maltivec -fdump-tree-gimple" } */
4
5 /* PR 72747: test that cascaded definition is happening for non constants. */
6
7 void foo ()
8 {
9 extern int i;
10 __vector int v,w;
11 v = w = (vector int) { i };
12 }
13
14 int main (int argc, char *argv[])
15 {
16 return 0;
17 }
18 /* { dg-final { scan-tree-dump-times " w = {i.0_1}" 1 "gimple" } } */