aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2010-08-15 17:42:12 -0700
committerUlrich Drepper <drepper@redhat.com>2010-08-15 17:42:12 -0700
commit28c90b2cf51d77c318831c79a62ff0bb3fd17042 (patch)
tree660ff0c24bfe774f89969bf1d0158c1b74705376 /sysdeps
parent25244f174f4127800070d4bf2a4a08f28bfdd8b7 (diff)
downloadglibc-28c90b2cf51d77c318831c79a62ff0bb3fd17042.tar
glibc-28c90b2cf51d77c318831c79a62ff0bb3fd17042.tar.gz
glibc-28c90b2cf51d77c318831c79a62ff0bb3fd17042.tar.bz2
glibc-28c90b2cf51d77c318831c79a62ff0bb3fd17042.zip
Use correct register for fourth parameter of x86-64 strncasecmp_l.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/x86_64/strcmp.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/x86_64/strcmp.S b/sysdeps/x86_64/strcmp.S
index 685fec183c..aeb8895bed 100644
--- a/sysdeps/x86_64/strcmp.S
+++ b/sysdeps/x86_64/strcmp.S
@@ -116,7 +116,7 @@ libc_hidden_def (__strcasecmp)
ENTRY2 (__strncasecmp)
movq __libc_tsd_LOCALE@gottpoff(%rip),%rax
- movq %fs:(%rax),%r10
+ movq %fs:(%rax),%rcx
// XXX 5 byte should be before the function
/* 5-byte NOP. */
@@ -163,9 +163,9 @@ END (BP_SYM (STRCMP))
/* We have to fall back on the C implementation for locales
with encodings not matching ASCII for single bytes. */
# if LOCALE_T___LOCALES != 0 || LC_CTYPE != 0
- movq LOCALE_T___LOCALES+LC_CTYPE*8(%r10), %rax
+ movq LOCALE_T___LOCALES+LC_CTYPE*8(%rcx), %rax
# else
- movq (%r10), %rax
+ movq (%rcx), %rax
# endif
testl $0, LOCALE_DATA_VALUES+_NL_CTYPE_NONASCII_CASE*SIZEOF_VALUES(%rax)
jne __strncasecmp_l_nonascii