]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
mips.c (mips_legitimate_address_p): Fix enable checking failure check for CONST_INT
authorGraham Stott <grahams@redhat.com>
Wed, 8 Aug 2001 07:49:06 +0000 (07:49 +0000)
committerGraham Stott <grahams@gcc.gnu.org>
Wed, 8 Aug 2001 07:49:06 +0000 (07:49 +0000)
        * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
        failure check for CONST_INT

From-SVN: r44708

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

index 338b7048e7410ca304663411f242a599a0c7ef32..df59d7333b2fc7de75ec5849a05054b8862ab6cb 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-08  Graham Stott  <grahams@redhat.com>
+
+       * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
+       failure check for CONST_INT
+
 2001-08-08  Graham Stott  <grahams@redhat.com>
 
        * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
index be0033a9fb168a1fb6338c72874ac988b68ad1db..9614c95f31dc19708c5feaaebbcf45e7e407fa2f 100644 (file)
@@ -1366,7 +1366,7 @@ mips_legitimate_address_p (mode, xinsn, strict)
              /* When assembling for machines with 64 bit registers,
                 the assembler will not sign-extend the constant "foo"
                 in "la x, foo(x)" */
-             && (!TARGET_64BIT || (INTVAL (xplus1) > 0))
+             && (!TARGET_64BIT || (code1 == CONST_INT && INTVAL (xplus1) > 0))
              && !TARGET_MIPS16)
            return 1;
        }