(expand_block_move): Update source and destination pointers inside the

loop moving the bytes, not outside.

From-SVN: r9891
This commit is contained in:
Richard Kenner 1995-06-06 17:52:58 -04:00
parent adedad3ee4
commit 015892ee4a
1 changed files with 5 additions and 5 deletions

View File

@ -789,12 +789,12 @@ expand_block_move (operands)
GEN_INT (move_bytes),
align_rtx));
}
}
if (bytes > 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)));
if (bytes > 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)));
}
}
}