mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
Load cache sizes into R*_LP in memcpy-ssse3-back.S
This commit is contained in:
parent
3cb845617b
commit
6d2850e7f5
@ -1,3 +1,8 @@
|
|||||||
|
2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
|
||||||
|
sizes into R*_LP.
|
||||||
|
|
||||||
2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
|
2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
|
* sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
|
||||||
|
@ -106,9 +106,9 @@ L(144bytesormore):
|
|||||||
and $0xf, %r9
|
and $0xf, %r9
|
||||||
jz L(shl_0)
|
jz L(shl_0)
|
||||||
#ifdef DATA_CACHE_SIZE
|
#ifdef DATA_CACHE_SIZE
|
||||||
mov $DATA_CACHE_SIZE, %rcx
|
mov $DATA_CACHE_SIZE, %RCX_LP
|
||||||
#else
|
#else
|
||||||
mov __x86_64_data_cache_size(%rip), %rcx
|
mov __x86_64_data_cache_size(%rip), %RCX_LP
|
||||||
#endif
|
#endif
|
||||||
cmp %rcx, %rdx
|
cmp %rcx, %rdx
|
||||||
jae L(gobble_mem_fwd)
|
jae L(gobble_mem_fwd)
|
||||||
@ -122,9 +122,9 @@ L(144bytesormore):
|
|||||||
ALIGN (4)
|
ALIGN (4)
|
||||||
L(copy_backward):
|
L(copy_backward):
|
||||||
#ifdef DATA_CACHE_SIZE
|
#ifdef DATA_CACHE_SIZE
|
||||||
mov $DATA_CACHE_SIZE, %rcx
|
mov $DATA_CACHE_SIZE, %RCX_LP
|
||||||
#else
|
#else
|
||||||
mov __x86_64_data_cache_size(%rip), %rcx
|
mov __x86_64_data_cache_size(%rip), %RCX_LP
|
||||||
#endif
|
#endif
|
||||||
shl $1, %rcx
|
shl $1, %rcx
|
||||||
cmp %rcx, %rdx
|
cmp %rcx, %rdx
|
||||||
@ -156,9 +156,9 @@ L(shl_0):
|
|||||||
shr $8, %r9
|
shr $8, %r9
|
||||||
add %rdx, %r9
|
add %rdx, %r9
|
||||||
#ifdef DATA_CACHE_SIZE
|
#ifdef DATA_CACHE_SIZE
|
||||||
cmp $DATA_CACHE_SIZE_HALF, %r9
|
cmp $DATA_CACHE_SIZE_HALF, %R9_LP
|
||||||
#else
|
#else
|
||||||
cmp __x86_64_data_cache_size_half(%rip), %r9
|
cmp __x86_64_data_cache_size_half(%rip), %R9_LP
|
||||||
#endif
|
#endif
|
||||||
jae L(gobble_mem_fwd)
|
jae L(gobble_mem_fwd)
|
||||||
sub $0x80, %rdx
|
sub $0x80, %rdx
|
||||||
@ -1478,9 +1478,9 @@ L(gobble_mem_fwd):
|
|||||||
add $16, %rdi
|
add $16, %rdi
|
||||||
|
|
||||||
#ifdef SHARED_CACHE_SIZE_HALF
|
#ifdef SHARED_CACHE_SIZE_HALF
|
||||||
mov $SHARED_CACHE_SIZE_HALF, %rcx
|
mov $SHARED_CACHE_SIZE_HALF, %RCX_LP
|
||||||
#else
|
#else
|
||||||
mov __x86_64_shared_cache_size_half(%rip), %rcx
|
mov __x86_64_shared_cache_size_half(%rip), %RCX_LP
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_AS_MEMMOVE
|
#ifdef USE_AS_MEMMOVE
|
||||||
mov %rsi, %r9
|
mov %rsi, %r9
|
||||||
@ -1585,9 +1585,9 @@ L(gobble_mem_bwd):
|
|||||||
|
|
||||||
|
|
||||||
#ifdef SHARED_CACHE_SIZE_HALF
|
#ifdef SHARED_CACHE_SIZE_HALF
|
||||||
mov $SHARED_CACHE_SIZE_HALF, %rcx
|
mov $SHARED_CACHE_SIZE_HALF, %RCX_LP
|
||||||
#else
|
#else
|
||||||
mov __x86_64_shared_cache_size_half(%rip), %rcx
|
mov __x86_64_shared_cache_size_half(%rip), %RCX_LP
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_AS_MEMMOVE
|
#ifdef USE_AS_MEMMOVE
|
||||||
mov %rdi, %r9
|
mov %rdi, %r9
|
||||||
|
Loading…
Reference in New Issue
Block a user