arm.c (arm_rtx_costs_1): Handle multiply-accumulate.
2006-10-17 Paul Brook <paul@codesourcery.com> * config/arm/arm.c (arm_rtx_costs_1): Handle multiply-accumulate. From-SVN: r117809
This commit is contained in:
parent
b5d713b9b0
commit
26da58ddfa
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2006-10-17 Paul Brook <paul@codesourcery.com>
|
||||
|
||||
* config/arm/arm.c (arm_rtx_costs_1): Handle multiply-accumulate.
|
||||
|
||||
2006-10-16 Brooks Moses <bmoses@stanford.edu>
|
||||
|
||||
* doc/contrib.texi, doc/install.texi, doc/standards.texi:
|
||||
|
|
|
@ -4465,6 +4465,14 @@ arm_rtx_costs_1 (rtx x, enum rtx_code code, enum rtx_code outer)
|
|||
/* Fall through */
|
||||
|
||||
case PLUS:
|
||||
if (GET_CODE (XEXP (x, 0)) == MULT)
|
||||
{
|
||||
extra_cost = rtx_cost (XEXP (x, 0), code);
|
||||
if (!REG_OR_SUBREG_REG (XEXP (x, 1)))
|
||||
extra_cost += 4 * ARM_NUM_REGS (mode);
|
||||
return extra_cost;
|
||||
}
|
||||
|
||||
if (GET_MODE_CLASS (mode) == MODE_FLOAT)
|
||||
return (2 + (REG_OR_SUBREG_REG (XEXP (x, 0)) ? 0 : 8)
|
||||
+ ((REG_OR_SUBREG_REG (XEXP (x, 1))
|
||||
|
|
Loading…
Add table
Reference in a new issue