Commit 34aa3599 by Richard Kenner

(convert_move): Don't access a hard reg in an invalid mode when doing

a truncation.

From-SVN: r9447
parent c89e8dc2
......@@ -1081,6 +1081,9 @@ convert_move (to, from, unsignedp)
|| GET_CODE (from) == REG
|| GET_CODE (from) == SUBREG))
from = force_reg (from_mode, from);
if (GET_CODE (from) == REG && REGNO (from) < FIRST_PSEUDO_REGISTER
&& ! HARD_REGNO_MODE_OK (REGNO (from), to_mode))
from = copy_to_reg (from);
emit_move_insn (to, gen_lowpart (to_mode, from));
return;
}
......
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