aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2008-03-26 11:05:54 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2008-03-26 11:05:54 +0000
commit49e013b373db31b854984a3b71f1764a0d80ed7e (patch)
treeb8a4cdfcd485b3fe3a2978ea9e503ea36cb309ac
parent640bd0bfacb9655e7c826fe7fcb2dd27b4e28507 (diff)
downloadgcc-49e013b373db31b854984a3b71f1764a0d80ed7e.zip
gcc-49e013b373db31b854984a3b71f1764a0d80ed7e.tar.gz
gcc-49e013b373db31b854984a3b71f1764a0d80ed7e.tar.bz2
20030731-2.c: Scan dce1 dump.
2008-03-26 Richard Guenther <rguenther@suse.de> * gcc.dg/tree-ssa/20030731-2.c: Scan dce1 dump. * gcc.dg/tree-ssa/20030917-1.c: Scan optimized dump. * gcc.dg/tree-ssa/20030917-3.c: Scan ccp1 dump. * gcc.dg/tree-ssa/20040721-1.c: Test linking, do not disable DOM. * gcc.dg/tree-ssa/pr21574.c: Scan the fre dump. * gcc.dg/tree-ssa/ssa-ccp-1.c: Scan ccp1 dump. * gcc.dg/tree-ssa/ssa-ccp-3.c: Scan ccp2 dump. From-SVN: r133596
-rw-r--r--gcc/testsuite/ChangeLog10
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030731-2.c8
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030917-1.c6
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20030917-3.c6
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/20040721-1.c11
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/pr21574.c8
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-1.c6
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-3.c12
8 files changed, 40 insertions, 27 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index e3499ad..6c8c190 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,13 @@
+2008-03-26 Richard Guenther <rguenther@suse.de>
+
+ * gcc.dg/tree-ssa/20030731-2.c: Scan dce1 dump.
+ * gcc.dg/tree-ssa/20030917-1.c: Scan optimized dump.
+ * gcc.dg/tree-ssa/20030917-3.c: Scan ccp1 dump.
+ * gcc.dg/tree-ssa/20040721-1.c: Test linking, do not disable DOM.
+ * gcc.dg/tree-ssa/pr21574.c: Scan the fre dump.
+ * gcc.dg/tree-ssa/ssa-ccp-1.c: Scan ccp1 dump.
+ * gcc.dg/tree-ssa/ssa-ccp-3.c: Scan ccp2 dump.
+
2008-03-26 Douglas Gregor <doug.gregor@gmail.com>
* g++.dg/cpp0x/variadic84.C: Update to reflect the change in
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030731-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030731-2.c
index 5de797a..8300320 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030731-2.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030731-2.c
@@ -1,7 +1,7 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-store_ccp" } */
-
+/* { dg-options "-O2 -fdump-tree-dce1" } */
+void
bar (int i, int partial, int args_addr)
{
int offset = 0;
@@ -13,5 +13,5 @@ bar (int i, int partial, int args_addr)
/* There should be only one IF conditional since the first does nothing
useful. */
-/* { dg-final { scan-tree-dump-times "if " 1 "store_ccp"} } */
-/* { dg-final { cleanup-tree-dump "store_ccp" } } */
+/* { dg-final { scan-tree-dump-times "if " 1 "dce1"} } */
+/* { dg-final { cleanup-tree-dump "dce1" } } */
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030917-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030917-1.c
index de3b5c1..eb1f5ec 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030917-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030917-1.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-store_ccp" } */
+/* { dg-options "-O2 -fdump-tree-optimized" } */
extern int board[];
@@ -15,5 +15,5 @@ findbestextension (int blah, int blah2)
}
/* The argument to "foo" should be a variable, not a constant. */
-/* { dg-final { scan-tree-dump-times "foo .defval" 1 "store_ccp"} } */
-/* { dg-final { cleanup-tree-dump "store_ccp" } } */
+/* { dg-final { scan-tree-dump-times "foo .defval" 1 "optimized"} } */
+/* { dg-final { cleanup-tree-dump "optimized" } } */
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030917-3.c b/gcc/testsuite/gcc.dg/tree-ssa/20030917-3.c
index 6e6bfe9..e74bd08 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20030917-3.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20030917-3.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-store_ccp" } */
+/* { dg-options "-O -fdump-tree-ccp1" } */
extern int printf (const char *, ...);
@@ -20,5 +20,5 @@ main ()
/* The argument to "printf" should be a constant, not a variable. */
-/* { dg-final { scan-tree-dump-times "printf.*, 0" 1 "store_ccp"} } */
-/* { dg-final { cleanup-tree-dump "store_ccp" } } */
+/* { dg-final { scan-tree-dump-times "printf.*, 0" 1 "ccp1"} } */
+/* { dg-final { cleanup-tree-dump "ccp1" } } */
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040721-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20040721-1.c
index 66fcae5..1a6e36d 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/20040721-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/20040721-1.c
@@ -1,11 +1,14 @@
-/* { dg-do compile } */
-/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-store_ccp-vops" } */
+/* { dg-do link } */
+/* { dg-options "-O2" } */
/* Test to check whether global variables are being
constant propagated. */
+extern void link_error (void);
+
int G;
+void
foo (int i)
{
if (i > 0)
@@ -17,12 +20,10 @@ foo (int i)
link_error ();
}
+int
main ()
{
foo (0);
return 0;
}
-/* There should be no G on the RHS of an assignment. */
-/* { dg-final { scan-tree-dump-times "= G;" 0 "store_ccp"} } */
-/* { dg-final { cleanup-tree-dump "store_ccp" } } */
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr21574.c b/gcc/testsuite/gcc.dg/tree-ssa/pr21574.c
index 6e3a5fb..fc33d74 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/pr21574.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr21574.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-store_ccp" } */
+/* { dg-options "-O -fdump-tree-fre-details" } */
int
foo (int *p)
@@ -8,6 +8,6 @@ foo (int *p)
return *p;
}
-/* The store to *p should be propagated to the return statement. */
-/* { dg-final { scan-tree-dump-times "return 0" 1 "store_ccp" } } */
-/* { dg-final { cleanup-tree-dump "store_ccp" } } */
+/* The store to *p should be propagated to the load statement. */
+/* { dg-final { scan-tree-dump "Replaced \\\*p_.\\\(D\\\) with 0" "fre" } } */
+/* { dg-final { cleanup-tree-dump "fre" } } */
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-1.c
index d662ef6..82f37ab 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-1.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-1.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-store_ccp" } */
+/* { dg-options "-O -fdump-tree-ccp1" } */
extern void link_error (void);
@@ -71,5 +71,5 @@ void test11111 (int p, int q, int r)
/* There should be not link_error calls, if there is any the
optimization has failed */
-/* { dg-final { scan-tree-dump-times "link_error" 0 "store_ccp"} } */
-/* { dg-final { cleanup-tree-dump "store_ccp" } } */
+/* { dg-final { scan-tree-dump-times "link_error" 0 "ccp1"} } */
+/* { dg-final { cleanup-tree-dump "ccp1" } } */
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-3.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-3.c
index fe152b7..86a706b 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-3.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-3.c
@@ -1,10 +1,12 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-store_ccp" } */
+/* { dg-options "-O -fdump-tree-ccp2" } */
extern void link_error (void);
-/* some addresses clearly cannot be equal, check that some address
- expressions can be evaluated as constants */
+/* Some addresses clearly cannot be equal, check that some address
+ expressions can be evaluated as constants.
+ Most of the tests are folding tests, but at least some require
+ points-to analysis, so we scan the first CCP dump after PTA. */
char g1, g2;
void test6 (char p1, char p2)
@@ -131,5 +133,5 @@ int* test666 (int * __restrict__ rp1, int * __restrict__ rp2, int *p1)
optimization has failed */
/* ??? While we indeed don't handle some of these, a couple of the
restrict tests are incorrect. */
-/* { dg-final { scan-tree-dump-times "link_error" 0 "store_ccp" { xfail *-*-* } } } */
-/* { dg-final { cleanup-tree-dump "store_ccp" } } */
+/* { dg-final { scan-tree-dump-times "link_error" 0 "ccp2" { xfail *-*-* } } } */
+/* { dg-final { cleanup-tree-dump "ccp2" } } */