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 0c8f97696e45e897ed7d1cadf8834d6188c444d6..506e7bb533812188d04d1892605435a4a57a4206 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 b2d112d43fd6e9e9ea46b00dd6d1cdff11cc0083..4535b9cefc404165cb4aa4c5d8f2ea0e51c28bb1 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);