From 6308fd9a46a2f4aa550886e6f58190fb209ef027 Mon Sep 17 00:00:00 2001 From: Liubov Dmitrieva Date: Fri, 28 Jun 2013 15:28:50 -0700 Subject: Skip SSE4.2 versions on Intel Silvermont SSE2/SSSE3 versions are faster than SSE4.2 versions on Intel Silvermont. --- sysdeps/x86_64/multiarch/strchr.S | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sysdeps/x86_64/multiarch/strchr.S') diff --git a/sysdeps/x86_64/multiarch/strchr.S b/sysdeps/x86_64/multiarch/strchr.S index 6860329449..f170238b55 100644 --- a/sysdeps/x86_64/multiarch/strchr.S +++ b/sysdeps/x86_64/multiarch/strchr.S @@ -29,6 +29,8 @@ ENTRY(strchr) jne 1f call __init_cpu_features 1: leaq __strchr_sse2(%rip), %rax + testl $bit_Slow_SSE4_2, __cpu_features+CPUID_OFFSET+index_Slow_SSE4_2(%rip) + jnz 2f testl $bit_SSE4_2, __cpu_features+CPUID_OFFSET+index_SSE4_2(%rip) jz 2f leaq __strchr_sse42(%rip), %rax -- cgit 1.4.1