From 015892ee4a10510c04efc387f78800f53b93f09e Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 6 Jun 1995 17:52:58 -0400 Subject: [PATCH] (expand_block_move): Update source and destination pointers inside the loop moving the bytes, not outside. From-SVN: r9891 --- gcc/config/rs6000/rs6000.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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))); + } } } -- 2.30.2