aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/machine/riscv/memmove.S
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/riscv/memmove.S')
-rw-r--r--newlib/libc/machine/riscv/memmove.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/machine/riscv/memmove.S b/newlib/libc/machine/riscv/memmove.S
index 6ecad9a..061472c 100644
--- a/newlib/libc/machine/riscv/memmove.S
+++ b/newlib/libc/machine/riscv/memmove.S
@@ -29,7 +29,7 @@ memmove:
add a1, a1, a3
.Lcopy:
lbu a5, 0(a1)
- add a2, a2, -1 /* copy bytes as long as a2 (= the number of bytes to be copied) > 0. the increment is done here to relax the RAW dependency between load and store */
+ addi a2, a2, -1 /* copy bytes as long as a2 (= the number of bytes to be copied) > 0. the increment is done here to relax the RAW dependency between load and store */
sb a5, 0(a4)
bnez a2, .Lincrement