aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2019-04-01 18:34:00 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2019-04-01 11:34:00 -0700
commitb33ef29fffa01c710fcd09d594efa204d457d59f (patch)
tree66d120aebff0146134edc61afa8d0c183c19aff7
parent4b52560099c1b744a0e639daea4805fe10fb3219 (diff)
downloadgcc-b33ef29fffa01c710fcd09d594efa204d457d59f.zip
gcc-b33ef29fffa01c710fcd09d594efa204d457d59f.tar.gz
gcc-b33ef29fffa01c710fcd09d594efa204d457d59f.tar.bz2
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
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/lib/target-supports.exp2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 39e3934..54b2e39 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+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>
PR rtl-optimization/85412
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index ac60c1e..90efaea 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -7403,7 +7403,7 @@ proc check_avx_available { } {
# Return true if we are compiling for AVX2 target.
proc check_avx2_available { } {
- if { [check_no_compiler_messages avx_available assembly {
+ if { [check_no_compiler_messages avx2_available assembly {
#ifndef __AVX2__
#error unsupported
#endif