libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / pr88784-8.c
blob6bb56a91561a57ffa27c6f957f4776d92828c761
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 #include <limits.h>
6 _Bool or1(unsigned x, unsigned y)
8 /* x > y || x != 0 --> x != 0 */
9 return x > y || x != 0;
12 _Bool or2(unsigned x, unsigned y)
14 /* x < y || x != UINT_MAX --> x != UINT_MAX */
15 return x < y || x != UINT_MAX;
18 _Bool or3(signed x, signed y)
20 /* x > y || x != INT_MIN --> x != INT_MIN */
21 return x > y || x != INT_MIN;
24 _Bool or4(signed x, signed y)
26 /* x < y || x != INT_MAX --> x != INT_MAX */
27 return x < y || x != INT_MAX;
30 /* { dg-final { scan-tree-dump-not " > " "optimized" } } */
31 /* { dg-final { scan-tree-dump-not " < " "optimized" } } */