]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Work around clang assembler error with movzx
authorStan Shebs <stanshebs@google.com>
Wed, 7 Feb 2018 20:54:57 +0000 (12:54 -0800)
committerStan Shebs <stanshebs@google.com>
Wed, 7 Feb 2018 20:54:57 +0000 (12:54 -0800)
sysdeps/x86_64/strcmp.S

index de54fce647119e32ec3798e59e45ac5a24ce36f3..f8a5f854d23158a47c96b0804e24314e303e2911 100644 (file)
@@ -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