URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [f16c-check.h] - Rev 691
Compare with Previous | Blame | View Log
#include <stdlib.h> #include <stdio.h> #include "cpuid.h" #include "m256-check.h" static void f16c_test (void); int main () { unsigned int eax, ebx, ecx, edx; if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx)) return 0; /* Run F16C test only if host has F16C support. */ if (ecx & bit_F16C) { f16c_test (); #ifdef DEBUG printf ("PASSED\n"); #endif } #ifdef DEBUG else printf ("SKIPPED\n"); #endif return 0; }