aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2012-08-26 19:17:33 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2012-08-26 19:17:33 +0000
commit3f5685dc35e4fea18c19eb5c32337c3020f323fe (patch)
treec1b424bcf36d5b9dd182202d5aebf7c096ea1a6f
parent8870dee7f0d6173b0d0849b7223879bfa02fa77f (diff)
downloadgcc-3f5685dc35e4fea18c19eb5c32337c3020f323fe.zip
gcc-3f5685dc35e4fea18c19eb5c32337c3020f323fe.tar.gz
gcc-3f5685dc35e4fea18c19eb5c32337c3020f323fe.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/mips.c2
2 files changed, 6 insertions, 1 deletions
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 <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
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