(expand_block_move): Update source and destination pointers inside the
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 6 Jun 1995 21:52:58 +0000 (17:52 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 6 Jun 1995 21:52:58 +0000 (17:52 -0400)
loop moving the bytes, not outside.

From-SVN: r9891

gcc/config/rs6000/rs6000.c

index 2adff2a..4da7556 100644 (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)));
+           }
        }
     }