Mailing List Archive

[PATCH 3/5] mpi/amd64: fix use of 'movd' for 64-bit register move in lshift&rshift
* mpi/amd64/mpih-lshift.S: Use 'movq' instead of 'movd' for moving
value to %rax.
* mpi/amd64/mpih-rshift.S: Likewise.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
---
mpi/amd64/mpih-lshift.S | 2 +-
mpi/amd64/mpih-rshift.S | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mpi/amd64/mpih-lshift.S b/mpi/amd64/mpih-lshift.S
index c11e808c..3fa6e4fd 100644
--- a/mpi/amd64/mpih-lshift.S
+++ b/mpi/amd64/mpih-lshift.S
@@ -52,7 +52,7 @@ C_SYMBOL_NAME(_gcry_mpih_lshift:)
movd %eax, %xmm0
movdqa %xmm4, %xmm3
psrlq %xmm0, %xmm4
- movd %xmm4, %rax
+ movq %xmm4, %rax
subq $2, %rdx
jl .Lendo

diff --git a/mpi/amd64/mpih-rshift.S b/mpi/amd64/mpih-rshift.S
index 430ba4b0..4bc5db22 100644
--- a/mpi/amd64/mpih-rshift.S
+++ b/mpi/amd64/mpih-rshift.S
@@ -52,7 +52,7 @@ C_SYMBOL_NAME(_gcry_mpih_rshift:)
movd %eax, %xmm0
movdqa %xmm4, %xmm3
psllq %xmm0, %xmm4
- movd %xmm4, %rax
+ movq %xmm4, %rax
leaq (%rsi,%rdx,8), %rsi
leaq (%rdi,%rdx,8), %rdi
negq %rdx
--
2.39.2


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gcrypt-devel