aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/gcc/testsuite/gcc.target/i386/pclmul-avx-check.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.6/gcc/testsuite/gcc.target/i386/pclmul-avx-check.h')
-rw-r--r--gcc-4.6/gcc/testsuite/gcc.target/i386/pclmul-avx-check.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc-4.6/gcc/testsuite/gcc.target/i386/pclmul-avx-check.h b/gcc-4.6/gcc/testsuite/gcc.target/i386/pclmul-avx-check.h
index 750e25c..5eed2e2 100644
--- a/gcc-4.6/gcc/testsuite/gcc.target/i386/pclmul-avx-check.h
+++ b/gcc-4.6/gcc/testsuite/gcc.target/i386/pclmul-avx-check.h
@@ -3,6 +3,7 @@
#endif
#include <stdlib.h>
#include "cpuid.h"
+#include "avx-os-support.h"
static void pclmul_avx_test (void);
@@ -22,8 +23,9 @@ main ()
return 0;
/* Run PCLMUL + AVX test only if host has PCLMUL + AVX support. */
- if ((ecx & (bit_AVX | bit_OSXSAVE | bit_PCLMUL))
- == (bit_AVX | bit_OSXSAVE | bit_PCLMUL))
+ if (((ecx & (bit_AVX | bit_OSXSAVE | bit_PCLMUL))
+ == (bit_AVX | bit_OSXSAVE | bit_PCLMUL))
+ && avx_os_support ())
{
do_test ();
#ifdef DEBUG