From 26e0ff941167ba78f0052a94b79a0a347753d3e6 Mon Sep 17 00:00:00 2001 From: Wilco Dijkstra Date: Thu, 18 Dec 2014 13:48:34 +0000 Subject: [PATCH] [AArch64] Add TARGET_MIN_DIVISIONS_FOR_RECIP_MUL 2014-12-18 Wilco Dijkstra * 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 | 6 ++++++ gcc/config/aarch64/aarch64.c | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6bb5ec2f35f..6d5bb44e562 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-12-18 Wilco Dijkstra + + * 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 * config/aarch64/aarch64-protos.h (tune-params): Add code alignment diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index cca53f2faa8..2281ce953a8 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -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 -- 2.30.2