tree-optimization/111233 - loop splitting miscompile
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr86363.c
blob154f9386e051b34515431b391de7b6093669a631
1 /* { dg-do run } */
2 /* { dg-additional-options "-w -Wno-psabi" } */
4 typedef char U __attribute__ ((vector_size (16)));
5 typedef unsigned V __attribute__ ((vector_size (16)));
7 V g;
10 f (V v, U u)
12 __builtin_memset (&u[v[0]], 0, 1);
13 g ^= u[0];
14 return g;
17 int
18 main (void)
20 V x = f ((V) { 5 }, (U) { 1 });
22 if (x[0] != 1 || x[1] != 1 || x[2] != 1 || x[3] != 1)
23 __builtin_abort ();
24 return 0;