diff options
Diffstat (limited to 'sysdeps/x86_64/multiarch/wmemcmp.S')
-rw-r--r-- | sysdeps/x86_64/multiarch/wmemcmp.S | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sysdeps/x86_64/multiarch/wmemcmp.S b/sysdeps/x86_64/multiarch/wmemcmp.S index 109e2457fe..dabd3edc75 100644 --- a/sysdeps/x86_64/multiarch/wmemcmp.S +++ b/sysdeps/x86_64/multiarch/wmemcmp.S @@ -30,18 +30,16 @@ ENTRY(wmemcmp) jne 1f call __init_cpu_features -1: testl $bit_SSSE3, __cpu_features+CPUID_OFFSET+index_SSSE3(%rip) + testl $bit_Fast_Unaligned_Load, __cpu_features+FEATURE_OFFSET+index_Fast_Unaligned_Load(%rip) jnz 2f - leaq __wmemcmp_sse2(%rip), %rax - ret - -2: testl $bit_SSE4_1, __cpu_features+CPUID_OFFSET+index_SSE4_1(%rip) - jz 3f - leaq __wmemcmp_sse4_1(%rip), %rax +1: testl $bit_SSSE3, __cpu_features+CPUID_OFFSET+index_SSSE3(%rip) + jnz 3f +2: leaq __wmemcmp_sse2_unaligned(%rip), %rax ret 3: leaq __wmemcmp_ssse3(%rip), %rax ret + END(wmemcmp) #endif |