Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / sse4a-check.h
blobd6140e8969c94ee80f2ccb87124490a7da89221c
1 #include <stdio.h>
2 #include <stdlib.h>
4 #include "cpuid.h"
6 static void sse4a_test (void);
8 int
9 main ()
11 unsigned int eax, ebx, ecx, edx;
13 if (!__get_cpuid (0x80000001, &eax, &ebx, &ecx, &edx))
14 return 0;
16 /* Run SSE4a test only if host has SSE4a support. */
17 if (ecx & bit_SSE4a)
18 sse4a_test ();
20 return 0;