Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / cmp-mem-const-5.c
blob4316dcb560503650901d2a39cafe05ba1d4f0818
1 /* { dg-do compile { target { lp64 && { ! sparc*-*-* } } } } */
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" } } */
7 typedef __UINT64_TYPE__ uint64_t;
9 int
10 le_4bytes_a (uint64_t *x)
12 return *x <= 0x3ffffdffffffffff;
15 int
16 le_4bytes_b (uint64_t *x)
18 return *x < 0x3ffffe0000000000;