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]

Re: Added test case for PR 32373, missed vectorization with equivalence


Hi Dominique,

The test fails on powerpc-apple-darwin9 because double are not
vectorized. I think the following patch is required:

Thanks for noticing this!


I applied this patch as obvious after regression-testing.

Thomas

2012-02-06 Thomas König <tkoenig@gcc.gnu.org>

        PR fortran/32373
        * gfortran.dg/vect/vect-8.f90:  Use vect_double effective target.
        Remove module.

Index: gfortran.dg/vect/vect-8.f90
===================================================================
--- gfortran.dg/vect/vect-8.f90	(Revision 183917)
+++ gfortran.dg/vect/vect-8.f90	(Arbeitskopie)
@@ -1,5 +1,5 @@
 ! { dg-do compile }
-! { dg-require-effective-target vect_float }
+! { dg-require-effective-target vect_double }
 
 module lfk_prec
  integer, parameter :: dp=kind(1.d0)
@@ -705,3 +705,4 @@
 
 ! { dg-final { scan-tree-dump-times "vectorized 19 loops" 1 "vect" } }
 ! { dg-final { cleanup-tree-dump "vect" } }
+! { dg-final { cleanup-modules "lfk_prec" } }

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