re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / 20040518-1.c
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-phiopt1-details" } */
3 int f(int a, int b)
4 {
5 int c = b;
6 if (a != b)
7 c = a;
8 return c;
9 }
10
11 /* Should have no ifs left after straightening. */
12 /* { dg-final { scan-tree-dump-times "if " 0 "phiopt1"} } */
13 /* { dg-final { cleanup-tree-dump "phiopt1" } } */