diff options
author | amacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-07-10 08:55:34 +0000 |
---|---|---|
committer | amacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-07-10 08:55:34 +0000 |
commit | 1b5c48fa1ab51fbd23afd219f71fbbb5eb7289b9 (patch) | |
tree | 635e1d00183c0a9ca4c3395b4364021029c72a6d /gcc/config/i960 | |
parent | b7a56497ddb42714545758fef6495d25d6ba3828 (diff) | |
download | ppe42-gcc-1b5c48fa1ab51fbd23afd219f71fbbb5eb7289b9.tar.gz ppe42-gcc-1b5c48fa1ab51fbd23afd219f71fbbb5eb7289b9.zip |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21051 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i960')
-rw-r--r-- | gcc/config/i960/i960.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/i960/i960.c b/gcc/config/i960/i960.c index f87b02c8a1b..6189b4dee51 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); |