1 /* PR rtl-optimization/16104 */
2 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
3 /* { dg-options "-msse2" } */
7 extern void abort (void);
9 typedef int V2SI __attribute__ ((vector_size (8)));
10 typedef unsigned int V2USI __attribute__ ((vector_size (8)));
11 typedef short V2HI __attribute__ ((vector_size (4)));
12 typedef unsigned int V2UHI __attribute__ ((vector_size (4)));
17 return (long long) (V2SI) 0LL;
29 return (V2SI) (long long) (int) (V2HI) 0;
35 return (V2SI) (long long) (int) x;
45 __attribute__ ((noinline))
48 if (sizeof (short) != 2 || sizeof (int) != 4 || sizeof (long long) != 8)
58 union { V2SI x; int y[2]; V2USI z; long long l; } u;
60 if (u.y[0] != 0 || u.y[1] != 0)
64 union { V2SI x; long long y; } v;
71 if (u.y[0] != 6 || u.y[1] != 6)
78 unsigned int eax, ebx, ecx, edx;
80 if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
83 /* Run SSE2 test only if host has SSE2 support. */