Merged trunk at revision 161680 into branch.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / sse3-check.h
blobdf0e63a457504d84449f3c5878b4e4728d5d60f2
1 #include <stdio.h>
2 #include <stdlib.h>
4 #include "cpuid.h"
6 static void sse3_test (void);
8 static void
9 __attribute__ ((noinline))
10 do_test (void)
12 sse3_test ();
15 int
16 main ()
18 unsigned int eax, ebx, ecx, edx;
20 if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
21 return 0;
23 /* Run SSE3 test only if host has SSE3 support. */
24 if (ecx & bit_SSE3)
25 do_test ();
27 return 0;