From d2d199a3e6103b6cd2e0088cbcfdd0047d2c631e Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 30 Oct 2002 11:21:24 +0000 Subject: [PATCH] h8300.c (h8300_eightbit_constant_address_p): Truncate the addresses for H8/300 using HImode. * config/h8300/h8300.c (h8300_eightbit_constant_address_p): Truncate the addresses for H8/300 using HImode. From-SVN: r58653 --- gcc/ChangeLog | 5 +++++ gcc/config/h8300/h8300.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 73713f022e1..114bc88f713 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-10-30 Kazu Hirata + + * config/h8300/h8300.c (h8300_eightbit_constant_address_p): + Truncate the addresses for H8/300 using HImode. + 2002-10-29 Hans-Peter Nilsson * toplev.c (rest_of_type_compilation): Return early in case of diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 55ac700ddca..43a0c88ca30 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -3862,8 +3862,8 @@ h8300_eightbit_constant_address_p (x) rtx x; { /* The ranges the 8-bit area. */ - const unsigned HOST_WIDE_INT n1 = trunc_int_for_mode (0x0000ff00, SImode); - const unsigned HOST_WIDE_INT n2 = trunc_int_for_mode (0x0000ffff, SImode); + const unsigned HOST_WIDE_INT n1 = trunc_int_for_mode (0xff00, HImode); + const unsigned HOST_WIDE_INT n2 = trunc_int_for_mode (0xffff, HImode); const unsigned HOST_WIDE_INT h1 = trunc_int_for_mode (0x00ffff00, SImode); const unsigned HOST_WIDE_INT h2 = trunc_int_for_mode (0x00ffffff, SImode); const unsigned HOST_WIDE_INT s1 = trunc_int_for_mode (0xffffff00, SImode); -- 2.30.2