1 /* PR rtl-optimization/16104 */
2 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
3 /* { dg-options "-msse2" } */
4 /* { dg-require-effective-target sse2_runtime } */
6 extern void abort (void);
8 typedef int V2SI __attribute__ ((vector_size (8)));
9 typedef unsigned int V2USI __attribute__ ((vector_size (8)));
10 typedef short V2HI __attribute__ ((vector_size (4)));
11 typedef unsigned int V2UHI __attribute__ ((vector_size (4)));
16 return (long long) (V2SI) 0LL;
28 return (V2SI) (long long) (int) (V2HI) 0;
34 return (V2SI) (long long) (int) x;
44 __attribute__ ((noinline))
47 if (sizeof (short) != 2 || sizeof (int) != 4 || sizeof (long long) != 8)
57 union { V2SI x; int y[2]; V2USI z; long long l; } u;
59 if (u.y[0] != 0 || u.y[1] != 0)
63 union { V2SI x; long long y; } v;
70 if (u.y[0] != 6 || u.y[1] != 6)