Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr88784-3.c
blob8c48e1b894352e4c7e03b28088f33be5b625b355
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-ifcombine" } */
4 #include <limits.h>
6 _Bool and1(unsigned x, unsigned y)
8 /* x > y && x == 0 --> false */
9 return x > y && x == 0;
12 _Bool and2(unsigned x, unsigned y)
14 /* x < y && x == UINT_MAX --> false */
15 return x < y && x == UINT_MAX;
18 _Bool and3(signed x, signed y)
20 /* x > y && x == INT_MIN --> false */
21 return x > y && x == INT_MIN;
24 _Bool and4(signed x, signed y)
26 /* x < y && x == INT_MAX --> false */
27 return x < y && x == INT_MAX;
30 /* { dg-final { scan-tree-dump-not " == " "ifcombine" } } */
31 /* { dg-final { scan-tree-dump-not " > " "ifcombine" } } */
32 /* { dg-final { scan-tree-dump-not " < " "ifcombine" } } */