Debian Codegraph @

gcc/testsuite/gcc.dg/pr96695-3.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-ifcombine" } */
3
4 #include <limits.h>
5
6 _Bool and1(unsigned *x, unsigned *y)
7 {
8 /* x > y && x == 0 --> false */
9 return x > y && x == 0;
10 }
11
12 _Bool and2(unsigned *x, unsigned *y)
13 {
14 /* x < y && x == -1 --> false */
15 return x < y && x == (unsigned*)-1;
16 }
17
18 /* { dg-final { scan-tree-dump-not " == " "ifcombine" } } */
19 /* { dg-final { scan-tree-dump-not " > " "ifcombine" } } */
20 /* { dg-final { scan-tree-dump-not " < " "ifcombine" } } */