From e0e7aa34ab07f878b7a0abd89bd9544e9057e4f7 Mon Sep 17 00:00:00 2001 From: Bin Cheng Date: Mon, 21 Nov 2016 14:58:19 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 7 +++++++ .../gfortran.dg/vect/fast-math-mgrid-resid.f | 14 +++++++------- 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 + + 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 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" } } -- 2.30.2