mips.c (mips_rtx_costs): Add missing COSTS_N_INSNS to the size cost of multiplication.
authorRichard Sandiford <rdsandiford@googlemail.com>
Sun, 26 Aug 2012 19:17:33 +0000 (19:17 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sun, 26 Aug 2012 19:17:33 +0000 (19:17 +0000)
gcc/
* config/mips/mips.c (mips_rtx_costs): Add missing COSTS_N_INSNS
to the size cost of multiplication.

From-SVN: r190698

gcc/ChangeLog
gcc/config/mips/mips.c

index d5da60a4b4adb025485355b903d5322168be5580..98aafc62ab31ceca2991e9527906f78f393450cc 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       * config/mips/mips.c (mips_rtx_costs): Add missing COSTS_N_INSNS
+       to the size cost of multiplication.
+
 2012-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
 
        * doc/install.texi (Specific): Clarify what needs to be added to
index dc9f9cfc51910fe963565c23d486f8a052354d1e..b8210de37901f5e047c49c7feedde4c927e097d1 100644 (file)
@@ -3825,7 +3825,7 @@ mips_rtx_costs (rtx x, int code, int outer_code, int opno ATTRIBUTE_UNUSED,
                  ? mips_cost->int_mult_si * 3 + 6
                  : COSTS_N_INSNS (ISA_HAS_MUL3 ? 7 : 9));
       else if (!speed)
-       *total = (ISA_HAS_MUL3 ? 1 : 2);
+       *total = COSTS_N_INSNS (ISA_HAS_MUL3 ? 1 : 2);
       else if (mode == DImode)
        *total = mips_cost->int_mult_di;
       else