aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2014-01-14 10:00:30 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2014-01-14 10:00:30 +0100
commit1c76069c9d792c4c1f5ae58dfc76aed463fedbed (patch)
tree5c808894c048ebaa37edad40362e2390093db0e1 /gcc
parenta984e92e9e7758c3255d584cdbc3d107c837cecf (diff)
downloadgcc-1c76069c9d792c4c1f5ae58dfc76aed463fedbed.zip
gcc-1c76069c9d792c4c1f5ae58dfc76aed463fedbed.tar.gz
gcc-1c76069c9d792c4c1f5ae58dfc76aed463fedbed.tar.bz2
re PR testsuite/59494 (FAIL: gfortran.dg/vect/fast-math-mgrid-resid.f scan-tree-dump-times optimized "vect_[^\\n]*\\+ " 13)
PR testsuite/59494 * gfortran.dg/vect/fast-math-mgrid-resid.f: Change -fdump-tree-optimized to -fdump-tree-pcom-details in dg-options and cleanup-tree-dump from optimized to pcom. Remove scan-tree-dump-times for vect_\[^\\n\]*\\+, add scan-tree-dump-times for no suitable chains and Executing predictive commoning without unrolling. From-SVN: r206598
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog9
-rw-r--r--gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f11
2 files changed, 15 insertions, 5 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index b2a867c..4c59e37 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,12 @@
+2014-01-14 Jakub Jelinek <jakub@redhat.com>
+
+ PR testsuite/59494
+ * gfortran.dg/vect/fast-math-mgrid-resid.f: Change
+ -fdump-tree-optimized to -fdump-tree-pcom-details in dg-options and
+ cleanup-tree-dump from optimized to pcom. Remove scan-tree-dump-times
+ for vect_\[^\\n\]*\\+, add scan-tree-dump-times for no suitable chains and
+ Executing predictive commoning without unrolling.
+
2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
* gcc.target/i386/avx-1.c: Fix __builtin_ia32_exp2ps_mask,
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 978b871..ad4c91a 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 { target i?86-*-* x86_64-*-* } }
! { dg-require-effective-target vect_double }
! { dg-require-effective-target sse2 }
-! { dg-options "-O3 -ffast-math -msse2 -fpredictive-commoning -ftree-vectorize -fdump-tree-optimized" }
+! { dg-options "-O3 -ffast-math -msse2 -fpredictive-commoning -ftree-vectorize -fdump-tree-pcom-details" }
******* RESID COMPUTES THE RESIDUAL: R = V - AU
@@ -39,8 +39,9 @@ C
RETURN
END
! we want to check that predictive commoning did something on the
-! vectorized loop, which means we have to have exactly 13 vector
-! additions.
-! { dg-final { scan-tree-dump-times "vect_\[^\\n\]*\\+ " 13 "optimized" } }
+! 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 { cleanup-tree-dump "vect" } }
-! { dg-final { cleanup-tree-dump "optimized" } }
+! { dg-final { cleanup-tree-dump "pcom" } }