[AArch64] Handle FLOAT and UNSIGNED_FLOAT in rtx costs
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Fri, 1 May 2015 12:54:22 +0000 (12:54 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Fri, 1 May 2015 12:54:22 +0000 (12:54 +0000)
* config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
UNSIGNED_FLOAT.

From-SVN: r222677

gcc/ChangeLog
gcc/config/aarch64/aarch64.c

index fd85f21353a5861c852af2364fce37f72aa5042f..71ed72c0bcb193dfc79e5046acd6706dbbaefbb2 100644 (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):
index eed37dbd91f4c75f741bb7b9276dc5193f02d256..94bdac7140d704402f114c724c8c97b261a3e939 100644 (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;