about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStan Shebs <stanshebs@google.com>2018-02-07 12:54:57 -0800
committerStan Shebs <stanshebs@google.com>2019-04-24 08:02:45 -0700
commitf38fa7c980f64d88d1b16be54effaa994c9a3f03 (patch)
tree56b5abda4677e64035bba9c306b15f378f30e754
parent64b3e177bc10f18818f1bc790296a9c0a30aacc8 (diff)
downloadglibc-f38fa7c980f64d88d1b16be54effaa994c9a3f03.tar.gz
glibc-f38fa7c980f64d88d1b16be54effaa994c9a3f03.tar.xz
glibc-f38fa7c980f64d88d1b16be54effaa994c9a3f03.zip
Work around clang assembler error with movzx
-rw-r--r--sysdeps/x86_64/strcmp.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/x86_64/strcmp.S b/sysdeps/x86_64/strcmp.S
index f95463155a..933cd53cfb 100644
--- a/sysdeps/x86_64/strcmp.S
+++ b/sysdeps/x86_64/strcmp.S
@@ -2232,8 +2232,9 @@ LABEL(strcmp_exitz):
 
 	.p2align 4
 LABEL(Byte0):
-	movzx	(%rsi), %ecx
-	movzx	(%rdi), %eax
+	# Clang assembler objects to movzx here.
+	movzbl	(%rsi), %ecx
+	movzbl	(%rdi), %eax
 
 #if defined USE_AS_STRCASECMP_L || defined USE_AS_STRNCASECMP_L
 	leaq	_nl_C_LC_CTYPE_tolower+128*4(%rip), %rdx