]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i960.c (i960_address_cost): MEMA operands with positive offsets < 4096 are free.
authorAndrew MacLeod <amacleod@cygnus.com>
Fri, 10 Jul 1998 08:55:34 +0000 (08:55 +0000)
committerAndrew Macleod <amacleod@gcc.gnu.org>
Fri, 10 Jul 1998 08:55:34 +0000 (08:55 +0000)
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

gcc/ChangeLog
gcc/config/i960/i960.c

index 9f0285963fb84ce5b4eb8323ec6461e8bd1fa373..3380061898a189fed41faa5421c0aec14ea24506 100644 (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
index f87b02c8a1b6993470a07aa290c43cb53f71b209..6189b4dee51e9f6ddffd403486341f643b202259 100644 (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);