aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cmp-mem-const-2.c
blob: 8022137a8ecaac245779b47750f100364dedd958 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile { target { lp64 } } } */
/* { dg-options "-O2 -fdump-rtl-combine-details" } */
/* { dg-final { scan-rtl-dump "narrow comparison from mode .I to QI" "combine" } } */

typedef __UINT64_TYPE__ uint64_t;

int
ge_1byte_a (uint64_t *x)
{
  return *x > 0x3fffffffffffffff;
}

int
ge_1byte_b (uint64_t *x)
{
  return *x >= 0x4000000000000000;
}