Merge from trunk @ 138209
[official-gcc.git] / gcc / testsuite / gcc.dg / compat / union-m128-1_main.c
blob11f872154eba28386f4c7c4e6c5ee463f96243e2
1 /* { dg-skip-if "test SSE2 support" { ! { i?86-*-* x86_64-*-* } } } */
2 /* { dg-options "-O" } */
4 #include "cpuid.h"
6 /* Test function argument passing. PR target/15301. */
8 extern void union_m128_1_x (void);
9 extern void exit (int);
11 int
12 main ()
14 unsigned int eax, ebx, ecx, edx;
16 if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
17 return 0;
19 /* Run SSE vector test only if host has SSE2 support. */
20 if (edx & bit_SSE2)
21 union_m128_1_x ();
23 exit (0);