[PATCH 1/3] aarch64: Fix thunderx memcpy

Andrew Pinski quic_apinski@quicinc.com
Fri Nov 15 03:03:18 GMT 2024


While changing memcpy for oryon1, I came across a missing branch,
I looked into the history and noticed the branch was also missing
in the thunderx version of memcpy.
I don't have a testcase that shows the issue with the missing branch
though.
The code is repeated under copy_long_without_prefetch with the branch
there which is how I noticed it missing.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
---
 sysdeps/aarch64/multiarch/memcpy_thunderx.S | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sysdeps/aarch64/multiarch/memcpy_thunderx.S b/sysdeps/aarch64/multiarch/memcpy_thunderx.S
index 5d8438a82e..0f87db9626 100644
--- a/sysdeps/aarch64/multiarch/memcpy_thunderx.S
+++ b/sysdeps/aarch64/multiarch/memcpy_thunderx.S
@@ -185,6 +185,7 @@ L(copy_long):
 	ldp	C_l, C_h, [src, 48]
 	ldp	D_l, D_h, [src, 64]!
 	subs	count, count, 128 + 16	/* Test and readjust count.  */
+	b.ls	L(last64)
 
 L(prefetch_loop64):
 	tbz	src, #6, 1f
-- 
2.43.0



More information about the Libc-alpha mailing list