aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/lib
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2019-04-01 18:34:00 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2019-04-01 18:34:00 +0000
commit20dd141865df31677080e32f8d2b0386ae162b97 (patch)
tree66d120aebff0146134edc61afa8d0c183c19aff7 /gcc/testsuite/lib
parenta78ef9b44362733da43d39cad0707461de581522 (diff)
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@270066 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/lib')
-rw-r--r--gcc/testsuite/lib/target-supports.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index ac60c1e1567..90efaea804d 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