Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/bool-14.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized-raw" } */
3 /* PR tree-optimization/110937 */
4
5 _Bool f2(_Bool a, _Bool b)
6 {
7 if (a)
8 return !b;
9 return b;
10 }
11
12 /* We should be able to remove the conditional and convert it to an xor. */
13 /* { dg-final { scan-tree-dump-not "gimple_cond " "optimized" } } */
14 /* { dg-final { scan-tree-dump-not "gimple_phi " "optimized" } } */
15 /* { dg-final { scan-tree-dump-times "bit_xor_expr, " 1 "optimized" } } */