Commit 6d4a8967 by DJ Delorie Committed by DJ Delorie

h8300.md (insv): Force source operand to be a register.

* config/h8300/h8300.md (insv): Force source operand to be a register.
* config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
as a jump, not as a plain insn.

From-SVN: r132498
parent a214518f
2008-02-20 DJ Delorie <dj@redhat.com>
* config/h8300/h8300.md (insv): Force source operand to be a register.
* config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
as a jump, not as a plain insn.
2008-02-20 Seongbae Park <seongbae.park@gmail.com>
* doc/invoke.texi (Warning Options): Add new option
......
......@@ -930,7 +930,7 @@ h8300_expand_epilogue (void)
}
if (!returned_p)
emit_insn (gen_rtx_RETURN (VOIDmode));
emit_jump_insn (gen_rtx_RETURN (VOIDmode));
}
/* Return nonzero if the current function is an interrupt
......
......@@ -3282,6 +3282,9 @@
if (GET_CODE (operands[0]) == MEM
|| GET_CODE (operands[3]) == MEM)
FAIL;
if (GET_CODE (operands[3]) != REG)
operands[3] = force_reg (HImode, operands[3]);
}")
(define_insn ""
......
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