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