Commit bebb1f20 by H.J. Lu Committed by H.J. Lu

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
parent 9b91e436
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.
2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* lib/target-supports.exp (add_options_for_tls): New proc.
......
......@@ -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
......
......@@ -22,7 +22,8 @@ main ()
return 0;
/* Run PCLMUL + AVX test only if host has PCLMUL + AVX support. */
if ((ecx & (bit_AVX | bit_PCLMUL)) == (bit_AVX | bit_PCLMUL))
if ((ecx & (bit_AVX | bit_OSXSAVE | bit_PCLMUL))
== (bit_AVX | bit_OSXSAVE | bit_PCLMUL))
{
do_test ();
#ifdef DEBUG
......
......@@ -12,7 +12,7 @@ main ()
return 0;
/* Run AVX test only if host has AVX support. */
if (ecx & bit_AVX)
if ((ecx & (bit_AVX | bit_OSXSAVE)) == (bit_AVX | bit_OSXSAVE))
{
avx_test ();
#ifdef DEBUG
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment