Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / mmx-check.h
blobaefdc4e8799e4295b7abe3c378ea398e4ad2ab1e
1 #include <stdio.h>
2 #include <stdlib.h>
4 #include "cpuid.h"
6 static void mmx_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 MMX test only if host has MMX support. */
17 if (edx & bit_MMX)
18 mmx_test ();
20 return 0;