mirror of git://sourceware.org/git/glibc.git
x86-64: Use RDX_LP on __x86_shared_non_temporal_threshold [BZ #25966]
Since __x86_shared_non_temporal_threshold is defined as long int __x86_shared_non_temporal_threshold; and long int is 4 bytes for x32, use RDX_LP to compare against __x86_shared_non_temporal_threshold in assembly code.
This commit is contained in:
parent
e1b871e25f
commit
55c7bcc71b
|
@ -244,7 +244,7 @@ L(return):
|
||||||
ret
|
ret
|
||||||
|
|
||||||
L(movsb):
|
L(movsb):
|
||||||
cmpq __x86_shared_non_temporal_threshold(%rip), %rdx
|
cmp __x86_shared_non_temporal_threshold(%rip), %RDX_LP
|
||||||
jae L(more_8x_vec)
|
jae L(more_8x_vec)
|
||||||
cmpq %rsi, %rdi
|
cmpq %rsi, %rdi
|
||||||
jb 1f
|
jb 1f
|
||||||
|
@ -402,7 +402,7 @@ L(more_8x_vec):
|
||||||
addq %r8, %rdx
|
addq %r8, %rdx
|
||||||
#if (defined USE_MULTIARCH || VEC_SIZE == 16) && IS_IN (libc)
|
#if (defined USE_MULTIARCH || VEC_SIZE == 16) && IS_IN (libc)
|
||||||
/* Check non-temporal store threshold. */
|
/* Check non-temporal store threshold. */
|
||||||
cmpq __x86_shared_non_temporal_threshold(%rip), %rdx
|
cmp __x86_shared_non_temporal_threshold(%rip), %RDX_LP
|
||||||
ja L(large_forward)
|
ja L(large_forward)
|
||||||
#endif
|
#endif
|
||||||
L(loop_4x_vec_forward):
|
L(loop_4x_vec_forward):
|
||||||
|
@ -454,7 +454,7 @@ L(more_8x_vec_backward):
|
||||||
subq %r8, %rdx
|
subq %r8, %rdx
|
||||||
#if (defined USE_MULTIARCH || VEC_SIZE == 16) && IS_IN (libc)
|
#if (defined USE_MULTIARCH || VEC_SIZE == 16) && IS_IN (libc)
|
||||||
/* Check non-temporal store threshold. */
|
/* Check non-temporal store threshold. */
|
||||||
cmpq __x86_shared_non_temporal_threshold(%rip), %rdx
|
cmp __x86_shared_non_temporal_threshold(%rip), %RDX_LP
|
||||||
ja L(large_backward)
|
ja L(large_backward)
|
||||||
#endif
|
#endif
|
||||||
L(loop_4x_vec_backward):
|
L(loop_4x_vec_backward):
|
||||||
|
|
Loading…
Reference in New Issue