Commit 015892ee by Richard Kenner

(expand_block_move): Update source and destination pointers inside the

loop moving the bytes, not outside.

From-SVN: r9891
parent adedad3e
...@@ -789,12 +789,12 @@ expand_block_move (operands) ...@@ -789,12 +789,12 @@ expand_block_move (operands)
GEN_INT (move_bytes), GEN_INT (move_bytes),
align_rtx)); align_rtx));
} }
}
if (bytes > move_bytes) if (bytes > move_bytes)
{ {
emit_insn (gen_addsi3 (src_reg, src_reg, GEN_INT (move_bytes))); emit_insn (gen_addsi3 (src_reg, src_reg, GEN_INT (move_bytes)));
emit_insn (gen_addsi3 (dest_reg, dest_reg, GEN_INT (move_bytes))); emit_insn (gen_addsi3 (dest_reg, dest_reg, GEN_INT (move_bytes)));
}
} }
} }
......
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