OSDN Git Service

* config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
authorgrahams <grahams@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Aug 2001 07:49:06 +0000 (07:49 +0000)
committergrahams <grahams@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Aug 2001 07:49:06 +0000 (07:49 +0000)
        failure check for CONST_INT

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

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

index 338b704..df59d73 100644 (file)
@@ -1,5 +1,10 @@
 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.
        (libcall_dead_p): Likewise.
 
index be0033a..9614c95 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;
        }