Commit 005f39ce by Bernd Schmidt Committed by Bernd Schmidt

Better RTX_COSTS for ia64.

From-SVN: r37104
parent 4c3a2649
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
* reload1.c (choose_reload_regs): Never set reload_override_in for an * reload1.c (choose_reload_regs): Never set reload_override_in for an
optional reload. optional reload.
* config/ia64/ia64.h (RTX_COSTS): A few more entries, and a more
accurate value for MULT.
2000-10-28 Neil Booth <neilb@earthling.net> 2000-10-28 Neil Booth <neilb@earthling.net>
New macro expander. New macro expander.
......
...@@ -1851,9 +1851,16 @@ do { \ ...@@ -1851,9 +1851,16 @@ do { \
case MULT: \ case MULT: \
/* For multiplies wider than HImode, we have to go to the FPU, \ /* For multiplies wider than HImode, we have to go to the FPU, \
which normally involves copies. Plus there's the latency \ which normally involves copies. Plus there's the latency \
of the multiply itself. */ \ of the multiply itself, and the latency of the instructions to \
transfer integer regs to FP regs. */ \
if (GET_MODE_SIZE (GET_MODE (X)) > 2) \ if (GET_MODE_SIZE (GET_MODE (X)) > 2) \
return COSTS_N_INSNS (4); \ return COSTS_N_INSNS (10); \
return COSTS_N_INSNS (2); \
case PLUS: \
case MINUS: \
case ASHIFT: \
case ASHIFTRT: \
case LSHIFTRT: \
return COSTS_N_INSNS (1); \ return COSTS_N_INSNS (1); \
case DIV: \ case DIV: \
case UDIV: \ case UDIV: \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment