PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when realignin...
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / sha-check.h
blobe0a18076e15a07bfbfa2983772c0fe906cbc657c
1 #include <stdlib.h>
2 #include "cpuid.h"
4 static void sha_test (void);
6 static void
7 __attribute__ ((noinline))
8 do_test (void)
10 sha_test ();
13 int
14 main ()
16 unsigned int eax, ebx, ecx, edx;
18 if (__get_cpuid_max (0, NULL) >= 7)
20 __cpuid_count (7, 0, eax, ebx, ecx, edx);
22 /* Run SHA test only if host has SHA support. */
23 if (ebx & bit_SHA)
25 do_test ();
26 #ifdef DEBUG
27 printf ("PASSED\n");
28 #endif
29 return 0;
33 #ifdef DEBUG
34 printf ("SKIPPED\n");
35 #endif
36 return 0;