pr17141-1.c: Scan in forwprop2, xfail scanning forwprop1.

2007-05-13  Richard Guenther  <rguenther@suse.de>

	* gcc.dg/tree-ssa/pr17141-1.c: Scan in forwprop2, xfail
	scanning forwprop1.
	* g++.dg/tree-ssa/pr31146.C: Likewise.

From-SVN: r124653
This commit is contained in:
Richard Guenther 2007-05-13 12:18:19 +00:00 committed by Richard Biener
parent c1cd4e0958
commit cbc862b223
3 changed files with 14 additions and 9 deletions

View File

@ -1,3 +1,9 @@
2007-05-13 Richard Guenther <rguenther@suse.de>
* gcc.dg/tree-ssa/pr17141-1.c: Scan in forwprop2, xfail
scanning forwprop1.
* g++.dg/tree-ssa/pr31146.C: Likewise.
2007-05-13 Revital Eres <eres@il.ibm.com>
* gcc.dg/dse.c: New test.

View File

@ -1,5 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-forwprop1" } */
/* { dg-options "-O -fdump-tree-forwprop" } */
/* We should be able to optimize this to i[j] = 1 during
early optimizations. */
@ -12,5 +12,6 @@ void foo (int j)
*q = 1;
}
/* { dg-final { scan-tree-dump "i\\\[j.*\\\] = 1;" "forwprop1" } } */
/* { dg-final { cleanup-tree-dump "forwprop1" } } */
/* { dg-final { scan-tree-dump "i\\\[j.*\\\] = 1;" "forwprop1" { xfail *-*-* } } } */
/* { dg-final { scan-tree-dump "i\\\[j.*\\\] = 1;" "forwprop2" } } */
/* { dg-final { cleanup-tree-dump "forwprop?" } } */

View File

@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-forwprop2" } */
/* { dg-options "-O2 -fdump-tree-forwprop" } */
struct A { int i; };
int
@ -12,7 +11,6 @@ foo(struct A *locp, int str)
return locp->i;
}
/* { dg-final { scan-tree-dump-times "&" 0 "forwprop2" } } */
/* { dg-final { cleanup-tree-dump "forwprop2" } } */
/* { dg-final { scan-tree-dump "locp.*->i =" "forwprop1" { xfail *-*-* } } } */
/* { dg-final { scan-tree-dump "locp.*->i =" "forwprop2" } } */
/* { dg-final { cleanup-tree-dump "forwprop?" } } */