aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-06-06 17:52:58 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-06-06 17:52:58 -0400
commit015892ee4a10510c04efc387f78800f53b93f09e (patch)
treed5c32608091c9b652cf06f17c0b16a2f90b5c005 /gcc
parentadedad3ee43bac5471d20dccdc63c5ab72c6aaed (diff)
downloadgcc-015892ee4a10510c04efc387f78800f53b93f09e.zip
gcc-015892ee4a10510c04efc387f78800f53b93f09e.tar.gz
gcc-015892ee4a10510c04efc387f78800f53b93f09e.tar.bz2
(expand_block_move): Update source and destination pointers inside the
loop moving the bytes, not outside. From-SVN: r9891
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/rs6000/rs6000.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 2adff2a..4da7556 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)));
+ }
}
}