* aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.

From-SVN: r206363
This commit is contained in:
Richard Earnshaw 2014-01-06 15:58:44 +00:00 committed by Richard Earnshaw
parent 0a15a50e83
commit 328402a94e
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2014-01-06 Richard Earnshaw <rearnsha@arm.com>
* aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
2014-01-06 Martin Jambor <mjambor@suse.cz>
PR ipa/59008

View File

@ -4643,12 +4643,15 @@ aarch64_rtx_costs (rtx x, int code, int outer ATTRIBUTE_UNUSED,
extra_cost->mult[GET_MODE (x) == DImode].extend_add;
return true;
}
*cost += (rtx_cost (XEXP (op0, 0), MULT, 0, speed)
+ rtx_cost (XEXP (op0, 1), MULT, 1, speed)
+ rtx_cost (op1, PLUS, 1, speed));
if (speed)
*cost += extra_cost->mult[GET_MODE (x) == DImode].add;
return true;
}
*cost += (rtx_cost (new_op0, PLUS, 0, speed)