This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [fix] PR39300: make PRE not disturb vectorizer
Hi,
On Wed, 22 Jul 2009, H.J. Lu wrote:
> The new testcase fails on Linux/ia32:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40830
Bummer, I misunderstood how options are set/evaluation in vect.exp, it's
not appending but overwriting the default options, hence misses all
necessary target options (-msse2 here). Unfortunately that means I can't
ensure that -ftree-pre is active for this test, exept by fiddling with
vect.exp. Fixed with r149999 which is the below patch.
Ciao,
Michael.
--
PR middle-end/40830
* gcc.dg/vect/vect-pre-interact.c: Require vect_float, and
don't set options ourself.
Index: testsuite/gcc.dg/vect/vect-pre-interact.c
===================================================================
--- testsuite/gcc.dg/vect/vect-pre-interact.c (revision 149998)
+++ testsuite/gcc.dg/vect/vect-pre-interact.c (working copy)
@@ -1,6 +1,5 @@
/* { dg-do compile } */
-/* { dg-require-effective-target vect_int } */
-/* { dg-options "-O3 -ftree-pre -fdump-tree-vect-details" } */
+/* { dg-require-effective-target vect_float } */
/* This checks that PRE doesn't create situations that prevent vectorization.
I.e. PR39300, PR35229. */