summaryrefslogtreecommitdiff
path: root/gcc/config/mips
diff options
context:
space:
mode:
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-09 11:31:23 +0000
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-09 11:31:23 +0000
commit925fe12ad0c92eb3831cdcec934ef81b57c650ee (patch)
tree3f46753cf94af6c52c98f30a93a4f62a95984f16 /gcc/config/mips
parentae2158ea9cd4318e5aa8baed476c0828144d01b8 (diff)
downloadgcc-925fe12ad0c92eb3831cdcec934ef81b57c650ee.tar.gz
* config/mips/mips.c (mips_legitimate_address_p): Check for
CONST_INT in last patch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44736 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mips')
-rw-r--r--gcc/config/mips/mips.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index a2caf2ac7b4..879da3da73e 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -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;
}