[patch] testsuite/*/tree-ssa/*.[cC]: Use cleanup-tree-dump.

Kazu Hirata kazu@cs.umass.edu
Thu Apr 28 05:04:00 GMT 2005


Hi,

Attached is a patch to use cleanup-tree-dump.

Tested on i686-pc-linux-gnu.  OK to apply?

Kazu Hirata

2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>

	* g++.dg/tree-ssa/pr18178.C, gcc.dg/tree-ssa/20030821-1.c,
	gcc.dg/tree-ssa/20050314-1.c, gcc.dg/tree-ssa/alias-1.c,
	gcc.dg/tree-ssa/phi-opt-1.c, gcc.dg/tree-ssa/phi-opt-2.c,
	gcc.dg/tree-ssa/phi-opt-3.c, gcc.dg/tree-ssa/phi-opt-4.c,
	gcc.dg/tree-ssa/phi-opt-5.c, gcc.dg/tree-ssa/pr18133-1.c,
	gcc.dg/tree-ssa/pr18133-2.c, gcc.dg/tree-ssa/pr18134.c,
	gcc.dg/tree-ssa/pr20470.c, gcc.dg/tree-ssa/pr20657.c,
	gcc.dg/tree-ssa/pr20702.c, gcc.dg/tree-ssa/pr20913.c,
	gcc.dg/tree-ssa/pr21001.c, gcc.dg/tree-ssa/stdarg-1.c,
	gcc.dg/tree-ssa/stdarg-2.c, gcc.dg/tree-ssa/stdarg-3.c,
	gcc.dg/tree-ssa/stdarg-4.c, gcc.dg/tree-ssa/stdarg-5.c,
	gcc.dg/tree-ssa/structopt-1.c, gcc.dg/tree-ssa/structopt-2.c,
	gcc.dg/tree-ssa/structopt-3.c: Use cleanup-tree-dump.

Index: testsuite/g++.dg/tree-ssa/pr18178.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/tree-ssa/pr18178.C,v
retrieving revision 1.2
diff -u -d -p -r1.2 pr18178.C
--- testsuite/g++.dg/tree-ssa/pr18178.C	9 Apr 2005 01:37:52 -0000	1.2
+++ testsuite/g++.dg/tree-ssa/pr18178.C	27 Apr 2005 15:28:49 -0000
@@ -44,3 +44,4 @@ void doit (array *a)
 /* VRP should remove all but 1 if() in the loop.  */
 
 /* { dg-final { scan-tree-dump-times "if " 1 "vrp"} } */
+/* { dg-final { cleanup-tree-dump "vrp" } } */
Index: testsuite/gcc.dg/tree-ssa/20030821-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/20030821-1.c,v
retrieving revision 1.3
diff -u -d -p -r1.3 20030821-1.c
--- testsuite/gcc.dg/tree-ssa/20030821-1.c	8 Mar 2005 03:40:58 -0000	1.3
+++ testsuite/gcc.dg/tree-ssa/20030821-1.c	27 Apr 2005 15:28:50 -0000
@@ -24,3 +24,4 @@ y: ;
 
 /* We should have folded away the goto &x  */
 /* { dg-final { scan-tree-dump-times "goto &x" 0 "optimized"} } */
+/* { dg-final { cleanup-tree-dump "optimized" } } */
Index: testsuite/gcc.dg/tree-ssa/20050314-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/20050314-1.c,v
retrieving revision 1.1
diff -u -d -p -r1.1 20050314-1.c
--- testsuite/gcc.dg/tree-ssa/20050314-1.c	14 Mar 2005 16:21:16 -0000	1.1
+++ testsuite/gcc.dg/tree-ssa/20050314-1.c	27 Apr 2005 15:28:50 -0000
@@ -18,4 +18,4 @@ void xxx (void)
    cannot read nor write the memory.  */
 
 /* { dg-final { scan-tree-dump-times "Moving statement" 1 "lim" } } */
-
+/* { dg-final { cleanup-tree-dump "lim" } } */
Index: testsuite/gcc.dg/tree-ssa/alias-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/alias-1.c,v
retrieving revision 1.2
diff -u -d -p -r1.2 alias-1.c
--- testsuite/gcc.dg/tree-ssa/alias-1.c	12 Apr 2005 17:47:48 -0000	1.2
+++ testsuite/gcc.dg/tree-ssa/alias-1.c	27 Apr 2005 15:28:50 -0000
@@ -14,3 +14,4 @@ void g(int *i)
 /* We should have removed the link_error on the tree level as we told GCC
    that *i cannot point to f via the option -fargument-noalias-global. */
 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */
+/* { dg-final { cleanup-tree-dump "optimized" } } */
Index: testsuite/gcc.dg/tree-ssa/phi-opt-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/phi-opt-1.c,v
retrieving revision 1.2
diff -u -d -p -r1.2 phi-opt-1.c
--- testsuite/gcc.dg/tree-ssa/phi-opt-1.c	8 Mar 2005 00:40:33 -0000	1.2
+++ testsuite/gcc.dg/tree-ssa/phi-opt-1.c	27 Apr 2005 15:28:50 -0000
@@ -16,4 +16,4 @@ temp:
    optimize this before because PHI-OPT did not look at 
    PHIs which have more than two arguments.  */
 /* { dg-final { scan-tree-dump-times "if" 0 "optimized"} } */
-
+/* { dg-final { cleanup-tree-dump "optimized" } } */
Index: testsuite/gcc.dg/tree-ssa/phi-opt-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/phi-opt-2.c,v
retrieving revision 1.2
diff -u -d -p -r1.2 phi-opt-2.c
--- testsuite/gcc.dg/tree-ssa/phi-opt-2.c	8 Mar 2005 00:40:33 -0000	1.2
+++ testsuite/gcc.dg/tree-ssa/phi-opt-2.c	27 Apr 2005 15:28:50 -0000
@@ -19,3 +19,4 @@ _Bool f1(_Bool a, _Bool b)
    value of b (except that we don't fold ! (b != 0) into b
    which can be fixed in a different patch).  */
 /* { dg-final { scan-tree-dump-times "if" 1 "optimized"} } */
+/* { dg-final { cleanup-tree-dump "optimized" } } */
Index: testsuite/gcc.dg/tree-ssa/phi-opt-3.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/phi-opt-3.c,v
retrieving revision 1.2
diff -u -d -p -r1.2 phi-opt-3.c
--- testsuite/gcc.dg/tree-ssa/phi-opt-3.c	8 Mar 2005 00:40:33 -0000	1.2
+++ testsuite/gcc.dg/tree-ssa/phi-opt-3.c	27 Apr 2005 15:28:50 -0000
@@ -14,4 +14,4 @@ int f(int a, int b)
    optimize this before because PHI-OPT did not look at 
    PHIs which have more than two arguments.  */
 /* { dg-final { scan-tree-dump-times "if" 0 "optimized"} } */
-
+/* { dg-final { cleanup-tree-dump "optimized" } } */
Index: testsuite/gcc.dg/tree-ssa/phi-opt-4.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/phi-opt-4.c,v
retrieving revision 1.2
diff -u -d -p -r1.2 phi-opt-4.c
--- testsuite/gcc.dg/tree-ssa/phi-opt-4.c	8 Mar 2005 00:40:33 -0000	1.2
+++ testsuite/gcc.dg/tree-ssa/phi-opt-4.c	27 Apr 2005 15:28:50 -0000
@@ -14,4 +14,4 @@ _Bool f1()
    value of b (except that we don't fold ! (b != 0) into b
    which means that we miss a sib calling opportunity).  */
 /* { dg-final { scan-tree-dump-times "if " 1 "optimized"} } */
-
+/* { dg-final { cleanup-tree-dump "optimized" } } */
Index: testsuite/gcc.dg/tree-ssa/phi-opt-5.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/phi-opt-5.c,v
retrieving revision 1.1
diff -u -d -p -r1.1 phi-opt-5.c
--- testsuite/gcc.dg/tree-ssa/phi-opt-5.c	14 Mar 2005 16:26:11 -0000	1.1
+++ testsuite/gcc.dg/tree-ssa/phi-opt-5.c	27 Apr 2005 15:28:50 -0000
@@ -56,3 +56,4 @@ float repl3 (float varz, float vara, flo
 
 /* { dg-final { scan-tree-dump "if .*varz" "phiopt1"} } */
 /* { dg-final { scan-tree-dump "vara.*MAX_EXPR" "phiopt1"} } */
+/* { dg-final { cleanup-tree-dump "phiopt1" } } */
Index: testsuite/gcc.dg/tree-ssa/pr18133-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr18133-1.c,v
retrieving revision 1.1
diff -u -d -p -r1.1 pr18133-1.c
--- testsuite/gcc.dg/tree-ssa/pr18133-1.c	8 Mar 2005 03:40:58 -0000	1.1
+++ testsuite/gcc.dg/tree-ssa/pr18133-1.c	27 Apr 2005 15:28:50 -0000
@@ -25,3 +25,4 @@ return;
    scan for 3 instances of "fallthru".  */
 
 /* { dg-final { scan-tree-dump-times "fallthru" 3 "optimized" } } */
+/* { dg-final { cleanup-tree-dump "optimized" } } */
Index: testsuite/gcc.dg/tree-ssa/pr18133-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr18133-2.c,v
retrieving revision 1.1
diff -u -d -p -r1.1 pr18133-2.c
--- testsuite/gcc.dg/tree-ssa/pr18133-2.c	8 Mar 2005 03:40:58 -0000	1.1
+++ testsuite/gcc.dg/tree-ssa/pr18133-2.c	27 Apr 2005 15:28:50 -0000
@@ -40,3 +40,4 @@ bar (int a)
    computed goto.  */
 
 /* { dg-final { scan-tree-dump-times "ab" 0 "optimized" } } */
+/* { dg-final { cleanup-tree-dump "optimized" } } */
Index: testsuite/gcc.dg/tree-ssa/pr18134.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr18134.c,v
retrieving revision 1.1
diff -u -d -p -r1.1 pr18134.c
--- testsuite/gcc.dg/tree-ssa/pr18134.c	8 Mar 2005 03:51:26 -0000	1.1
+++ testsuite/gcc.dg/tree-ssa/pr18134.c	27 Apr 2005 15:28:50 -0000
@@ -23,3 +23,4 @@ return 0;
    computed gotos.  */
 
 /* { dg-final { scan-tree-dump-times "ab" 0 "optimized" } } */
+/* { dg-final { cleanup-tree-dump "optimized" } } */
Index: testsuite/gcc.dg/tree-ssa/pr20470.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr20470.c,v
retrieving revision 1.1
diff -u -d -p -r1.1 pr20470.c
--- testsuite/gcc.dg/tree-ssa/pr20470.c	25 Mar 2005 20:10:38 -0000	1.1
+++ testsuite/gcc.dg/tree-ssa/pr20470.c	27 Apr 2005 15:28:50 -0000
@@ -12,3 +12,4 @@ void f1()
 }
 
 /* { dg-final { scan-tree-dump-times "ABS_EXPR" 1 "generic" } } */
+/* { dg-final { cleanup-tree-dump "generic" } } */
Index: testsuite/gcc.dg/tree-ssa/pr20657.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr20657.c,v
retrieving revision 1.1
diff -u -d -p -r1.1 pr20657.c
--- testsuite/gcc.dg/tree-ssa/pr20657.c	14 Apr 2005 13:34:57 -0000	1.1
+++ testsuite/gcc.dg/tree-ssa/pr20657.c	27 Apr 2005 15:28:50 -0000
@@ -15,3 +15,4 @@ foo (int a)
 }
 
 /* { dg-final { scan-tree-dump-times "Folding predicate" 1 "vrp"} } */
+/* { dg-final { cleanup-tree-dump "vrp" } } */
Index: testsuite/gcc.dg/tree-ssa/pr20702.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr20702.c,v
retrieving revision 1.1
diff -u -d -p -r1.1 pr20702.c
--- testsuite/gcc.dg/tree-ssa/pr20702.c	13 Apr 2005 15:33:17 -0000	1.1
+++ testsuite/gcc.dg/tree-ssa/pr20702.c	27 Apr 2005 15:28:50 -0000
@@ -26,3 +26,4 @@ foo (int *p, int b)
 }
 
 /* { dg-final { scan-tree-dump-times "Folding predicate" 1 "vrp"} } */
+/* { dg-final { cleanup-tree-dump "vrp" } } */
Index: testsuite/gcc.dg/tree-ssa/pr20913.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr20913.c,v
retrieving revision 1.1
diff -u -d -p -r1.1 pr20913.c
--- testsuite/gcc.dg/tree-ssa/pr20913.c	13 Apr 2005 15:28:55 -0000	1.1
+++ testsuite/gcc.dg/tree-ssa/pr20913.c	27 Apr 2005 15:28:50 -0000
@@ -23,3 +23,4 @@ foo (int a, int b, int c, int d)
 }
 
 /* { dg-final { scan-tree-dump-times "with if \\(1\\)" 2 "copyprop1"} } */
+/* { dg-final { cleanup-tree-dump "copyprop1" } } */
Index: testsuite/gcc.dg/tree-ssa/pr21001.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr21001.c,v
retrieving revision 1.1
diff -u -d -p -r1.1 pr21001.c
--- testsuite/gcc.dg/tree-ssa/pr21001.c	18 Apr 2005 06:10:45 -0000	1.1
+++ testsuite/gcc.dg/tree-ssa/pr21001.c	27 Apr 2005 15:28:50 -0000
@@ -18,3 +18,4 @@ foo (int a)
 }
 
 /* { dg-final { scan-tree-dump-times "Folding predicate" 1 "vrp"} } */
+/* { dg-final { cleanup-tree-dump "vrp" } } */
Index: testsuite/gcc.dg/tree-ssa/stdarg-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/stdarg-1.c,v
retrieving revision 1.3
diff -u -d -p -r1.3 stdarg-1.c
--- testsuite/gcc.dg/tree-ssa/stdarg-1.c	9 Apr 2005 17:19:58 -0000	1.3
+++ testsuite/gcc.dg/tree-ssa/stdarg-1.c	27 Apr 2005 15:28:50 -0000
@@ -10,3 +10,4 @@ f1 (int i, ...)
 {
 }
 /* { dg-final { scan-tree-dump "f1: va_list escapes 0, needs to save 0 GPR units and 0 FPR units" "stdarg" } } */
+/* { dg-final { cleanup-tree-dump "stdarg" } } */
Index: testsuite/gcc.dg/tree-ssa/stdarg-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/stdarg-2.c,v
retrieving revision 1.3
diff -u -d -p -r1.3 stdarg-2.c
--- testsuite/gcc.dg/tree-ssa/stdarg-2.c	9 Apr 2005 17:19:58 -0000	1.3
+++ testsuite/gcc.dg/tree-ssa/stdarg-2.c	27 Apr 2005 15:28:50 -0000
@@ -265,3 +265,4 @@ f15 (int i, ...)
 /* { dg-final { scan-tree-dump "f15: va_list escapes 1, needs to save all GPR units and all FPR units" "stdarg" { target alpha*-*-linux* } } } */
 /* { dg-final { scan-tree-dump-not "f15: va_list escapes 0, needs to save 0 GPR units" "stdarg" { target i?86-*-* ia64-*-* } } } */
 /* { dg-final { scan-tree-dump-not "f15: va_list escapes 0, needs to save 0 GPR units" "stdarg" { target { powerpc*-*-* && lp64 } } } } */
+/* { dg-final { cleanup-tree-dump "stdarg" } } */
Index: testsuite/gcc.dg/tree-ssa/stdarg-3.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/stdarg-3.c,v
retrieving revision 1.3
diff -u -d -p -r1.3 stdarg-3.c
--- testsuite/gcc.dg/tree-ssa/stdarg-3.c	9 Apr 2005 17:19:58 -0000	1.3
+++ testsuite/gcc.dg/tree-ssa/stdarg-3.c	27 Apr 2005 15:28:50 -0000
@@ -168,3 +168,4 @@ f12 (int i, ...)
 /* { dg-final { scan-tree-dump "f12: va_list escapes 1, needs to save all GPR units and all FPR units" "stdarg" { target alpha*-*-linux* } } } */
 /* { dg-final { scan-tree-dump "f12: va_list escapes 1, needs to save all GPR units" "stdarg" { target i?86-*-* ia64-*-* } } } */
 /* { dg-final { scan-tree-dump "f12: va_list escapes 1, needs to save all GPR units" "stdarg" { target { powerpc*-*-* && lp64 } } } } */
+/* { dg-final { cleanup-tree-dump "stdarg" } } */
Index: testsuite/gcc.dg/tree-ssa/stdarg-4.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/stdarg-4.c,v
retrieving revision 1.3
diff -u -d -p -r1.3 stdarg-4.c
--- testsuite/gcc.dg/tree-ssa/stdarg-4.c	9 Apr 2005 17:19:57 -0000	1.3
+++ testsuite/gcc.dg/tree-ssa/stdarg-4.c	27 Apr 2005 15:28:50 -0000
@@ -83,3 +83,4 @@ f4 (int i, ...)
 /* { dg-final { scan-tree-dump "f4: va_list escapes 0, needs to save 8 GPR units and 2" "stdarg" { target alpha*-*-linux* } } } */
 /* { dg-final { scan-tree-dump "f4: va_list escapes 0, needs to save \[148\] GPR units" "stdarg" { target i?86-*-* ia64-*-* } } } */
 /* { dg-final { scan-tree-dump "f4: va_list escapes 0, needs to save \[148\] GPR units" "stdarg" { target { powerpc*-*-* && lp64 } } } } */
+/* { dg-final { cleanup-tree-dump "stdarg" } } */
Index: testsuite/gcc.dg/tree-ssa/stdarg-5.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/stdarg-5.c,v
retrieving revision 1.3
diff -u -d -p -r1.3 stdarg-5.c
--- testsuite/gcc.dg/tree-ssa/stdarg-5.c	9 Apr 2005 17:19:58 -0000	1.3
+++ testsuite/gcc.dg/tree-ssa/stdarg-5.c	27 Apr 2005 15:28:50 -0000
@@ -109,3 +109,4 @@ f7 (int i, ...)
 }
 /* { dg-final { scan-tree-dump "f7: va_list escapes 0, needs to save 0 GPR units and 64 FPR units" "stdarg" { target { x86_64-*-* && lp64 } } } } */
 /* { dg-final { scan-tree-dump "f7: va_list escapes 0, needs to save 32 GPR units and 2" "stdarg" { target alpha*-*-linux* } } } */
+/* { dg-final { cleanup-tree-dump "stdarg" } } */
Index: testsuite/gcc.dg/tree-ssa/structopt-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/structopt-1.c,v
retrieving revision 1.2
diff -u -d -p -r1.2 structopt-1.c
--- testsuite/gcc.dg/tree-ssa/structopt-1.c	13 Mar 2005 00:46:07 -0000	1.2
+++ testsuite/gcc.dg/tree-ssa/structopt-1.c	27 Apr 2005 15:28:50 -0000
@@ -12,4 +12,4 @@ int foo() {
 
 /* { dg-final { scan-tree-dump-times "Executing store motion of global.y" 1 "lim" } } */
 /* XXX: We should also check for the load motion of global.x, but there is no easy way to do this.  */
-
+/* { dg-final { cleanup-tree-dump "lim" } } */
Index: testsuite/gcc.dg/tree-ssa/structopt-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/structopt-2.c,v
retrieving revision 1.2
diff -u -d -p -r1.2 structopt-2.c
--- testsuite/gcc.dg/tree-ssa/structopt-2.c	13 Mar 2005 00:46:07 -0000	1.2
+++ testsuite/gcc.dg/tree-ssa/structopt-2.c	27 Apr 2005 15:28:50 -0000
@@ -43,3 +43,4 @@ int main(void)
 /* { dg-final { scan-tree-dump-times "a.f" 0 "optimized" } } */
 /* { dg-final { scan-tree-dump-times "a.g" 0 "optimized" } } */
 /* { dg-final { scan-tree-dump-times "b.e" 0 "optimized" } } */
+/* { dg-final { cleanup-tree-dump "optimized" } } */
Index: testsuite/gcc.dg/tree-ssa/structopt-3.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/structopt-3.c,v
retrieving revision 1.1
diff -u -d -p -r1.1 structopt-3.c
--- testsuite/gcc.dg/tree-ssa/structopt-3.c	13 Mar 2005 00:46:07 -0000	1.1
+++ testsuite/gcc.dg/tree-ssa/structopt-3.c	27 Apr 2005 15:28:50 -0000
@@ -14,3 +14,4 @@ int main(void)
 	return temp.a + temp.b;
 }
 /* { dg-final { scan-tree-dump-times "return 11" 1 "optimized" } } */
+/* { dg-final { cleanup-tree-dump "optimized" } } */



More information about the Gcc-patches mailing list