2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr69551.c
blob1505fc21dbf86a953757b6354f45bd94ef98075e
1 /* PR target/69551 */
2 /* { dg-do run { target sse_runtime } } */
3 /* { dg-options "-O2 -mno-sse2 -msse" } */
5 typedef unsigned char v16qi __attribute__ ((vector_size (16)));
6 typedef unsigned int v4si __attribute__ ((vector_size (16)));
8 char __attribute__ ((noinline, noclone))
9 test (v4si vec)
11 vec[1] = 0x5fb856;
12 return ((v16qi) vec)[0];
15 int
16 main ()
18 char z = test ((v4si) { -1, -1, -1, -1 });
20 if (z != -1)
21 __builtin_abort ();
22 return 0;