PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / xop-check.h
blob395abe8766d1bd23a0edc5275066815ecbdbfd70
1 #include <stdlib.h>
3 #include "cpuid.h"
4 #include "m256-check.h"
6 static void xop_test (void);
8 static void
9 __attribute__ ((noinline))
10 do_test (void)
12 xop_test ();
15 int
16 main ()
18 unsigned int eax, ebx, ecx, edx;
20 if (!__get_cpuid (0x80000001, &eax, &ebx, &ecx, &edx))
21 return 0;
23 /* Run XOP test only if host has XOP support. */
24 if (ecx & bit_XOP)
25 do_test ();
27 return 0;