Add testcase for PR20742.

2010-07-20  Sebastian Pop  <sebastian.pop@amd.com>

	* gcc.dg/tree-ssa/pr20742.c: New.

From-SVN: r163150
This commit is contained in:
Sebastian Pop 2010-08-11 20:28:47 +00:00 committed by Sebastian Pop
parent 6f23dd91cb
commit 5df5f257f5
3 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2010-07-20 Sebastian Pop <sebastian.pop@amd.com>
* gcc.dg/tree-ssa/pr20742.c: New.
2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
* sese.c (rename_uses): Call unshare_expr before force_gimple_operand.

View File

@ -1,3 +1,7 @@
2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
* gcc.dg/tree-ssa/pr20742.c: New.
2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
* gcc.dg/graphite/id-23.c: New.

View File

@ -0,0 +1,18 @@
/* { dg-do compile } */
/* { dg-options "-O2" } */
#define TEN(x) x x x x x x x x x x
#define THOUSAND(x) TEN (TEN (TEN (x)))
int
foo (int x, int y)
{
register int a = y + 57;
register int b = y + 31;
while (x-- > 0)
{
THOUSAND (a += b; b -= a;)
}
return a + b;
}