projects
/
gcc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
i960.c (i960_address_cost): MEMA operands with positive offsets < 4096 are free.
[gcc.git]
/
gcc
/
config
/
i960
/
i960.c
diff --git
a/gcc/config/i960/i960.c
b/gcc/config/i960/i960.c
index f87b02c8a1b6993470a07aa290c43cb53f71b209..6189b4dee51e9f6ddffd403486341f643b202259 100644
(file)
--- 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);