Skip various cmp-mem-const tests on lp64 hppa*-*-*
[official-gcc.git] / gcc / testsuite / gcc.dg / cmp-mem-const-3.c
blob5469f10712ea86177bf49830d5b80ef90a9bf98b
1 /* { dg-do compile { target { lp64 && { ! { sparc*-*-* hppa*-*-* } } } } } */
2 /* Excluding sparc since there we do not end up with a comparison of memory and
3 a constant which means that the optimization is not applicable. */
4 /* { dg-options "-O2 -fdump-rtl-combine-details" } */
5 /* { dg-final { scan-rtl-dump "narrow comparison from mode .I to HI" "combine" } } */
7 typedef __UINT64_TYPE__ uint64_t;
9 int
10 le_2bytes_a (uint64_t *x)
12 return *x <= 0x3ffdffffffffffff;
15 int
16 le_2bytes_b (uint64_t *x)
18 return *x < 0x3ffe000000000000;