(RTX_COST): Return actual costs for multiplication...
authorTorbjorn Granlund <tege@gnu.org>
Fri, 5 Nov 1993 08:10:05 +0000 (08:10 +0000)
committerTorbjorn Granlund <tege@gnu.org>
Fri, 5 Nov 1993 08:10:05 +0000 (08:10 +0000)
(RTX_COST): Return actual costs for multiplication, not costs for
theoretical special cases that are not handled in the md.

From-SVN: r6008

gcc/config/m68k/m68k.h

index 4d2adef604a0cc79709ef893b4d5eaf7e261cc4a..b5e33751fbf298ee9b373734a43193d5d99a65b1 100644 (file)
@@ -1402,24 +1402,10 @@ __transfer_from_trampoline ()                                   \
       return COSTS_N_INSNS (3);         /* lsr #i,dn */                \
     break;                                                     \
   case MULT:                                                   \
-    if (GET_CODE (XEXP (x, 1)) == CONST_INT                    \
-       && exact_log2 (INTVAL (XEXP (x, 1))) >= 0)              \
-      {                                                                \
-       /* A shift by a big integer takes an extra instruction.  */ \
-       if (GET_CODE (XEXP (X, 1)) == CONST_INT                 \
-           && (INTVAL (XEXP (X, 1)) == (1 << 16)))             \
-         return COSTS_N_INSNS (2);      /* clrw;swap */        \
-       if (GET_CODE (XEXP (X, 1)) == CONST_INT                 \
-           && !(INTVAL (XEXP (X, 1)) > 1                       \
-                && INTVAL (XEXP (X, 1)) <= 256))               \
-         return COSTS_N_INSNS (3);      /* lsr #i,dn */        \
-       break;                                                  \
-      }                                                                \
-    else if (GET_MODE (X) == QImode || GET_MODE (X) == HImode) \
+    if (GET_MODE (X) == QImode || GET_MODE (X) == HImode)      \
       return COSTS_N_INSNS (MULW_COST);                                \
     else                                                       \
       return COSTS_N_INSNS (MULL_COST);                                \
-    break;                                                     \
   case DIV:                                                    \
   case UDIV:                                                   \
   case MOD:                                                    \