diff options
author | Liubov Dmitrieva <ldmitrie@sourceware.org> | 2013-08-21 18:24:44 +0400 |
---|---|---|
committer | Liubov Dmitrieva <ldmitrie@sourceware.org> | 2013-08-21 18:25:08 +0400 |
commit | 46ed103824ff42668ddfc36c1b3fdb9219d48eee (patch) | |
tree | 40be39377bcdb50fe223f3ffe492525b7aa7110b /sysdeps/i386/i686/multiarch/strcmp.S | |
parent | d400dcac5e66047f86291d1a4b90fffb6327dc43 (diff) | |
download | glibc-46ed103824ff42668ddfc36c1b3fdb9219d48eee.tar.gz glibc-46ed103824ff42668ddfc36c1b3fdb9219d48eee.tar.xz glibc-46ed103824ff42668ddfc36c1b3fdb9219d48eee.zip |
i686: Skip SSE4_2 version for strcmp, strncmp, strncase, strcasecmp
if bit_Slow_SSE4_2 is set.
Diffstat (limited to 'sysdeps/i386/i686/multiarch/strcmp.S')
-rw-r--r-- | sysdeps/i386/i686/multiarch/strcmp.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/i386/i686/multiarch/strcmp.S b/sysdeps/i386/i686/multiarch/strcmp.S index 7dc2cefabe..41dd3b3f1c 100644 --- a/sysdeps/i386/i686/multiarch/strcmp.S +++ b/sysdeps/i386/i686/multiarch/strcmp.S @@ -68,6 +68,8 @@ ENTRY(STRCMP) leal __STRCMP_SSSE3@GOTOFF(%ebx), %eax testl $bit_SSE4_2, CPUID_OFFSET+index_SSE4_2+__cpu_features@GOTOFF(%ebx) jz 2f + testl $bit_Slow_SSE4_2, CPUID_OFFSET+index_Slow_SSE4_2+__cpu_features@GOTOFF(%ebx) + jnz 2f leal __STRCMP_SSE4_2@GOTOFF(%ebx), %eax 2: popl %ebx cfi_adjust_cfa_offset (-4) @@ -87,6 +89,8 @@ ENTRY(STRCMP) leal __STRCMP_SSSE3, %eax testl $bit_SSE4_2, CPUID_OFFSET+index_SSE4_2+__cpu_features jz 2f + testl $bit_Slow_SSE4_2, CPUID_OFFSET+index_Slow_SSE4_2+__cpu_features + jnz 2f leal __STRCMP_SSE4_2, %eax 2: ret END(STRCMP) |