From patchwork Fri Aug 20 21:33:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [testsuite] Fix gfortran.dg/vect/fast-math-pr38968.f90 timeout. Date: Fri, 20 Aug 2010 11:33:04 -0000 From: Steve Ellcey X-Patchwork-Id: 62320 Message-Id: <201008202133.o7KLX4E09618@lucas.cup.hp.com> To: gcc-patches@gcc.gnu.org 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 * 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" } }