[AArch64] Handle FLOAT and UNSIGNED_FLOAT in rtx costs

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

From-SVN: r222677
This commit is contained in:
Kyrylo Tkachov 2015-05-01 12:54:22 +00:00 committed by Kyrylo Tkachov
parent 23cb661888
commit 5e2a765bee
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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):

View file

@ -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;