* config/mips/mips.c (mips_legitimate_address_p): Check for
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Aug 2001 11:31:23 +0000 (11:31 +0000)
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Aug 2001 11:31:23 +0000 (11:31 +0000)
        CONST_INT in last patch.

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

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

index 6f28595..cc0043e 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
+
+        * config/mips/mips.c   (mips_legitimate_address_p): Check for
+        CONST_INT in last patch.       
+
 2001-08-08  Anthony Green  <green@redhat.com>
 
        * java/class.c (emit_register_classes): Use assemble_jcr if
index a2caf2a..879da3d 100644 (file)
@@ -1368,8 +1368,9 @@ mips_legitimate_address_p (mode, xinsn, strict)
                 in "la x, foo(x)" yielding the wrong result for:
                 (set (blah:DI) (plus x y)).  */
              && (!TARGET_64BIT
-                 || trunc_int_for_mode (INTVAL (xplus1),
-                                        SImode) == INTVAL (xplus1))
+                 || (code1 == CONST_INT
+                     && trunc_int_for_mode (INTVAL (xplus1), 
+                                            SImode) == INTVAL (xplus1)))
              && !TARGET_MIPS16)
            return 1;
        }