i960.c (i960_address_cost): MEMA operands with positive offsets < 4096 are free.

Fri Jul 10 11:50:43 EDT 1998  Andrew MacLeod  <amacleod@cygnus.com>
	* config/i960/i960.c (i960_address_cost): MEMA operands with
	positive offsets < 4096 are free.

From-SVN: r21051
This commit is contained in:
Andrew MacLeod 1998-07-10 08:55:34 +00:00 committed by Andrew Macleod
parent 1d8cc6e9f4
commit 3410b2f389
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Fri Jul 10 11:50:43 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
* config/i960/i960.c (i960_address_cost): MEMA operands with
positive offsets < 4096 are free.
Fri Jul 10 12:34:37 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* config/m68k/m68k.c (const_uint32_operand): Recognize

View File

@ -531,6 +531,12 @@ i960_address_cost (x)
if (GET_CODE (x) == REG)
return 1;
#endif
/* This is a MEMA operand -- it's free. */
if (GET_CODE (x) == CONST_INT
&& INTVAL (x) >= 0
&& INTVAL (x) < 4096)
return 0;
if (GET_CODE (x) == PLUS)
{
rtx base = XEXP (x, 0);