Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/pr110539-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
3 int f(int a)
4 {
5 int b = a & 1;
6 int c = b != 0;
7 return c == b;
8 }
9
10 /* This should be optimized to just return 1; */
11 /* { dg-final { scan-tree-dump-not " == " "optimized"} } */
12 /* { dg-final { scan-tree-dump "return 1;" "optimized"} } */