mips.c (simple_memory_operand): Access the INTVAL of the address, not it's containing...
authorClinton Popetz <cpopetz@cygnus.com>
Tue, 11 Jul 2000 21:30:23 +0000 (21:30 +0000)
committerClinton Popetz <cpopetz@gcc.gnu.org>
Tue, 11 Jul 2000 21:30:23 +0000 (17:30 -0400)
* config/mips/mips.c (simple_memory_operand): Access the
INTVAL of the address, not it's containing MEM.

From-SVN: r34965

gcc/ChangeLog
gcc/config/mips/mips.c

index 0c8f976..506e7bb 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jul 11 16:26:17 2000  Clinton Popetz  <cpopetz@cygnus.com>
+
+       * config/mips/mips.c (simple_memory_operand): Access the
+       INTVAL of the address, not it's containing MEM.
+
 2000-07-11  Bruce Korb  <bkorb@gnu.org>
 
        * fixinc/fixtests.c(double_slash): obsolete
index b2d112d..4535b9c 100644 (file)
@@ -729,7 +729,7 @@ simple_memory_operand (op, mode)
     case CONST_INT:
       if (TARGET_MIPS16)
        return 0;
-      return SMALL_INT (op);
+      return SMALL_INT (addr);
 
     case PLUS:
       plus0 = XEXP (addr, 0);