re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / 20041002-1.c
1 /* PR tree-optimization/16632
2 fold() failed to see the following "if" statements never trigger. */
3
4 /* { dg-do compile } */
5 /* { dg-options "-O2 -fdump-tree-ssa" } */
6
7 int
8 foo (int i)
9 {
10 if ((i | 3) == 1)
11 return 1;
12 return 0;
13 }
14
15 int
16 bar (int i)
17 {
18 if ((i & 4) == 2)
19 return 1;
20 return 0;
21 }
22
23 /* { dg-final { scan-tree-dump-times "if" 0 "ssa" } } */
24 /* { dg-final { cleanup-tree-dump "ssa" } } */