Module Name: src
Committed By: martin
Date: Sat Jul 20 14:49:32 UTC 2024
Modified Files:
src/common/lib/libc/arch/aarch64/string [netbsd-10]: bcopy.S
Log Message:
Pull up following revision(s) (requested by rin in ticket #744):
common/lib/libc/arch/aarch64/string/bcopy.S: revision 1.3
port-arm/57388: Minor bug fix in bcopy.S
Use correct register to check alignment of destination in backwards copy.
Patch from Antoni Pokusinski. Thanks.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.2.8.1 src/common/lib/libc/arch/aarch64/string/bcopy.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/common/lib/libc/arch/aarch64/string/bcopy.S
diff -u src/common/lib/libc/arch/aarch64/string/bcopy.S:1.2 src/common/lib/libc/arch/aarch64/string/bcopy.S:1.2.8.1
--- src/common/lib/libc/arch/aarch64/string/bcopy.S:1.2 Sat Apr 11 05:12:52 2020
+++ src/common/lib/libc/arch/aarch64/string/bcopy.S Sat Jul 20 14:49:32 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: bcopy.S,v 1.2 2020/04/11 05:12:52 ryo Exp $ */
+/* $NetBSD: bcopy.S,v 1.2.8.1 2024/07/20 14:49:32 martin Exp $ */
/*
* Copyright (c) 2018 Ryo Shimizu <[email protected]>
@@ -29,7 +29,7 @@
#include <machine/asm.h>
#if defined(LIBC_SCCS)
-RCSID("$NetBSD: bcopy.S,v 1.2 2020/04/11 05:12:52 ryo Exp $")
+RCSID("$NetBSD: bcopy.S,v 1.2.8.1 2024/07/20 14:49:32 martin Exp $")
#endif
#if defined(MEMCOPY)
@@ -306,7 +306,7 @@ backward_tiny:
ret
9:
/* length is small(<32), and src or dst may be unaligned */
- eor TMP_X, SRC0, DST0
+ eor TMP_X, SRC0, DST
ands TMP_X, TMP_X, #7
bne notaligned_backward_small