From: Kyrylo Tkachov Date: Fri, 1 May 2015 12:54:22 +0000 (+0000) Subject: [AArch64] Handle FLOAT and UNSIGNED_FLOAT in rtx costs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e2a765beeea16ed8250e33de74e6907c5bd5994;p=gcc.git [AArch64] Handle FLOAT and UNSIGNED_FLOAT in rtx costs * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and UNSIGNED_FLOAT. From-SVN: r222677 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fd85f21353a..71ed72c0bcb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-05-01 Kyrylo Tkachov + + * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and + UNSIGNED_FLOAT. + 2015-05-01 Wilco Dijkstra * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs): diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index eed37dbd91f..94bdac7140d 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -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;