re PR tree-optimization/78114 (gfortran.dg/vect/fast-math-mgrid-resid.f FAILs)
authorBin Cheng <bin.cheng@arm.com>
Mon, 21 Nov 2016 14:58:19 +0000 (14:58 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Mon, 21 Nov 2016 14:58:19 +0000 (14:58 +0000)
gcc/testsuite
PR testsuite/78114
* gfortran.dg/vect/fast-math-mgrid-resid.f: Add additional
options.  Refine test by checking predictive commining PHI
nodes in vectorized loop wrto vector factor.

From-SVN: r242664

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f

index ef6e22cc71a812cfb21fd460c4aa27b7d036084d..11f14f96b56ebbf47c6e3fe56005cc69f297a191 100644 (file)
@@ -1,3 +1,10 @@
+2016-11-21  Bin Cheng  <bin.cheng@arm.com>
+
+       PR testsuite/78114
+       * gfortran.dg/vect/fast-math-mgrid-resid.f: Add additional
+       options.  Refine test by checking predictive commining PHI
+       nodes in vectorized loop wrto vector factor.
+
 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
 
        PR c++/71973
index 88238f9b70e8431f8f418124cc8d872e12a51176..54f1e9eac638a7031bce608b8e5c592b0b6b2850 100644 (file)
@@ -1,7 +1,7 @@
 ! { dg-do compile }
 ! { dg-require-effective-target vect_double }
-! { dg-options "-O3 -fpredictive-commoning -fdump-tree-pcom-details" }
-
+! { dg-options "-O3 --param vect-max-peeling-for-alignment=0 -fpredictive-commoning -fdump-tree-pcom-details" }
+! { dg-additional-options "-mprefer-avx128" { target { i?86-*-* x86_64-*-* } } }
 
 ******* RESID COMPUTES THE RESIDUAL:  R = V - AU
 *
@@ -38,8 +38,8 @@ C
       RETURN
       END
 ! we want to check that predictive commoning did something on the
-! vectorized loop.
-! { dg-final { scan-tree-dump-times "Executing predictive commoning without unrolling" 1 "pcom" { target lp64 } } }
-! { dg-final { scan-tree-dump-times "Executing predictive commoning without unrolling" 2 "pcom" { target ia32 } } }
-! { dg-final { scan-tree-dump-times "Predictive commoning failed: no suitable chains" 0 "pcom" } }
-! { dg-final { scan-tree-dump-times "Loop iterates only 1 time, nothing to do" 1 "pcom" } }
+! vectorized loop.  If vector factor is 2, the vectorized loop can
+! be predictive commoned, we check if predictive commoning PHI node
+! is created with vector(2) type.
+! { dg-final { scan-tree-dump "Executing predictive commoning without unrolling" "pcom" } }
+! { dg-final { scan-tree-dump "vectp_u.*__lsm.* = PHI <.*vectp_u.*__lsm" "pcom" } }