[Gmp-commit] /var/hg/gmp: Use 32-bit insn forms.

mercurial at gmplib.org mercurial at gmplib.org
Thu Nov 17 09:02:26 CET 2011


details:   /var/hg/gmp/rev/a1d1b483b419
changeset: 14452:a1d1b483b419
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Nov 17 09:02:17 2011 +0100
description:
Use 32-bit insn forms.

diffstat:

 mpn/powerpc32/tabselect.asm |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r c1b7e36d824b -r a1d1b483b419 mpn/powerpc32/tabselect.asm
--- a/mpn/powerpc32/tabselect.asm	Wed Nov 16 21:55:23 2011 +0100
+++ b/mpn/powerpc32/tabselect.asm	Thu Nov 17 09:02:17 2011 +0100
@@ -47,10 +47,10 @@
 	ALIGN(16)
 PROLOGUE(mpn_tabselect)
 	addi	r0, n, 1
-	srdi	r0, r0, 1		C inner loop count
+	srwi	r0, r0, 1		C inner loop count
 	andi.	r9, n, 1		C set cr0 for use in inner loop
 	subf	which, nents, which
-	sldi	n, n, 2
+	slwi	n, n, 2
 
 L(outer):
 	mtctr	r0			C put inner loop count in ctr
@@ -90,7 +90,7 @@
 	bdnz	L(top)
 
 L(end):	subf	rp, n, rp		C move rp back to beginning
-	cmpdi	cr6, nents, 1
+	cmpwi	cr6, nents, 1
 	addi	nents, nents, -1
 	bne	cr6, L(outer)
 


More information about the gmp-commit mailing list