]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
m68hc11.c (register_indirect_p): For 68HC12 a constant can be a valid address.
authorStephane Carrez <Stephane.Carrez@nerim.fr>
Fri, 28 Jun 2002 19:58:32 +0000 (21:58 +0200)
committerStephane Carrez <ciceron@gcc.gnu.org>
Fri, 28 Jun 2002 19:58:32 +0000 (21:58 +0200)
* config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
can be a valid address.

From-SVN: r55074

gcc/ChangeLog
gcc/config/m68hc11/m68hc11.c

index d39ba5cbb18f7ab3fa2ff5e4d56e956dee115cd9..79afe98a2c72c7972569b2223b4dd867c76fd132 100644 (file)
@@ -1,3 +1,8 @@
+2002-06-28  Stephane Carrez  <Stephane.Carrez@nerim.fr>
+
+       * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
+       can be a valid address.
+
 2002-06-28  Bob Wilson  <bob.wilson@acm.org>
 
        * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
index c3d324a18aa5a01a8bed296181d34e2d7b8600df..22cbe533ca01572c91c19760c4865dc22e156078 100644 (file)
@@ -1,6 +1,6 @@
 /* Subroutines for code generation on Motorola 68HC11 and 68HC12.
    Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
-   Contributed by Stephane Carrez (stcarrez@worldnet.fr)
+   Contributed by Stephane Carrez (stcarrez@nerim.fr)
 
 This file is part of GNU CC.
 
@@ -548,6 +548,12 @@ register_indirect_p (operand, mode, strict)
     case REG:
       return REGNO_OK_FOR_BASE_P2 (REGNO (operand), strict);
 
+    case CONST_INT:
+      if (TARGET_M6811)
+        return 0;
+
+      return VALID_CONSTANT_OFFSET_P (operand, mode);
+
     default:
       return 0;
     }