]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Check avx2_available in check_avx2_available
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Apr 2019 18:34:00 +0000 (18:34 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Apr 2019 18:34:00 +0000 (18:34 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index 39e393487c477bad5c5ad710c5d8a47177839481..54b2e39f9573ab6bef36b00b5c41e92f87bb8cb7 100644 (file)
@@ -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
index ac60c1e15670711c19125b780eb7bf6e73665c21..90efaea804d34d480ad752ff07faaf85f71fd51b 100644 (file)
@@ -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