Patchwork Added test case for PR 32373, missed vectorization with equivalence

login
register
mail settings
Submitter Thomas Koenig
Date Feb. 6, 2012, 9:25 p.m.
Message ID <4F304535.6050306@netcologne.de>
Download mbox | patch
Permalink /patch/139801/
State New
Headers show

Comments

Thomas Koenig - Feb. 6, 2012, 9:25 p.m.
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.

Patch

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" } }