PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-ccp-30.c
blob47675ed5d3177eae7b0b715217b6c48c5d707aba
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-ccp1" } */
4 int
5 foo (int a)
7 int b = a & 0xff;
8 if (b > 300)
9 return 2;
10 else
11 return 1;
14 /* { dg-final { scan-tree-dump-times "Folding predicate b_.* > 300 to 0" 1 "ccp1" } } */
15 /* { dg-final { cleanup-tree-dump "ccp1" } } */