Debian Codegraph @

gcc/testsuite/gcc.dg/cmp-mem-const-6.c

raw
1 /* { dg-do compile { target { lp64 && { ! { sparc*-*-* hppa*-*-* } } } } } */
2 /* Excluding sparc since there a prior optimization already reduced the
3 constant, i.e., nothing left for us. */
4 /* { dg-options "-O2 -fdump-rtl-combine-details" } */
5 /* { dg-final { scan-rtl-dump "narrow comparison from mode .I to SI" "combine" } } */
6
7 typedef __UINT64_TYPE__ uint64_t;
8
9 int
10 ge_4bytes_a (uint64_t *x)
11 {
12 return *x > 0x4000cfffffffffff;
13 }
14
15 int
16 ge_4bytes_b (uint64_t *x)
17 {
18 return *x >= 0x4000d00000000000;
19 }