aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid S. Miller <davem@nuts.davemloft.net>2004-07-21 01:46:13 +0000
committerDavid S. Miller <davem@gcc.gnu.org>2004-07-20 18:46:13 -0700
commite08eb33cbcf2cb4cc402fc4def027bd9deb65928 (patch)
tree602322056bfe0caa42c6de450e3150211b281ce8
parente70d4dfb0f413194e0a5c3cdd212a80d9135fb77 (diff)
downloadgcc-e08eb33cbcf2cb4cc402fc4def027bd9deb65928.zip
gcc-e08eb33cbcf2cb4cc402fc4def027bd9deb65928.tar.gz
gcc-e08eb33cbcf2cb4cc402fc4def027bd9deb65928.tar.bz2
sparc.c (sparc_rtx_costs case MULT): Emit enormous cost if not TARGET_HARD_MUL.
2004-07-20 David S. Miller <davem@nuts.davemloft.net> * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit enormous cost if not TARGET_HARD_MUL. From-SVN: r84992
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/sparc/sparc.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f4c2022..03dc931 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-07-20 David S. Miller <davem@nuts.davemloft.net>
+
+ * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
+ enormous cost if not TARGET_HARD_MUL.
+
2004-07-20 Andrew Pinski <apinski@apple.com>
PR target/16557
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index 1c56087..97ef054 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;