[AArch64] Add TARGET_MIN_DIVISIONS_FOR_RECIP_MUL
authorWilco Dijkstra <wdijkstr@arm.com>
Thu, 18 Dec 2014 13:48:34 +0000 (13:48 +0000)
committerJiong Wang <jiwang@gcc.gnu.org>
Thu, 18 Dec 2014 13:48:34 +0000 (13:48 +0000)
2014-12-18  Wilco Dijkstra  <wilco.dijkstra@arm.com>

* gcc/config/aarch64/aarch64.c (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL):
Define.
(aarch64_min_divisions_for_recip_mul): New function.

From-SVN: r218866

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

index 6bb5ec2f35f65bcfbbf64f70c2a2107f26f89cce..6d5bb44e562a94b644d81324a1e90a81cdd75e2e 100644 (file)
@@ -1,3 +1,9 @@
+2014-12-18  Wilco Dijkstra  <wilco.dijkstra@arm.com>
+
+       * gcc/config/aarch64/aarch64.c (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL):
+       Define.
+       (aarch64_min_divisions_for_recip_mul): New function.
+
 2014-12-18  Wilco Dijkstra  <wilco.dijkstra@arm.com>
 
        * config/aarch64/aarch64-protos.h (tune-params): Add code alignment
index cca53f2faa837951b3a24b90bea336e056a3702b..2281ce953a8965d8114757a7d208505d0f0c19fb 100644 (file)
@@ -472,6 +472,12 @@ static const char * const aarch64_condition_codes[] =
   "hi", "ls", "ge", "lt", "gt", "le", "al", "nv"
 };
 
+static unsigned int
+aarch64_min_divisions_for_recip_mul (enum machine_mode mode ATTRIBUTE_UNUSED)
+{
+  return 2;
+}
+
 static int
 aarch64_reassociation_width (unsigned opc ATTRIBUTE_UNUSED,
                             enum machine_mode mode)
@@ -11049,6 +11055,9 @@ aarch64_gen_adjusted_ldpstp (rtx *operands, bool load,
 #undef TARGET_MEMORY_MOVE_COST
 #define TARGET_MEMORY_MOVE_COST aarch64_memory_move_cost
 
+#undef TARGET_MIN_DIVISIONS_FOR_RECIP_MUL
+#define TARGET_MIN_DIVISIONS_FOR_RECIP_MUL aarch64_min_divisions_for_recip_mul
+
 #undef TARGET_MUST_PASS_IN_STACK
 #define TARGET_MUST_PASS_IN_STACK must_pass_in_stack_var_size