]> sourceware.org Git - glibc.git/commitdiff
x86/string: Use `movsl` instead of `movsd` in strncpy/strncat [BZ #32344]
authorNoah Goldstein <goldstein.w.n@gmail.com>
Tue, 12 Nov 2024 23:04:42 +0000 (17:04 -0600)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Wed, 13 Nov 2024 16:09:30 +0000 (10:09 -0600)
`ld`, starting at 2.40, emits a warning when using `movsd`. There is
no change to the actual code produced.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
sysdeps/x86_64/multiarch/strncpy-evex.S

index d4053bb5f0b2ec5036c44a795dd775527644a176..9b2629a5a45dc1afa7bacdcc5fc222b1fe07d918 100644 (file)
@@ -43,7 +43,7 @@
 #  define VPTEST       vptestmd
 #  define CHAR_SIZE    4
 
-#  define REP_MOVS     rep movsd
+#  define REP_MOVS     rep movsl
 #  define REP_STOS     rep stosl
 
 #  define USE_WIDE_CHAR
This page took 0.043369 seconds and 5 git commands to generate.