Commit a81fee56 by Richard Stallman

(convert_move): When extending to multi-word register

via its low word, clobber the whole thing.

From-SVN: r5953
parent 41ebeb1d
...@@ -874,6 +874,8 @@ convert_move (to, from, unsignedp) ...@@ -874,6 +874,8 @@ convert_move (to, from, unsignedp)
&& ((code = can_extend_p (to_mode, word_mode, unsignedp)) && ((code = can_extend_p (to_mode, word_mode, unsignedp))
!= CODE_FOR_nothing)) != CODE_FOR_nothing))
{ {
if (GET_CODE (to) == REG)
emit_insn (gen_rtx (CLOBBER, VOIDmode, to));
convert_move (gen_lowpart (word_mode, to), from, unsignedp); convert_move (gen_lowpart (word_mode, to), from, unsignedp);
emit_unop_insn (code, to, emit_unop_insn (code, to,
gen_lowpart (word_mode, to), equiv_code); gen_lowpart (word_mode, to), equiv_code);
......
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