[Gmp-commit] /var/hg/gmp: Use macro mulx consistently.

mercurial at gmplib.org mercurial at gmplib.org
Wed Sep 4 11:57:15 CEST 2013


details:   /var/hg/gmp/rev/4c207fc809eb
changeset: 15969:4c207fc809eb
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Wed Sep 04 11:57:00 2013 +0200
description:
Use macro mulx consistently.

diffstat:

 mpn/x86_64/coreihwl/redc_1.asm |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (43 lines):

diff -r 87d79b5e7a8a -r 4c207fc809eb mpn/x86_64/coreihwl/redc_1.asm
--- a/mpn/x86_64/coreihwl/redc_1.asm	Wed Sep 04 00:07:31 2013 +0200
+++ b/mpn/x86_64/coreihwl/redc_1.asm	Wed Sep 04 11:57:00 2013 +0200
@@ -192,9 +192,9 @@
 
 L(o1b):	lea	24(mp), mp
 L(o1):	lea	1(n), i			C inner loop induction var
-	`mulx'	-24(mp), %r11, %r10
-	`mulx'	-16(mp), %r13, %r12
-	`mulx'	-8(mp), %rbx, %rax
+	mulx(	-24,(mp), %r11, %r10)
+	mulx(	-16,(mp), %r13, %r12)
+	mulx(	-8,(mp), %rbx, %rax)
 	sar	$2, i
 	add	%r10, %r13
 	adc	%r12, %rbx
@@ -281,7 +281,7 @@
 
 L(o3b):	lea	8(mp), mp
 L(o3):	lea	4(n), i			C inner loop induction var
-	`mulx'	-8(mp), %rbx, %rax
+	mulx(	-8,(mp), %rbx, %rax)
 	mulx(	(mp), %r9, %r8)
 	mov	(up), %rbp
 	mulx(	8,(mp), %r11, %r10)
@@ -341,7 +341,7 @@
 L(o0b):	lea	16(mp), mp
 L(o0):	mov	n, i			C inner loop induction var
 	mulx(	-16,(mp), %r13, %r12)
-	`mulx'	-8(mp), %rbx, %rax
+	mulx(	-8,(mp), %rbx, %rax)
 	sar	$2, i
 	add	%r12, %rbx
 	adc	$0, %rax
@@ -400,7 +400,7 @@
 IFSTD(`	mov	8(%rsp), %rdi		C param 1: rp
 	lea	16(%rsp), %rsp		C deallocate two slots
 	lea	(up,n,8), %rdx		C param 3: up - n
-	neg	R32(n)		')
+	neg	R32(n)		')	C param 4: n
 
 IFDOS(`	mov	up, %rdx		C param 2: up
 	lea	(up,n,8), %r8		C param 3: up - n


More information about the gmp-commit mailing list