Commit 3410b2f3 by Andrew MacLeod Committed by Andrew Macleod

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
parent 1d8cc6e9
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> Fri Jul 10 12:34:37 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* config/m68k/m68k.c (const_uint32_operand): Recognize * config/m68k/m68k.c (const_uint32_operand): Recognize
......
...@@ -531,6 +531,12 @@ i960_address_cost (x) ...@@ -531,6 +531,12 @@ i960_address_cost (x)
if (GET_CODE (x) == REG) if (GET_CODE (x) == REG)
return 1; return 1;
#endif #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) if (GET_CODE (x) == PLUS)
{ {
rtx base = XEXP (x, 0); rtx base = XEXP (x, 0);
......
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