[Gmp-commit] /var/hg/gmp: 3 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Tue Mar 29 21:33:25 CEST 2011


details:   /var/hg/gmp/rev/03e17c60449a
changeset: 14108:03e17c60449a
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Mar 29 21:10:55 2011 +0200
description:
Use canonical insn forms.

details:   /var/hg/gmp/rev/16b2227b273e
changeset: 14109:16b2227b273e
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Mar 29 21:12:32 2011 +0200
description:
Use canonical insn forms.

details:   /var/hg/gmp/rev/0e444be0e36f
changeset: 14110:0e444be0e36f
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Mar 29 21:13:42 2011 +0200
description:
Use canonical insn forms.

diffstat:

 mpn/x86/k7/addlsh1_n.asm   |  22 +++++++++++-----------
 mpn/x86/k7/invert_limb.asm |   4 ++--
 mpn/x86/k7/sublsh1_n.asm   |  22 +++++++++++-----------
 3 files changed, 24 insertions(+), 24 deletions(-)

diffs (131 lines):

diff -r d3c3f6917806 -r 0e444be0e36f mpn/x86/k7/addlsh1_n.asm
--- a/mpn/x86/k7/addlsh1_n.asm	Tue Mar 29 11:43:43 2011 +0200
+++ b/mpn/x86/k7/addlsh1_n.asm	Tue Mar 29 21:13:42 2011 +0200
@@ -78,26 +78,26 @@
 	mov	$0x2aaaaaab, %eax
 
 	push	%ebx			FRAME_pushl()
-	movl	PARAM_SIZE, %ebx	C size
+	mov	PARAM_SIZE, %ebx	C size
 
 	push	rp			FRAME_pushl()
-	movl	PARAM_DST, rp
+	mov	PARAM_DST, rp
 
-	mull	%ebx
+	mul	%ebx
 
 	push	up			FRAME_pushl()
-	movl	PARAM_SRC, up
+	mov	PARAM_SRC, up
 
 	not	%edx			C count = -(size\8)-1
 	mov	%edx, VAR_COUNT
 
 	push	vp			FRAME_pushl()
-	movl	PARAM_DBLD, vp
+	mov	PARAM_DBLD, vp
 
-	leal	3(%edx,%edx,2), %ecx	C count*3+3 = -(size\6)*3
-	xorl	%edx, %edx
-	leal	(%ebx,%ecx,2), %ebx	C size + (count*3+3)*2 = size % 6
-	orl	%ebx, %ebx
+	lea	3(%edx,%edx,2), %ecx	C count*3+3 = -(size\6)*3
+	xor	%edx, %edx
+	lea	(%ebx,%ecx,2), %ebx	C size + (count*3+3)*2 = size % 6
+	or	%ebx, %ebx
 	jz	L(exact)
 
 L(oop):
@@ -112,11 +112,11 @@
 	adc	%edx, %edx		C save a carry bit in edx
 ifdef(`CPU_P6',`
 	adc	%edx, %edx ')		C save another carry bit in edx
-	decl	%ebx
+	dec	%ebx
 	mov	%eax, (rp)
 	lea	4(rp), rp
 	jnz	L(oop)
-	movl	vp, VAR_TMP
+	mov	vp, VAR_TMP
 L(exact):
 	incl	VAR_COUNT
 	jz	L(end)
diff -r d3c3f6917806 -r 0e444be0e36f mpn/x86/k7/invert_limb.asm
--- a/mpn/x86/k7/invert_limb.asm	Tue Mar 29 11:43:43 2011 +0200
+++ b/mpn/x86/k7/invert_limb.asm	Tue Mar 29 21:13:42 2011 +0200
@@ -61,7 +61,7 @@
 deflit(`FRAME', 0)
 	mov	PARAM_DIVISOR, %eax
 	C Avoid push/pop on k7.	
-	subl	$8, %esp	FRAME_subl_esp(8)
+	sub	$8, %esp	FRAME_subl_esp(8)
 	mov	%ebx, (%esp)
 	mov	%edi, 4(%esp)
 
@@ -108,7 +108,7 @@
 
 	mov	(%esp), %ebx
 	mov	4(%esp), %edi
-	addl	$8, %esp
+	add	$8, %esp
 
 	ret
 
diff -r d3c3f6917806 -r 0e444be0e36f mpn/x86/k7/sublsh1_n.asm
--- a/mpn/x86/k7/sublsh1_n.asm	Tue Mar 29 11:43:43 2011 +0200
+++ b/mpn/x86/k7/sublsh1_n.asm	Tue Mar 29 21:13:42 2011 +0200
@@ -66,18 +66,18 @@
 define(`rp',  `%edi')
 define(`up',  `%esi')
 
-	movl	PARAM_SIZE, %eax	C size
+	mov	PARAM_SIZE, %eax	C size
 	push	up			FRAME_pushl()
 	push	rp			FRAME_pushl()
-	xorl	%edx, %edx
-	movl	PARAM_SRC, up
-	movl	PARAM_DST, rp
-	movl	%ebx, SAVE_EBX
-	movl	%eax, %ebx
+	xor	%edx, %edx
+	mov	PARAM_SRC, up
+	mov	PARAM_DST, rp
+	mov	%ebx, SAVE_EBX
+	mov	%eax, %ebx
 	shr	$3, %eax
 
 	not	%eax			C count = -(size\8)-i
-	andl	$7, %ebx		C size % 8
+	and	$7, %ebx		C size % 8
 	jz	L(exact)
 
 L(oop):
@@ -92,13 +92,13 @@
 	adc	%edx, %edx		C save a carry bit in edx
 ifdef(`CPU_P6',`
 	adc	%edx, %edx ')		C save another carry bit in edx
-	decl	%ebx
+	dec	%ebx
 	jnz	L(oop)
 L(exact):
 	inc	%eax
 	jz	L(end)
 	mov	%eax, VAR_COUNT
-	movl	%ebp, SAVE_EBP
+	mov	%ebp, SAVE_EBP
 
 	ALIGN(16)
 L(top):
@@ -143,9 +143,9 @@
 	lea	32(rp), rp
 	jne	L(top)
 
-	movl	SAVE_EBP, %ebp
+	mov	SAVE_EBP, %ebp
 L(end):
-	movl	SAVE_EBX, %ebx
+	mov	SAVE_EBX, %ebx
 
 ifdef(`CPU_P6',`
 	xor	%eax, %eax


More information about the gmp-commit mailing list