From: Bin Cheng Date: Mon, 21 Nov 2016 14:58:19 +0000 (+0000) Subject: re PR tree-optimization/78114 (gfortran.dg/vect/fast-math-mgrid-resid.f FAILs) X-Git-Tag: upstream/12.2.0~43133 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e0e7aa34ab07f878b7a0abd89bd9544e9057e4f7;p=platform%2Fupstream%2Fgcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ef6e22c..11f14f9 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 88238f9..54f1e9e 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" } }