[Gmp-commit] /var/hg/gmp: Use different rlwinm variant (to appeace clang).

mercurial at gmplib.org mercurial at gmplib.org
Tue Jan 2 17:32:15 UTC 2018


details:   /var/hg/gmp/rev/e9dd0d4dd178
changeset: 17525:e9dd0d4dd178
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Tue Jan 02 18:32:06 2018 +0100
description:
Use different rlwinm variant (to appeace clang).

diffstat:

 mpn/powerpc64/mode64/divrem_2.asm |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 3b4810b2c0a0 -r e9dd0d4dd178 mpn/powerpc64/mode64/divrem_2.asm
--- a/mpn/powerpc64/mode64/divrem_2.asm	Mon Jan 01 21:30:04 2018 +0100
+++ b/mpn/powerpc64/mode64/divrem_2.asm	Tue Jan 02 18:32:06 2018 +0100
@@ -91,7 +91,7 @@
 	cmpld	cr7, r29, r30
 	blt	cr7, L(8)
 	mfcr	r0
-	rlwinm	r0, r0, 30, 1
+	rlwinm	r0, r0, 30, 31, 31
 	subfc	r9, r28, r31
 	addze.	r0, r0
 	nop
@@ -176,7 +176,7 @@
 	blr
 L(fix):
 	mfcr	r0
-	rlwinm	r0, r0, 30, 1
+	rlwinm	r0, r0, 30, 31, 31
 	subfc	r9, r28, r31
 	addze.	r0, r0
 	beq	cr0, L(bck)


More information about the gmp-commit mailing list