From 1c675a294230d0b8ed95193ef2475fee83455f09 Mon Sep 17 00:00:00 2001 From: Torbjorn Granlund Date: Wed, 2 Nov 2022 13:48:37 +0100 Subject: Prefer movd to movq for register moves. --- mpn/x86_64/bd1/hamdist.asm | 2 +- mpn/x86_64/bd1/popcount.asm | 2 +- mpn/x86_64/core2/hamdist.asm | 2 +- mpn/x86_64/core2/popcount.asm | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mpn/x86_64/bd1/hamdist.asm b/mpn/x86_64/bd1/hamdist.asm index 29e78a324..799cddad6 100644 --- a/mpn/x86_64/bd1/hamdist.asm +++ b/mpn/x86_64/bd1/hamdist.asm @@ -170,7 +170,7 @@ L(x): .byte 0x8f,0xe9,0x78,0xd3,0xc4 C vphaddubq %xmm4, %xmm0 paddq %xmm0, %xmm8 pshufd $14, %xmm8, %xmm0 paddq %xmm8, %xmm0 - movq %xmm0, %rax + movd %xmm0, %rax add %r10, %rax FUNC_EXIT() ret diff --git a/mpn/x86_64/bd1/popcount.asm b/mpn/x86_64/bd1/popcount.asm index 28ce4616c..7b084f4c9 100644 --- a/mpn/x86_64/bd1/popcount.asm +++ b/mpn/x86_64/bd1/popcount.asm @@ -167,7 +167,7 @@ L(e2): popcnt 48(up), %r8 paddq %xmm5, %xmm8 pshufd $14, %xmm8, %xmm0 paddq %xmm8, %xmm0 - movq %xmm0, %rax + movd %xmm0, %rax add %rdx, %rax FUNC_EXIT() ret diff --git a/mpn/x86_64/core2/hamdist.asm b/mpn/x86_64/core2/hamdist.asm index a78753dcf..ded7b67e8 100644 --- a/mpn/x86_64/core2/hamdist.asm +++ b/mpn/x86_64/core2/hamdist.asm @@ -191,7 +191,7 @@ L(e1): movdqa %xmm6, %xmm0 paddq %xmm4, %xmm8 pshufd $14, %xmm8, %xmm0 paddq %xmm8, %xmm0 - movq %xmm0, %rax + movd %xmm0, %rax ret EPILOGUE() DEF_OBJECT(L(cnsts),16,`JUMPTABSECT') diff --git a/mpn/x86_64/core2/popcount.asm b/mpn/x86_64/core2/popcount.asm index 39d8c5ded..3de69d893 100644 --- a/mpn/x86_64/core2/popcount.asm +++ b/mpn/x86_64/core2/popcount.asm @@ -166,7 +166,7 @@ L(e1): movdqa %xmm6, %xmm0 paddq %xmm4, %xmm8 pshufd $14, %xmm8, %xmm0 paddq %xmm8, %xmm0 - movq %xmm0, %rax + movd %xmm0, %rax ret EPILOGUE() DEF_OBJECT(L(cnsts),16,`JUMPTABSECT') -- cgit v1.2.1