Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.target / i386 / f16c-check.h
blobaf7f32c5f4f2f970123155cf7f00c8c0209ad259
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include "cpuid.h"
4 #include "m256-check.h"
6 static void f16c_test (void);
8 int
9 main ()
11 unsigned int eax, ebx, ecx, edx;
13 if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
14 return 0;
16 /* Run F16C test only if host has F16C support. */
17 if (ecx & bit_F16C)
19 f16c_test ();
20 #ifdef DEBUG
21 printf ("PASSED\n");
22 #endif
24 #ifdef DEBUG
25 else
26 printf ("SKIPPED\n");
27 #endif
29 return 0;