From: Andrew MacLeod Date: Fri, 10 Jul 1998 08:55:34 +0000 (+0000) Subject: i960.c (i960_address_cost): MEMA operands with positive offsets < 4096 are free. X-Git-Tag: prereleases/egcs-1.1-prerelease~332 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3410b2f3891c179f9dcd1f89b35bda224780501b;p=thirdparty%2Fgcc.git i960.c (i960_address_cost): MEMA operands with positive offsets < 4096 are free. Fri Jul 10 11:50:43 EDT 1998 Andrew MacLeod * config/i960/i960.c (i960_address_cost): MEMA operands with positive offsets < 4096 are free. From-SVN: r21051 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9f0285963fb8..3380061898a1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Fri Jul 10 11:50:43 EDT 1998 Andrew MacLeod + + * config/i960/i960.c (i960_address_cost): MEMA operands with + positive offsets < 4096 are free. + Fri Jul 10 12:34:37 1998 Andreas Schwab * config/m68k/m68k.c (const_uint32_operand): Recognize diff --git a/gcc/config/i960/i960.c b/gcc/config/i960/i960.c index f87b02c8a1b6..6189b4dee51e 100644 --- a/gcc/config/i960/i960.c +++ b/gcc/config/i960/i960.c @@ -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);