summaryrefslogtreecommitdiff
path: root/libc/string/mips/memcpy.S
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-01-29 09:32:21 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-01-31 17:41:38 +0100
commit6f15c3b452c94098f3a9e2a0686ca5e5ffe65461 (patch)
tree43a76aac1026576c846b5543d2e807aa5dd11fc0 /libc/string/mips/memcpy.S
parent7c1b847a49aea3e00b86843cb77a1585e7955201 (diff)
mips64: fix memcpy, patch from glibc
Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
Diffstat (limited to 'libc/string/mips/memcpy.S')
-rw-r--r--libc/string/mips/memcpy.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/string/mips/memcpy.S b/libc/string/mips/memcpy.S
index 2a187ef74..3afdb2c51 100644
--- a/libc/string/mips/memcpy.S
+++ b/libc/string/mips/memcpy.S
@@ -565,11 +565,11 @@ L(lastw):
#ifdef USE_DOUBLE
andi t8,a2,3 /* a2 is the remainder past 4 byte chunks. */
beq t8,a2,L(lastb)
+ move a2,t8
lw REG3,0(a1)
sw REG3,0(a0)
PTR_ADDIU a0,a0,4
PTR_ADDIU a1,a1,4
- move a2,t8
#endif
/* Copy the last 8 (or 16) bytes */