Commit b33ef29f by H.J. Lu Committed by H.J. Lu

Check avx2_available in check_avx2_available

check_avx2_available should check avx2_available, instead of avx_available.
Otherwise, check_avx2_available may use result from check_avx_available.

	PR testsuite/89907
	* lib/target-supports.exp (check_avx2_available): Replace
	avx_available with avx2_available.

From-SVN: r270066
parent 4b525600
2019-04-01 H.J. Lu <hongjiu.lu@intel.com>
PR testsuite/89907
* lib/target-supports.exp (check_avx2_available): Replace
avx_available with avx2_available.
2019-04-01 Andrey Belevantsev <abel@ispras.ru> 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
PR rtl-optimization/85412 PR rtl-optimization/85412
......
...@@ -7403,7 +7403,7 @@ proc check_avx_available { } { ...@@ -7403,7 +7403,7 @@ proc check_avx_available { } {
# Return true if we are compiling for AVX2 target. # Return true if we are compiling for AVX2 target.
proc check_avx2_available { } { proc check_avx2_available { } {
if { [check_no_compiler_messages avx_available assembly { if { [check_no_compiler_messages avx2_available assembly {
#ifndef __AVX2__ #ifndef __AVX2__
#error unsupported #error unsupported
#endif #endif
......
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