Commit 5e2a765b by Kyrylo Tkachov Committed by Kyrylo Tkachov

[AArch64] Handle FLOAT and UNSIGNED_FLOAT in rtx costs

	* config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
	UNSIGNED_FLOAT.

From-SVN: r222677
parent 23cb6618
2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
UNSIGNED_FLOAT.
2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
* gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
......
......@@ -6405,6 +6405,12 @@ cost_plus:
*cost += rtx_cost (op2, FMA, 2, speed);
return true;
case FLOAT:
case UNSIGNED_FLOAT:
if (speed)
*cost += extra_cost->fp[mode == DFmode].fromint;
return false;
case FLOAT_EXTEND:
if (speed)
*cost += extra_cost->fp[mode == DFmode].widen;
......
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