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
This commit is contained in:
Stephane Carrez 2003-01-16 00:30:40 +01:00 committed by Stephane Carrez
parent 1ceb0dc753
commit 51e13b7194
2 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,10 @@
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

View file

@ -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);
}