[Gmp-commit] /var/hg/gmp: Avoid bc+ insn form to accomodate clang.

mercurial at gmplib.org mercurial at gmplib.org
Mon Aug 28 20:06:51 UTC 2017


details:   /var/hg/gmp/rev/a734b1e9818c
changeset: 17493:a734b1e9818c
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Mon Aug 28 22:06:33 2017 +0200
description:
Avoid bc+ insn form to accomodate clang.

diffstat:

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

diffs (29 lines):

diff -r d2f1747491ad -r a734b1e9818c mpn/powerpc32/divrem_2.asm
--- a/mpn/powerpc32/divrem_2.asm	Mon Aug 28 00:23:46 2017 +0200
+++ b/mpn/powerpc32/divrem_2.asm	Mon Aug 28 22:06:33 2017 +0200
@@ -1,6 +1,6 @@
 dnl  PPC-32 mpn_divrem_2 -- Divide an mpn number by a normalized 2-limb number.
 
-dnl  Copyright 2007, 2008, 2012 Free Software Foundation, Inc.
+dnl  Copyright 2007, 2008, 2012, 2017 Free Software Foundation, Inc.
 
 dnl  This file is part of the GNU MP Library.
 dnl
@@ -98,7 +98,7 @@
 	cmplw	cr6, r6, r0
 	addi	r31, r31, -1		C q1--
 	crorc	28, 28, 25
-	bc+	12, 28, L(9)
+	blt+	cr7, L(9)
 	addi	r31, r31, -1		C q1--
 	add	r0, r0, r10
 L(9):	subf	r0, r6, r0
@@ -115,7 +115,7 @@
 	cmplw	cr6, r11, r0
 	addi	r6, r6, -1		C q0--
 	crorc	28, 28, 25
-	bc+	12, 28, L(13)
+	blt+	cr7, L(13)
 C	add	r0, r0, r10		C final remainder
 	addi	r6, r6, -1		C q0--
 L(13):	rlwimi	r6, r31, 16, 0, 15	C assemble final quotient


More information about the gmp-commit mailing list