public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, testsuite] Fix PR testsuite/35406: gfortran.dg/ldist-1.f90 and gcc.dg/tree-ssa/ldist-4.c don't work
@ 2008-03-14 14:24 Uros Bizjak
  0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2008-03-14 14:24 UTC (permalink / raw)
  To: gcc patches

Hello!

Attached patch updates expected results due to the difference between
64bit and 32bit targets.

2008-03-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
	    Uros Bizjak  <ubizjak@gmail.com>

	PR testsuite/35406
	* gcc.dg/tree-ssa/ldist-4.c: Update expected scan match
	count from 0 to 1 for lp64 targets.
	* gfortran.dg/ldist-1.f90: Update test to check
	for 5 loops distributed instead of 4 for lp64 targets.

Tested on x86_64-pc-linux-gnu, committed to mainline.

Uros.

Index: gcc.dg/tree-ssa/ldist-4.c
===================================================================
--- gcc.dg/tree-ssa/ldist-4.c   (revision 133207)
+++ gcc.dg/tree-ssa/ldist-4.c   (working copy)
@@ -24,5 +24,6 @@
    too much code in the outer loop, degrading performance of scalar
    code.  So this test was XFAILed because the cost model of the stand
    alone distribution pass has evolved.  Now it passes.  */
-/* { dg-final { scan-tree-dump-times "distributed: split to 2 loops"
1 "ldist" } } */
+/* { dg-final { scan-tree-dump-times "distributed: split to 2 loops"
0 "ldist" { target ilp32 } } } */
+/* { dg-final { scan-tree-dump-times "distributed: split to 2 loops"
1 "ldist" { target lp64 } } } */
 /* { dg-final { cleanup-tree-dump "ldist" } } */
Index: gfortran.dg/ldist-1.f90
===================================================================
--- gfortran.dg/ldist-1.f90     (revision 133207)
+++ gfortran.dg/ldist-1.f90     (working copy)
@@ -29,5 +29,6 @@
   return
 end Subroutine PADEC

-! { dg-final { scan-tree-dump-times "distributed: split to 5 loops" 1
"ldist" } }
+! { dg-final { scan-tree-dump-times "distributed: split to 4 loops" 1
"ldist" { target ilp32 } } }
+! { dg-final { scan-tree-dump-times "distributed: split to 5 loops" 1
"ldist" { target lp64 } } }
 ! { dg-final { cleanup-tree-dump "ldist" } }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-14 14:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-14 14:24 [PATCH, testsuite] Fix PR testsuite/35406: gfortran.dg/ldist-1.f90 and gcc.dg/tree-ssa/ldist-4.c don't work Uros Bizjak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).