From 713d6d7e781ced6d194d6c147f2db4ce9961bb0c Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Thu, 21 Nov 2024 17:05:11 -0500 Subject: [PATCH] x86/string: Use `movsl` instead of `movsd` in strncat [BZ #32344] The previous patch missed strncat, so fixed that. Resolves: BZ #32344 Signed-off-by: Siddhesh Poyarekar --- sysdeps/x86_64/multiarch/strncat-evex.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/x86_64/multiarch/strncat-evex.S b/sysdeps/x86_64/multiarch/strncat-evex.S index e6717bdea8..fbec351796 100644 --- a/sysdeps/x86_64/multiarch/strncat-evex.S +++ b/sysdeps/x86_64/multiarch/strncat-evex.S @@ -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