Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / sse3-check.h
blob92930d10a3fa8528c078ca7f41878a82cbac0698
1 #include <stdio.h>
2 #include <stdlib.h>
4 #include "cpuid.h"
6 static void sse3_test (void);
8 int
9 main ()
11 unsigned int eax, ebx, ecx, edx;
13 if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
14 return 0;
16 /* Run SSE3 test only if host has SSE3 support. */
17 if (ecx & bit_SSE3)
18 sse3_test ();
20 return 0;