Commit 5896d794 by Clinton Popetz Committed by Clinton Popetz

(mips_legitimate_address_p): Don't allow register+offset if the offset is large and negative...

	* (mips_legitimate_address_p): Don't allow register+offset
	if the offset is large and negative, and we are compiling
	for 64 bit registers.

From-SVN: r35477
parent 2d0de245
Fri Aug 4 06:53:46 2000 Clinton Popetz <cpopetz@cygnus.com>
* (mips_legitimate_address_p): Don't allow register+offset
if the offset is large and negative, and we are compiling
for 64 bit registers.
2000-08-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl> 2000-08-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
* gencodes.c (main): Define CODE_FOR_nothing as the last possible * gencodes.c (main): Define CODE_FOR_nothing as the last possible
......
...@@ -1329,6 +1329,10 @@ mips_legitimate_address_p (mode, xinsn, strict) ...@@ -1329,6 +1329,10 @@ mips_legitimate_address_p (mode, xinsn, strict)
&& (!TARGET_EMBEDDED_PIC && (!TARGET_EMBEDDED_PIC
|| code1 != CONST || code1 != CONST
|| GET_CODE (XEXP (xplus1, 0)) != MINUS) || GET_CODE (XEXP (xplus1, 0)) != MINUS)
/* 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_MIPS16) && !TARGET_MIPS16)
return 1; return 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment