1 /* { dg-do run } */ 2 /* { dg-additional-options "-w -Wno-psabi" } */ 3 4 typedef char U __attribute__ ((vector_size (16))); 5 typedef unsigned V __attribute__ ((vector_size (16))); 6 7 V g; 8 9 V f(V v,U u)10f (V v, U u) 11 { 12 __builtin_memset (&u[v[0]], 0, 1); 13 g ^= u[0]; 14 return g; 15 } 16 17 int main(void)18main (void) 19 { 20 V x = f ((V) { 5 }, (U) { 1 }); 21 22 if (x[0] != 1 || x[1] != 1 || x[2] != 1 || x[3] != 1) 23 __builtin_abort (); 24 return 0; 25 } 26