diff options
author | davem <davem@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-21 01:46:13 +0000 |
---|---|---|
committer | davem <davem@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-21 01:46:13 +0000 |
commit | 3d187dc182ed97a305eb6323a1402c47f214843f (patch) | |
tree | 602322056bfe0caa42c6de450e3150211b281ce8 /gcc | |
parent | 2ffd7eaebe5a476c6c66cec3a85151d1e3a6b19e (diff) | |
download | gcc-3d187dc182ed97a305eb6323a1402c47f214843f.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84992 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/sparc/sparc.c | 2 |
2 files changed, 7 insertions, 0 deletions
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 <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 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; |