OSDN Git Service

PR rtl-optimization/52139
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp57.c
1 /* PR40052 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -ftree-vrp -fno-tree-ccp -fdump-tree-optimized" } */
4
5 int foo(_Bool b)
6 {
7     return b | 1;
8 }
9
10 int bar(_Bool b)
11 {
12     return b & -2;
13 }
14
15 /* { dg-final { scan-tree-dump "return 0;" "optimized" } } */
16 /* { dg-final { scan-tree-dump "return 1;" "optimized" } } */
17 /* { dg-final { cleanup-tree-dump "optimized" } } */