OSDN Git Service

2d1c4e835a343b7a46c8353401b34dc6351a2c8d
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / i386 / sse4_1-check.h
1 #include <stdlib.h>
2
3 #include "cpuid.h"
4 #include "m128-check.h"
5
6 static void sse4_1_test (void);
7
8 #define MASK 0x2
9
10 int
11 main ()
12 {
13   unsigned int eax, ebx, ecx, edx;
14  
15   if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
16     return 0;
17
18   /* Run SSE4.1 test only if host has SSE4.1 support.  */
19   if (ecx & bit_SSE4_1)
20     sse4_1_test ();
21
22   return 0;
23 }