This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, testsuite] Fix gfortran.dg/vect/fast-math-pr38968.f90 timeout.


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" } }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]