Tighten condition in vect/pr85586.c (PR 85654)
[official-gcc.git] / gcc / testsuite / gcc.dg / pr52267.c
blob8362dc23c040f058371bfc93363396371b80ed9e
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" } } */