Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/pr110637-3.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 int d = ~a;
8 int e = d & 1;
9 return c == e;
10 }
11
12 /* This should be optimized to just `return 1` */
13 /* { dg-final { scan-tree-dump-not " == " "optimized"} } */
14 /* { dg-final { scan-tree-dump-times "return 1" 1 "optimized"} } */