From: Richard Kenner Date: Tue, 6 Jun 1995 21:52:58 +0000 (-0400) Subject: (expand_block_move): Update source and destination pointers inside the X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=015892ee4a10510c04efc387f78800f53b93f09e;p=gcc.git (expand_block_move): Update source and destination pointers inside the loop moving the bytes, not outside. From-SVN: r9891 --- diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 2adff2abd30..4da75567e8d 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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))); + } } }