This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, testsuite]: Add -mprefer-avx128 to DEFAULT_VECTCFLAGS
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: "H.J. Lu" <hjl dot tools at gmail dot com>
- Date: Mon, 9 May 2011 18:44:52 +0200
- Subject: [PATCH, testsuite]: Add -mprefer-avx128 to DEFAULT_VECTCFLAGS
Hello!
Vectorizer testsuite assumes 128bit vector widths. AVX breaks this
assumption and that results in various spurious testsuite failures.
Attached patch clears all failures on AVX target.
2011-05-09 Uros Bizjak <ubizjak@gmail.com>
* lib/target-supports.exp (check_vect_support_and_set_flags)
<i?86-*-*, x86_64-*-*>: Add -mprefer-avx128 to DEFAULT_VECTCFLAGS.
Uros.
Index: lib/target-supports.exp
===================================================================
--- lib/target-supports.exp (revision 173569)
+++ lib/target-supports.exp (working copy)
@@ -3845,6 +3845,8 @@
set dg-do-what-default run
} elseif { [istarget "i?86-*-*"] || [istarget "x86_64-*-*"] } {
lappend DEFAULT_VECTCFLAGS "-msse2"
+ # FIXME: Vectorizer testsuite assumes 128bit vector widths.
+ lappend DEFAULT_VECTCFLAGS "-mprefer-avx128"
if { [check_effective_target_sse2_runtime] } {
set dg-do-what-default run
} else {