summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/aes-avx-check.h
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2010-07-23 18:44:16 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2010-07-23 11:44:16 -0700
commitbebb1f203463eaff5b988e04461d7c63a89f185f (patch)
treea085925800d88563db76ddc6e92b68c58c7ee098 /gcc/testsuite/gcc.target/i386/aes-avx-check.h
parent9b91e43610f57cf94497ae45c4e424d68c7371f0 (diff)
downloadgcc-bebb1f203463eaff5b988e04461d7c63a89f185f.tar.gz
Require OSXSAVE for AVX support.
2010-07-23 H.J. Lu <hongjiu.lu@intel.com> * gcc.target/i386/aes-avx-check.h (main): Require OSXSAVE for AVX support. * gcc.target/i386/pclmul-avx-check.h (main): Likewise. * gcc.target/x86_64/abi/avx/avx-check.h (main): Likewise. From-SVN: r162480
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/aes-avx-check.h')
-rw-r--r--gcc/testsuite/gcc.target/i386/aes-avx-check.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/i386/aes-avx-check.h b/gcc/testsuite/gcc.target/i386/aes-avx-check.h
index e91e88173cf..36a038ea341 100644
--- a/gcc/testsuite/gcc.target/i386/aes-avx-check.h
+++ b/gcc/testsuite/gcc.target/i386/aes-avx-check.h
@@ -22,7 +22,8 @@ main ()
return 0;
/* Run AES + AVX test only if host has AES + AVX support. */
- if ((ecx & (bit_AVX | bit_AES)) == (bit_AVX | bit_AES))
+ if ((ecx & (bit_AVX | bit_OSXSAVE | bit_AES))
+ == (bit_AVX | bit_OSXSAVE | bit_AES))
{
do_test ();
#ifdef DEBUG