From 698d42a70f08ff5299bb21977bb43004b292dfa9 Mon Sep 17 00:00:00 2001 From: jsm28 Date: Mon, 19 May 2014 15:50:40 +0000 Subject: [PATCH] * lib/target-supports.exp (check_effective_target_vect_sizes_32B_16B): Return false if 128-bit AVX vectors preferred. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210617 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/lib/target-supports.exp | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 731ccf7731ef..2142b677bb1b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2014-05-19 Joseph Myers + + * lib/target-supports.exp + (check_effective_target_vect_sizes_32B_16B): Return false if + 128-bit AVX vectors preferred. + 2014-05-19 Mike Stump * lib/target-supports.exp (check_effective_target_avx): Early out diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 1f921537757a..7304f5275ee5 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -5285,7 +5285,11 @@ proc check_avx_available { } { # Return true if 32- and 16-bytes vectors are available. proc check_effective_target_vect_sizes_32B_16B { } { - return [check_avx_available]; + if { [check_avx_available] && ![check_prefer_avx128] } { + return 1; + } else { + return 0; + } } # Return true if 128-bits vectors are preferred even if 256-bits vectors -- 2.11.4.GIT