This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch, testsuite] Fix gfortran.dg/vect/fast-math-pr38968.f90 timeout.
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 20 Aug 2010 14:33:04 -0700 (PDT)
- Subject: [patch, testsuite] Fix gfortran.dg/vect/fast-math-pr38968.f90 timeout.
- Reply-to: sje at cup dot hp dot com
On some slow (or overloaded) IA64 machines that I use this test still
times out even with the increased timeout factor. Since the loops
aren't vectorized on IA64 (or SPARC) I was wondering if it would make
sense to just skip this test on those platforms instead of running it
and then having an xfail on the vectorization check. This would avoid
having to increase the dg-timeout on the test even more. If the
platform isn't vectorizing it is not clear to me that the test has
any value anyway.
Tested on IA64 (now shows as UNSUPPORTED) and on X86 (still passes).
OK for checkin?
Steve Ellcey
sje@cup.hp.com
2010-08-20 Steve Ellcey <sje@cup.hp.com>
* gfortran.dg/vect/fast-math-pr38969.f90: Skip if not vectorizing.
Index: gfortran.dg/vect/fast-math-pr38968.f90
===================================================================
--- gfortran.dg/vect/fast-math-pr38968.f90 (revision 163393)
+++ gfortran.dg/vect/fast-math-pr38968.f90 (working copy)
@@ -1,4 +1,5 @@
! { dg-timeout-factor 4.0 }
+! { dg-skip-if "" { ia64-*-* sparc*-*-* } { "*" } { "" } }
program mymatmul
implicit none
integer, parameter :: kp = 4
@@ -18,5 +19,5 @@ program mymatmul
end program mymatmul
-! { dg-final { scan-tree-dump "vectorized 1 loops" "vect" { xfail { ia64-*-* sparc*-*-* } } } }
+! { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } }
! { dg-final { cleanup-tree-dump "vect" } }