From 3f5685dc35e4fea18c19eb5c32337c3020f323fe Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Sun, 26 Aug 2012 19:17:33 +0000 Subject: mips.c (mips_rtx_costs): Add missing COSTS_N_INSNS to the size cost of multiplication. gcc/ * config/mips/mips.c (mips_rtx_costs): Add missing COSTS_N_INSNS to the size cost of multiplication. From-SVN: r190698 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/mips.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d5da60a..98aafc6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-08-26 Richard Sandiford + + * config/mips/mips.c (mips_rtx_costs): Add missing COSTS_N_INSNS + to the size cost of multiplication. + 2012-08-26 Gerald Pfeifer * doc/install.texi (Specific): Clarify what needs to be added to diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index dc9f9cf..b8210de 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -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 -- cgit v1.1