h8300.c (h8300_eightbit_constant_address_p): Truncate the addresses for H8/300 using...
authorKazu Hirata <kazu@cs.umass.edu>
Wed, 30 Oct 2002 11:21:24 +0000 (11:21 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Wed, 30 Oct 2002 11:21:24 +0000 (11:21 +0000)
* config/h8300/h8300.c (h8300_eightbit_constant_address_p):
Truncate the addresses for H8/300 using HImode.

From-SVN: r58653

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

index 73713f022e1354df57776e443a0c9fe03f1ed767..114bc88f713e1745e579d498ebab34a0bf5027d1 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 55ac700ddcaa845fc793ec19524de7f27ea298c8..43a0c88ca30d49f0e8c4be6c0f7c3d0133e8836d 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);