Message ID | 20190401173955.10722-1-hjl.tools@gmail.com |
---|---|
State | New |
Headers | show |
Series | Check avx2_available in check_avx2_available | expand |
On Mon, Apr 1, 2019 at 7:39 PM H.J. Lu <hjl.tools@gmail.com> wrote: > > 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. OK. Thanks, Uros. > --- > gcc/testsuite/lib/target-supports.exp | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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 > -- > 2.20.1 >
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