diff options
Diffstat (limited to 'gcc/targhooks.c')
-rw-r--r-- | gcc/targhooks.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/targhooks.c b/gcc/targhooks.c index 94469a76b0f..9650ea82944 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -145,6 +145,14 @@ default_shift_truncation_mask (enum machine_mode mode) return SHIFT_COUNT_TRUNCATED ? GET_MODE_BITSIZE (mode) - 1 : 0; } +/* The default implementation of TARGET_MIN_DIVISIONS_FOR_RECIP_MUL. */ + +unsigned int +default_min_divisions_for_recip_mul (enum machine_mode mode ATTRIBUTE_UNUSED) +{ + return have_insn_for (DIV, mode) ? 3 : 2; +} + /* Generic hook that takes a CUMULATIVE_ARGS pointer and returns true. */ bool |