|
|
190885 |
From c640bf1ea99d9598f8e3afc922567d8b3623d23e Mon Sep 17 00:00:00 2001
|
|
|
190885 |
From: "H.J. Lu" <hjl.tools@gmail.com>
|
|
|
190885 |
Date: Wed, 2 Mar 2022 14:57:54 -0800
|
|
|
190885 |
Subject: [PATCH] x86-64: Use RDX_LP on __x86_shared_non_temporal_threshold [BZ
|
|
|
190885 |
#25966]
|
|
|
190885 |
|
|
|
190885 |
Since __x86_shared_non_temporal_threshold is defined as
|
|
|
190885 |
|
|
|
190885 |
long int __x86_shared_non_temporal_threshold;
|
|
|
190885 |
|
|
|
190885 |
and long int is 4 bytes for x32, use RDX_LP to compare against
|
|
|
190885 |
__x86_shared_non_temporal_threshold in assembly code.
|
|
|
190885 |
|
|
|
190885 |
(cherry picked from commit 55c7bcc71b84123d5d4bd2814366a6b05fcf8ebd)
|
|
|
190885 |
---
|
|
|
190885 |
sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S | 6 +++---
|
|
|
190885 |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
190885 |
|
|
|
190885 |
diff --git a/sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S b/sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
|
|
|
190885 |
index 71f5954d..673b73aa 100644
|
|
|
190885 |
--- a/sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
|
|
|
190885 |
+++ b/sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
|
|
|
190885 |
@@ -245,7 +245,7 @@ L(return):
|
|
|
190885 |
#endif
|
|
|
190885 |
|
|
|
190885 |
L(movsb):
|
|
|
190885 |
- cmpq __x86_shared_non_temporal_threshold(%rip), %rdx
|
|
|
190885 |
+ cmp __x86_shared_non_temporal_threshold(%rip), %RDX_LP
|
|
|
190885 |
jae L(more_8x_vec)
|
|
|
190885 |
cmpq %rsi, %rdi
|
|
|
190885 |
jb 1f
|
|
|
190885 |
@@ -397,7 +397,7 @@ L(more_8x_vec):
|
|
|
190885 |
addq %r8, %rdx
|
|
|
190885 |
#if (defined USE_MULTIARCH || VEC_SIZE == 16) && IS_IN (libc)
|
|
|
190885 |
/* Check non-temporal store threshold. */
|
|
|
190885 |
- cmpq __x86_shared_non_temporal_threshold(%rip), %rdx
|
|
|
190885 |
+ cmp __x86_shared_non_temporal_threshold(%rip), %RDX_LP
|
|
|
190885 |
ja L(large_forward)
|
|
|
190885 |
#endif
|
|
|
190885 |
L(loop_4x_vec_forward):
|
|
|
190885 |
@@ -448,7 +448,7 @@ L(more_8x_vec_backward):
|
|
|
190885 |
subq %r8, %rdx
|
|
|
190885 |
#if (defined USE_MULTIARCH || VEC_SIZE == 16) && IS_IN (libc)
|
|
|
190885 |
/* Check non-temporal store threshold. */
|
|
|
190885 |
- cmpq __x86_shared_non_temporal_threshold(%rip), %rdx
|
|
|
190885 |
+ cmp __x86_shared_non_temporal_threshold(%rip), %RDX_LP
|
|
|
190885 |
ja L(large_backward)
|
|
|
190885 |
#endif
|
|
|
190885 |
L(loop_4x_vec_backward):
|
|
|
190885 |
--
|
|
|
190885 |
GitLab
|
|
|
190885 |
|