Commit e0e7aa34 by Bin Cheng Committed by Bin Cheng

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
parent 1c7926f6
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> 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR c++/71973 PR c++/71973
......
! { dg-do compile } ! { dg-do compile }
! { dg-require-effective-target vect_double } ! { 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 ******* RESID COMPUTES THE RESIDUAL: R = V - AU
* *
...@@ -38,8 +38,8 @@ C ...@@ -38,8 +38,8 @@ C
RETURN RETURN
END END
! we want to check that predictive commoning did something on the ! we want to check that predictive commoning did something on the
! vectorized loop. ! vectorized loop. If vector factor is 2, the vectorized loop can
! { dg-final { scan-tree-dump-times "Executing predictive commoning without unrolling" 1 "pcom" { target lp64 } } } ! be predictive commoned, we check if predictive commoning PHI node
! { dg-final { scan-tree-dump-times "Executing predictive commoning without unrolling" 2 "pcom" { target ia32 } } } ! is created with vector(2) type.
! { dg-final { scan-tree-dump-times "Predictive commoning failed: no suitable chains" 0 "pcom" } } ! { dg-final { scan-tree-dump "Executing predictive commoning without unrolling" "pcom" } }
! { dg-final { scan-tree-dump-times "Loop iterates only 1 time, nothing to do" 1 "pcom" } } ! { dg-final { scan-tree-dump "vectp_u.*__lsm.* = PHI <.*vectp_u.*__lsm" "pcom" } }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment