* config/h8300/h8300.c (h8300_eightbit_constant_address_p):
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Oct 2002 11:21:24 +0000 (11:21 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Oct 2002 11:21:24 +0000 (11:21 +0000)
Truncate the addresses for H8/300 using HImode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58653 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/h8300/h8300.c

index 73713f0..114bc88 100644 (file)
@@ -1,3 +1,8 @@
+2002-10-30  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.c (h8300_eightbit_constant_address_p):
+       Truncate the addresses for H8/300 using HImode.
+
 2002-10-29  Hans-Peter Nilsson  <hp@bitrange.com>
 
        * toplev.c (rest_of_type_compilation): Return early in case of
index 55ac700..43a0c88 100644 (file)
@@ -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);