PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / fma4-check.h
blob33cd9628c0411edfedd6cb846460dc7b12e01b4e
1 #include <stdlib.h>
3 #include "cpuid.h"
5 static void fma4_test (void);
7 static void
8 __attribute__ ((noinline))
9 do_test (void)
11 fma4_test ();
14 int
15 main ()
17 unsigned int eax, ebx, ecx, edx;
19 if (!__get_cpuid (0x80000001, &eax, &ebx, &ecx, &edx))
20 return 0;
22 /* Run FMA4 test only if host has FMA4 support. */
23 if (ecx & bit_FMA4)
24 do_test ();
26 return 0;