PR tree-optimization/33562
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr20742.c
blob21d6eb63c8ccb9fbf8b09b27ecea57fa7c32e0ba
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 #define TEN(x) x x x x x x x x x x
5 #define THOUSAND(x) TEN (TEN (TEN (x)))
7 int
8 foo (int x, int y)
10 register int a = y + 57;
11 register int b = y + 31;
13 while (x-- > 0)
15 THOUSAND (a += b; b -= a;)
17 return a + b;