blob: 5bc5a59ab80c60a89ffacd8e5abfac48b5e80cd0 [file] [log] [blame]
#include <stdlib.h>
#include "cpuid.h"
static void sha_test (void);
static void
__attribute__ ((noinline))
do_test (void)
{
sha_test ();
}
int
main ()
{
unsigned int eax, ebx, ecx, edx;
if (!__get_cpuid_count (7, 0, &eax, &ebx, &ecx, &edx))
return 0;
/* Run SHA test only if host has SHA support. */
if (ebx & bit_SHA)
{
do_test ();
#ifdef DEBUG
printf ("PASSED\n");
#endif
return 0;
}
#ifdef DEBUG
printf ("SKIPPED\n");
#endif
return 0;
}