From e08eb33cbcf2cb4cc402fc4def027bd9deb65928 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Wed, 21 Jul 2004 01:46:13 +0000 Subject: [PATCH] sparc.c (sparc_rtx_costs case MULT): Emit enormous cost if not TARGET_HARD_MUL. 2004-07-20 David S. Miller * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit enormous cost if not TARGET_HARD_MUL. From-SVN: r84992 --- gcc/ChangeLog | 5 +++++ gcc/config/sparc/sparc.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f4c20226263..03dc9314365 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-07-20 David S. Miller + + * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit + enormous cost if not TARGET_HARD_MUL. + 2004-07-20 Andrew Pinski PR target/16557 diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 1c560877990..97ef0542893 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -8383,6 +8383,8 @@ sparc_rtx_costs (rtx x, int code, int outer_code, int *total) case MULT: if (float_mode_p) *total = sparc_costs->float_mul; + else if (! TARGET_HARD_MUL) + return COSTS_N_INSNS (25); else { int bit_cost; -- 2.30.2