Commit e58d5c61 by Richard Stallman

(output_move_double): Handle reg[n,n+1] = mem[reg[n] + reg[n+1]].

From-SVN: r4786
parent d7473723
...@@ -680,6 +680,19 @@ output_move_double (operands) ...@@ -680,6 +680,19 @@ output_move_double (operands)
else if (optype0 == REGOP && optype1 != REGOP else if (optype0 == REGOP && optype1 != REGOP
&& reg_overlap_mentioned_p (operands[0], operands[1])) && reg_overlap_mentioned_p (operands[0], operands[1]))
{ {
if (reg_mentioned_p (op0, XEXP (op1, 0))
&& reg_mentioned_p (latehalf[0], XEXP (op1, 0)))
{
/* If both halves of dest are used in the src memory address,
add the two regs and put them in the low reg (op0).
Then it works to load latehalf first. */
rtx xops[2];
xops[0] = latehalf[0];
xops[1] = op0;
output_asm_insn ("adds %1,%0,%1", xops);
operands[1] = gen_rtx (MEM, DImode, latehalf[0]);
latehalf[1] = adj_offsettable_operand (operands[1], 4);
}
/* Do the late half first. */ /* Do the late half first. */
output_asm_insn (singlemove_string (latehalf), latehalf); output_asm_insn (singlemove_string (latehalf), latehalf);
/* Then clobber. */ /* Then clobber. */
......
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