Reverting merge from trunk
[official-gcc.git] / gcc / testsuite / gcc.dg / pr52267.c
blob9ed88c0c43a3b93b9e05708a8928b5fa75bc77aa
1 /* PR tree-optimization/52267 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 int
6 foo (int a, int b)
8 if (a > 3 || a < 0)
9 return a;
10 a &= 3;
11 return a & 3;
14 int
15 bar (int a)
17 if (a & ~3)
18 return a;
19 return a & 3;
22 /* { dg-final { scan-tree-dump-not "& 3" "optimized" } } */
23 /* { dg-final { scan-tree-dump-not "& -4" "optimized" } } */
24 /* { dg-final { cleanup-tree-dump "optimized" } } */