]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86/string: Use `movsl` instead of `movsd` in strncat [BZ #32344]
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 21 Nov 2024 22:05:11 +0000 (17:05 -0500)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 21 Nov 2024 22:11:01 +0000 (17:11 -0500)
The previous patch missed strncat, so fixed that.

Resolves: BZ #32344

Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
sysdeps/x86_64/multiarch/strncat-evex.S

index e6717bdea83b7a89847b29afd37780c8205a5627..fbec351796114bec698df24b7bb2ac37f6e38117 100644 (file)
@@ -44,7 +44,7 @@
 #  define VPCMPEQ      vpcmpeqd
 #  define CHAR_SIZE    4
 
-#  define REP_MOVS     rep movsd
+#  define REP_MOVS     rep movsl
 
 #  define VMASK_REG    VR10
 #  define FIND_FIRST_ONE(src, dst)     movl $CHAR_PER_VEC, %dst; bsf %src, %dst
@@ -514,7 +514,7 @@ L(page_cross_small):
        cmova   %edx, %ecx
 
 # ifdef USE_AS_WCSCPY
-       rep     movsd
+       rep     movsl
 # else
        rep     movsb
 # endif