Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / sse4_1-check.h
blob2d1c4e835a343b7a46c8353401b34dc6351a2c8d
1 #include <stdlib.h>
3 #include "cpuid.h"
4 #include "m128-check.h"
6 static void sse4_1_test (void);
8 #define MASK 0x2
10 int
11 main ()
13 unsigned int eax, ebx, ecx, edx;
15 if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
16 return 0;
18 /* Run SSE4.1 test only if host has SSE4.1 support. */
19 if (ecx & bit_SSE4_1)
20 sse4_1_test ();
22 return 0;