|
|
08c3a6 |
commit 2e64237a8744dd50f9222293275fa52e7248ff76
|
|
|
08c3a6 |
Author: Fangrui Song <maskray@google.com>
|
|
|
08c3a6 |
Date: Tue Nov 2 20:59:52 2021 -0700
|
|
|
08c3a6 |
|
|
|
08c3a6 |
x86-64: Replace movzx with movzbl
|
|
|
08c3a6 |
|
|
|
08c3a6 |
Clang cannot assemble movzx in the AT&T dialect mode.
|
|
|
08c3a6 |
|
|
|
08c3a6 |
../sysdeps/x86_64/strcmp.S:2232:16: error: invalid operand for instruction
|
|
|
08c3a6 |
movzx (%rsi), %ecx
|
|
|
08c3a6 |
^~~~
|
|
|
08c3a6 |
|
|
|
08c3a6 |
Change movzx to movzbl, which follows the AT&T dialect and is used
|
|
|
08c3a6 |
elsewhere in the file.
|
|
|
08c3a6 |
|
|
|
08c3a6 |
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
|
|
|
08c3a6 |
(cherry picked from commit 6720d36b6623c5e48c070d86acf61198b33e144e)
|
|
|
08c3a6 |
|
|
|
08c3a6 |
diff --git a/sysdeps/x86_64/multiarch/strcmp-sse42.S b/sysdeps/x86_64/multiarch/strcmp-sse42.S
|
|
|
08c3a6 |
index bc19547b09639071..6197a723b9e0606e 100644
|
|
|
08c3a6 |
--- a/sysdeps/x86_64/multiarch/strcmp-sse42.S
|
|
|
08c3a6 |
+++ b/sysdeps/x86_64/multiarch/strcmp-sse42.S
|
|
|
08c3a6 |
@@ -1771,8 +1771,8 @@ LABEL(strcmp_exitz):
|
|
|
08c3a6 |
.p2align 4
|
|
|
08c3a6 |
// XXX Same as code above
|
|
|
08c3a6 |
LABEL(Byte0):
|
|
|
08c3a6 |
- movzx (%rsi), %ecx
|
|
|
08c3a6 |
- movzx (%rdi), %eax
|
|
|
08c3a6 |
+ movzbl (%rsi), %ecx
|
|
|
08c3a6 |
+ movzbl (%rdi), %eax
|
|
|
08c3a6 |
|
|
|
08c3a6 |
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
|
|
|
08c3a6 |
leaq _nl_C_LC_CTYPE_tolower+128*4(%rip), %rdx
|
|
|
08c3a6 |
diff --git a/sysdeps/x86_64/strcmp.S b/sysdeps/x86_64/strcmp.S
|
|
|
08c3a6 |
index 824e648230a15739..7f8a1bc756f86aee 100644
|
|
|
08c3a6 |
--- a/sysdeps/x86_64/strcmp.S
|
|
|
08c3a6 |
+++ b/sysdeps/x86_64/strcmp.S
|
|
|
08c3a6 |
@@ -2232,8 +2232,8 @@ LABEL(strcmp_exitz):
|
|
|
08c3a6 |
|
|
|
08c3a6 |
.p2align 4
|
|
|
08c3a6 |
LABEL(Byte0):
|
|
|
08c3a6 |
- movzx (%rsi), %ecx
|
|
|
08c3a6 |
- movzx (%rdi), %eax
|
|
|
08c3a6 |
+ movzbl (%rsi), %ecx
|
|
|
08c3a6 |
+ movzbl (%rdi), %eax
|
|
|
08c3a6 |
|
|
|
08c3a6 |
#if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
|
|
|
08c3a6 |
leaq _nl_C_LC_CTYPE_tolower+128*4(%rip), %rdx
|