#include <stdio.h>
#include <stdlib.h>
-#include "../../gcc.dg/i386-cpuid.h"
+#include "cpuid.h"
static void sse_test (void);
int
main ()
{
- unsigned long cpu_facilities;
+ unsigned int eax, ebx, ecx, edx;
- cpu_facilities = i386_cpuid_edx ();
+ if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
+ return 0;
/* Run SSE test only if host has SSE support. */
- if ((cpu_facilities & bit_SSE))
+ if (edx & bit_SSE)
sse_test ();
- exit (0);
+ return 0;
}