[Gmp-commit] /var/hg/gmp: Prefer movd to movq for register moves.

mercurial at gmplib.org mercurial at gmplib.org
Wed Nov 2 13:48:40 CET 2022


details:   /var/hg/gmp/rev/3ac5afa36be5
changeset: 18373:3ac5afa36be5
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Wed Nov 02 13:48:37 2022 +0100
description:
Prefer movd to movq for register moves.

diffstat:

 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(-)

diffs (48 lines):

diff -r f9298f845ed1 -r 3ac5afa36be5 mpn/x86_64/bd1/hamdist.asm
--- a/mpn/x86_64/bd1/hamdist.asm	Fri Oct 28 16:31:44 2022 +0200
+++ b/mpn/x86_64/bd1/hamdist.asm	Wed Nov 02 13:48:37 2022 +0100
@@ -170,7 +170,7 @@
 	paddq	%xmm0, %xmm8
 	pshufd	$14, %xmm8, %xmm0
 	paddq	%xmm8, %xmm0
-	movq	%xmm0, %rax
+	movd	%xmm0, %rax
 	add	%r10, %rax
 	FUNC_EXIT()
 	ret
diff -r f9298f845ed1 -r 3ac5afa36be5 mpn/x86_64/bd1/popcount.asm
--- a/mpn/x86_64/bd1/popcount.asm	Fri Oct 28 16:31:44 2022 +0200
+++ b/mpn/x86_64/bd1/popcount.asm	Wed Nov 02 13:48:37 2022 +0100
@@ -167,7 +167,7 @@
 	paddq	%xmm5, %xmm8
 	pshufd	$14, %xmm8, %xmm0
 	paddq	%xmm8, %xmm0
-	movq	%xmm0, %rax
+	movd	%xmm0, %rax
 	add	%rdx, %rax
 	FUNC_EXIT()
 	ret
diff -r f9298f845ed1 -r 3ac5afa36be5 mpn/x86_64/core2/hamdist.asm
--- a/mpn/x86_64/core2/hamdist.asm	Fri Oct 28 16:31:44 2022 +0200
+++ b/mpn/x86_64/core2/hamdist.asm	Wed Nov 02 13:48:37 2022 +0100
@@ -191,7 +191,7 @@
 	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 -r f9298f845ed1 -r 3ac5afa36be5 mpn/x86_64/core2/popcount.asm
--- a/mpn/x86_64/core2/popcount.asm	Fri Oct 28 16:31:44 2022 +0200
+++ b/mpn/x86_64/core2/popcount.asm	Wed Nov 02 13:48:37 2022 +0100
@@ -166,7 +166,7 @@
 	paddq	%xmm4, %xmm8
 	pshufd	$14, %xmm8, %xmm0
 	paddq	%xmm8, %xmm0
-	movq	%xmm0, %rax
+	movd	%xmm0, %rax
 	ret
 EPILOGUE()
 DEF_OBJECT(L(cnsts),16,`JUMPTABSECT')


More information about the gmp-commit mailing list