summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBin Cheng <bin.cheng@arm.com>2016-11-21 14:58:19 +0000
committerBin Cheng <amker@gcc.gnu.org>2016-11-21 14:58:19 +0000
commite0e7aa34ab07f878b7a0abd89bd9544e9057e4f7 (patch)
tree1017dd99b11a8776e8e7539f58cfa9be703559c7
parent1c7926f64cb0c7603a42fe2e924825cca4c2fc06 (diff)
downloadgcc-e0e7aa34ab07f878b7a0abd89bd9544e9057e4f7.tar.gz
re PR tree-optimization/78114 (gfortran.dg/vect/fast-math-mgrid-resid.f FAILs)
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
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f14
2 files changed, 14 insertions, 7 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ef6e22cc71a..11f14f96b56 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f b/gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f
index 88238f9b70e..54f1e9eac63 100644
--- a/gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f
+++ b/gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f
@@ -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" } }