Debian Codegraph @

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

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