OSDN Git Service

* config/alpha/alpha.c (alpha_rtx_costs): Fix shiftadd costs.
authorfalk <falk@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 May 2004 12:21:51 +0000 (12:21 +0000)
committerfalk <falk@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 May 2004 12:21:51 +0000 (12:21 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81386 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/alpha/alpha.c

index 85f3b6c..d442d30 100644 (file)
@@ -1,3 +1,7 @@
+2004-05-01  Falk Hueffner  <falk@debian.org>
+
+       * config/alpha/alpha.c (alpha_rtx_costs): Fix shiftadd costs.
+
 2004-05-01  Ulrich Weigand  <uweigand@de.ibm.com>
        
        PR middle-end/15054
index dd306d5..b1d1a54 100644 (file)
@@ -2156,7 +2156,7 @@ alpha_rtx_costs (rtx x, int code, int outer_code, int *total)
               && const48_operand (XEXP (XEXP (x, 0), 1), VOIDmode))
        {
          *total = (rtx_cost (XEXP (XEXP (x, 0), 0), outer_code)
-                   + rtx_cost (XEXP (x, 1), outer_code) + 2);
+                   + rtx_cost (XEXP (x, 1), outer_code) + COSTS_N_INSNS (1));
          return true;
        }
       return false;