2008-05-30 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / sse2-check.h
bloba69333e391a09ed05e90482b778cd3f06cdbe6b7
1 #include <stdlib.h>
2 #include "cpuid.h"
3 #include "m128-check.h"
5 static void sse2_test (void);
7 int
8 main ()
10 unsigned int eax, ebx, ecx, edx;
12 if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
13 return 0;
15 /* Run SSE2 test only if host has SSE2 support. */
16 if (edx & bit_SSE2)
17 sse2_test ();
19 return 0;