[Gmp-commit] /var/hg/gmp: powerpc64 asm fixes for previous addcnd/subcnd argu...

mercurial at gmplib.org mercurial at gmplib.org
Sun Mar 10 20:15:11 CET 2013


details:   /var/hg/gmp/rev/e0f795b7e0e8
changeset: 15557:e0f795b7e0e8
user:      Niels Möller <nisse at lysator.liu.se>
date:      Sun Mar 10 20:14:53 2013 +0100
description:
powerpc64 asm fixes for previous addcnd/subcnd argument reordering.

diffstat:

 mpn/powerpc64/mode64/aorscnd_n.asm |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (48 lines):

diff -r 1e4b5faa89e8 -r e0f795b7e0e8 mpn/powerpc64/mode64/aorscnd_n.asm
--- a/mpn/powerpc64/mode64/aorscnd_n.asm	Sun Mar 10 10:00:12 2013 +0100
+++ b/mpn/powerpc64/mode64/aorscnd_n.asm	Sun Mar 10 20:14:53 2013 +0100
@@ -64,11 +64,11 @@
 	subfic	cnd, cnd, 0
 	subfe	cnd, cnd, cnd
 
-	rldicl.	r0, r6, 0,62	C r0 = n & 3, set cr0
+	rldicl.	r0, n, 0,62	C r0 = n & 3, set cr0
 	cmpdi	cr6, r0, 2
-	addi	r6, r6, 3	C compute count...
-	srdi	r6, r6, 2	C ...for ctr
-	mtctr	r6		C copy count into ctr
+	addi	n, n, 3	C compute count...
+	srdi	n, n, 2	C ...for ctr
+	mtctr	n		C copy count into ctr
 	beq	cr0, L(b00)
 	blt	cr6, L(b01)
 	beq	cr6, L(b10)
@@ -122,7 +122,7 @@
 	b	L(ret)
 
 L(b00):	CLRCB			C clear/set cy
-L(go):	ld	r6, 0(up)	C load s1 limb
+L(go):	ld	r7, 0(up)	C load s1 limb
 	ld	r27, 0(vp)	C load s2 limb
 	ld	r8, 8(up)	C load s1 limb
 	ld	r9, 8(vp)	C load s2 limb
@@ -139,8 +139,8 @@
 	addi	up, up, 32
 	addi	vp, vp, 32
 
-L(top):	ADDSUBC	r28, r27, r6
-	ld	r6, 0(up)	C load s1 limb
+L(top):	ADDSUBC	r28, r27, r7
+	ld	r7, 0(up)	C load s1 limb
 	ld	r27, 0(vp)	C load s2 limb
 	ADDSUBC	r29, r9, r8
 	ld	r8, 8(up)	C load s1 limb
@@ -164,7 +164,7 @@
 	and	r0, r0, cnd
 	bdnz	L(top)		C decrement ctr and loop back
 
-L(end):	ADDSUBC	r28, r27, r6
+L(end):	ADDSUBC	r28, r27, r7
 	ADDSUBC	r29, r9, r8
 	ADDSUBC	r30, r11, r10
 	ADDSUBC	r31, r0, r12


More information about the gmp-commit mailing list