1 #include <stdlib.h> 2 3 #include "cpuid.h" 4 #include "m128-check.h" 5 6 static void sse4_1_test (void); 7 8 #define MASK 0x2 9 10 static void 11 __attribute__ ((noinline)) do_test(void)12do_test (void) 13 { 14 sse4_1_test (); 15 } 16 17 int main()18main () 19 { 20 unsigned int eax, ebx, ecx, edx; 21 22 if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx)) 23 return 0; 24 25 /* Run SSE4.1 test only if host has SSE4.1 support. */ 26 if (ecx & bit_SSE4_1) 27 do_test (); 28 29 return 0; 30 } 31