Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / sse-check.h
blobd485b8dfa0390ab5859891a8e14990cbb6e01978
1 #include <stdio.h>
2 #include <stdlib.h>
4 #include "cpuid.h"
6 static void sse_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 SSE test only if host has SSE support. */
17 if (edx & bit_SSE)
18 sse_test ();
20 return 0;