Commit 328402a9 by Richard Earnshaw Committed by Richard Earnshaw

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

From-SVN: r206363
parent 0a15a50e
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
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment