This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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 {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]