Fix limit detection in x86-64 SSE2 strncasecmp.

This commit is contained in:
Ulrich Drepper 2010-09-20 14:02:23 -07:00
parent e24f0a8b9e
commit 8ffcee4a04
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-09-20 Ulrich Drepper <drepper@redhat.com>
* sysdeps/x86_64/strcmp.S: Fix another type in strncasecmp limit
detection.
2010-09-20 Andreas Schwab <schwab@redhat.com> 2010-09-20 Andreas Schwab <schwab@redhat.com>
* sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add

View File

@ -125,12 +125,14 @@ ENTRY(__strncasecmp)
jne 1f jne 1f
call __init_cpu_features call __init_cpu_features
1: 1:
#if 0
leaq __strncasecmp_sse42(%rip), %rax leaq __strncasecmp_sse42(%rip), %rax
testl $bit_SSE4_2, __cpu_features+CPUID_OFFSET+index_SSE4_2(%rip) testl $bit_SSE4_2, __cpu_features+CPUID_OFFSET+index_SSE4_2(%rip)
jnz 2f jnz 2f
leaq __strncasecmp_ssse3(%rip), %rax leaq __strncasecmp_ssse3(%rip), %rax
testl $bit_SSSE3, __cpu_features+CPUID_OFFSET+index_SSSE3(%rip) testl $bit_SSSE3, __cpu_features+CPUID_OFFSET+index_SSSE3(%rip)
jnz 2f jnz 2f
#endif
leaq __strncasecmp_sse2(%rip), %rax leaq __strncasecmp_sse2(%rip), %rax
2: ret 2: ret
END(__strncasecmp) END(__strncasecmp)

View File

@ -913,7 +913,7 @@ LABEL(gobble_ashr_5):
sub $0xffff, %edx sub $0xffff, %edx
jnz LABEL(exit) jnz LABEL(exit)
# if defined USE_AS_STRNCMP || defined USE_AS_STRCASECMP_L # if defined USE_AS_STRNCMP || defined USE_AS_STRNCASECMP_L
sub $16, %r11 sub $16, %r11
jbe LABEL(strcmp_exitz) jbe LABEL(strcmp_exitz)
# endif # endif