OSDN Git Service

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