Commit 51e13b71 by Stephane Carrez Committed by Stephane Carrez

m68hc11.c (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC11.

	* config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
	allocate 4-bytes of locals on 68HC11.
	(expand_epilogue): Likewise.
	(m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.

From-SVN: r61364
parent 1ceb0dc7
2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
* config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
allocate 4-bytes of locals on 68HC11.
(expand_epilogue): Likewise.
(m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
* config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
......
......@@ -1657,7 +1657,7 @@ expand_prologue ()
emit_insn (gen_addhi3 (stack_pointer_rtx,
stack_pointer_rtx, GEN_INT (-size)));
}
else if (size > 8)
else if ((!optimize_size && size > 8) || (optimize_size && size > 10))
{
rtx insn;
......@@ -1745,7 +1745,7 @@ expand_epilogue ()
emit_insn (gen_addhi3 (stack_pointer_rtx,
stack_pointer_rtx, GEN_INT (size)));
}
else if (size > 8)
else if ((!optimize_size && size > 8) || (optimize_size && size > 10))
{
rtx insn;
......@@ -5177,7 +5177,7 @@ m68hc11_memory_move_cost (mode, class, in)
else
{
if (GET_MODE_SIZE (mode) <= 2)
return COSTS_N_INSNS (2);
return COSTS_N_INSNS (3);
else
return COSTS_N_INSNS (4);
}
......
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