aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86_64/multiarch/strcpy.S
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-07-23 13:15:17 -0700
committerUlrich Drepper <drepper@redhat.com>2009-07-23 13:15:17 -0700
commitd28797e426aa7e4e380a7ae10faf4aa3c4767e0b (patch)
treef3219b54a090a6252edd85cd30af80ba81ae556a /sysdeps/x86_64/multiarch/strcpy.S
parent666a9871f7afc40aebcc28eab8890ab99ee01a47 (diff)
downloadglibc-d28797e426aa7e4e380a7ae10faf4aa3c4767e0b.tar
glibc-d28797e426aa7e4e380a7ae10faf4aa3c4767e0b.tar.gz
glibc-d28797e426aa7e4e380a7ae10faf4aa3c4767e0b.tar.bz2
glibc-d28797e426aa7e4e380a7ae10faf4aa3c4767e0b.zip
Perform test for Arom x86-64 in central place and handle it.
There will be more than one function which, in multiarch mode, wants to use SSSE3. We should not test in each of them for Atoms with slow SSSE3. Instead, disable the SSSE3 bit in the startup code for such machines.
Diffstat (limited to 'sysdeps/x86_64/multiarch/strcpy.S')
-rw-r--r--sysdeps/x86_64/multiarch/strcpy.S13
1 files changed, 3 insertions, 10 deletions
diff --git a/sysdeps/x86_64/multiarch/strcpy.S b/sysdeps/x86_64/multiarch/strcpy.S
index 25cd01307d..7e400a9140 100644
--- a/sysdeps/x86_64/multiarch/strcpy.S
+++ b/sysdeps/x86_64/multiarch/strcpy.S
@@ -64,16 +64,9 @@ ENTRY(STRCPY)
call __init_cpu_features
1: leaq STRCPY_SSE2(%rip), %rax
testl $(1<<9), __cpu_features+CPUID_OFFSET+COMMON_CPUID_INDEX_1*CPUID_SIZE+CPUID_ECX_OFFSET(%rip)
- jz 3f
-/* Avoid SSSE3 strcpy on Atom since it is slow. */
- cmpl $1, __cpu_features+KIND_OFFSET(%rip)
- jne 2f
- cmpl $6, __cpu_features+FAMILY_OFFSET(%rip)
- jne 2f
- cmpl $28, __cpu_features+MODEL_OFFSET(%rip)
- jz 3f
-2: leaq STRCPY_SSSE3(%rip), %rax
-3: ret
+ jz 2f
+ leaq STRCPY_SSSE3(%rip), %rax
+2: ret
END(STRCPY)
.section .text.ssse3,"ax",@progbits