]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
mips.c (mips_legitimate_address_p): Check for CONST_INT in last patch.
authorAldy Hernandez <aldyh@redhat.com>
Thu, 9 Aug 2001 11:31:23 +0000 (11:31 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Thu, 9 Aug 2001 11:31:23 +0000 (11:31 +0000)
        * config/mips/mips.c (mips_legitimate_address_p): Check for
        CONST_INT in last patch.

From-SVN: r44736

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

index 6f285955a3cce50ed85586a540c53a9276847e48..cc0043e47747665654e9e2eb399f4c5c62c5c97a 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 a2caf2ac7b41a9b8c34efaeedbb984a777c778ba..879da3da73ed7d42eeccc35e09f1aa2a37596dd6 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;
        }