diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2001-08-09 11:31:23 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2001-08-09 11:31:23 +0000 |
commit | 77416b3d7e5690f212e2771a76c2485a5f381b6e (patch) | |
tree | 3f46753cf94af6c52c98f30a93a4f62a95984f16 /gcc/config | |
parent | 86557ec241a5e51c7e5869b82a0ba5b6e9397abc (diff) | |
download | gcc-77416b3d7e5690f212e2771a76c2485a5f381b6e.zip gcc-77416b3d7e5690f212e2771a76c2485a5f381b6e.tar.gz gcc-77416b3d7e5690f212e2771a76c2485a5f381b6e.tar.bz2 |
mips.c (mips_legitimate_address_p): Check for CONST_INT in last patch.
* config/mips/mips.c (mips_legitimate_address_p): Check for
CONST_INT in last patch.
From-SVN: r44736
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/mips/mips.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index a2caf2a..879da3d 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; } |