[Gmp-commit] /var/hg/gmp: 5 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Mon Jan 1 20:25:43 UTC 2018
details: /var/hg/gmp/rev/a3ca5872a1af
changeset: 17519:a3ca5872a1af
user: Torbjorn Granlund <tg at gmplib.org>
date: Mon Jan 01 21:24:53 2018 +0100
description:
Use new insn defs.
details: /var/hg/gmp/rev/dbb43ee7328f
changeset: 17520:dbb43ee7328f
user: Torbjorn Granlund <tg at gmplib.org>
date: Mon Jan 01 21:25:02 2018 +0100
description:
Use new insn defs.
details: /var/hg/gmp/rev/43f642484877
changeset: 17521:43f642484877
user: Torbjorn Granlund <tg at gmplib.org>
date: Mon Jan 01 21:25:11 2018 +0100
description:
Use new insn defs.
details: /var/hg/gmp/rev/553a39d5762f
changeset: 17522:553a39d5762f
user: Torbjorn Granlund <tg at gmplib.org>
date: Mon Jan 01 21:25:18 2018 +0100
description:
Use new insn defs.
details: /var/hg/gmp/rev/dc62a57aeb67
changeset: 17523:dc62a57aeb67
user: Torbjorn Granlund <tg at gmplib.org>
date: Mon Jan 01 21:25:34 2018 +0100
description:
ChangeLog
diffstat:
ChangeLog | 14 ++++++++++++
mpn/powerpc64/mode64/p8/invert_limb.asm | 4 +-
mpn/powerpc64/mode64/p9/addmul_1.asm | 36 ++++++++++++++++----------------
mpn/powerpc64/p7/hamdist.asm | 12 +++++-----
mpn/powerpc64/p7/popcount.asm | 16 +++++++-------
5 files changed, 48 insertions(+), 34 deletions(-)
diffs (229 lines):
diff -r bb6ab005e1fe -r dc62a57aeb67 ChangeLog
--- a/ChangeLog Sun Dec 31 16:00:26 2017 +0100
+++ b/ChangeLog Mon Jan 01 21:25:34 2018 +0100
@@ -1,3 +1,17 @@
+2018-01-01 Torbjörn Granlund <tg at gmplib.org>
+
+ * mpn/powerpc32/powerpc-defs.m4: Define maddld, maddhdu, popcntd, and
+ divdeu.
+ * mpn/powerpc64/mode64/p8/invert_limb.asm: Use new insn defs.
+ * mpn/powerpc64/mode64/p9/addmul_1.asm: Use new insn defs.
+ * mpn/powerpc64/p7/hamdist.asm: Use new insn defs.
+ * mpn/powerpc64/p7/popcount.asm: Use new insn defs.
+
+2017-12-31 Torbjörn Granlund <tg at gmplib.org>
+
+ * mpn/powerpc64/mode64/p9/addmul_1.asm: Moved from
+ mpn/powerpc64/p9/addmul_1.asm.
+
2017-12-30 Marco Bodrato <bodrato at mail.dm.unipi.it>
* mpz/bin_ui.c: Rewrite, using Fredrik Johansson's suggestions.
diff -r bb6ab005e1fe -r dc62a57aeb67 mpn/powerpc64/mode64/p8/invert_limb.asm
--- a/mpn/powerpc64/mode64/p8/invert_limb.asm Sun Dec 31 16:00:26 2017 +0100
+++ b/mpn/powerpc64/mode64/p8/invert_limb.asm Mon Jan 01 21:25:34 2018 +0100
@@ -1,6 +1,6 @@
dnl PowerPC-64 mpn_invert_limb -- Invert a normalized limb.
-dnl Copyright 2015 Free Software Foundation, Inc.
+dnl Copyright 2015, 2017 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
@@ -45,7 +45,7 @@
PROLOGUE(mpn_invert_limb)
sldi. r4, r3, 1
neg r5, r3
- divdeu r3, r5, r3
+ divdeu( r3, r5, r3)
beq- L(1)
blr
L(1): li r3, -1
diff -r bb6ab005e1fe -r dc62a57aeb67 mpn/powerpc64/mode64/p9/addmul_1.asm
--- a/mpn/powerpc64/mode64/p9/addmul_1.asm Sun Dec 31 16:00:26 2017 +0100
+++ b/mpn/powerpc64/mode64/p9/addmul_1.asm Mon Jan 01 21:25:34 2018 +0100
@@ -66,13 +66,13 @@
ld r12, 0(up)
ld r11, 8(rp)
ld r31, 8(up)
- maddld r0, r12, v0, r10
- maddhdu r7, r12, v0, r10
+ maddld( r0, r12, v0, r10)
+ maddhdu(r7, r12, v0, r10)
ble cr6, L(2)
ld r10, 16(rp)
ld r12, 16(up)
- maddld r8, r31, v0, r11
- maddhdu r5, r31, v0, r11
+ maddld( r8, r31, v0, r11)
+ maddhdu(r5, r31, v0, r11)
addic up, up, 16
addi rp, rp, -8
b L(mid)
@@ -82,12 +82,12 @@
ble cr6, L(1)
ld r10, 8(rp)
ld r12, 8(up)
- maddld r0, r31, v0, r11
- maddhdu r5, r31, v0, r11
+ maddld( r0, r31, v0, r11)
+ maddhdu(r5, r31, v0, r11)
ld r11, 16(rp)
ld r31, 16(up)
- maddld r9, r12, v0, r10
- maddhdu r7, r12, v0, r10
+ maddld( r9, r12, v0, r10)
+ maddhdu(r7, r12, v0, r10)
addic up, up, 24
bdz L(end)
@@ -95,23 +95,23 @@
L(top): ld r10, 24(rp)
ld r12, 0(up)
std r0, 0(rp)
- maddld r8, r31, v0, r11 C W:0,2,4
+ maddld( r8, r31, v0, r11) C W:0,2,4
adde r0, r5, r9
- maddhdu r5, r31, v0, r11 C W:1,3,5
+ maddhdu(r5, r31, v0, r11) C W:1,3,5
L(mid): ld r11, 32(rp)
ld r31, 8(up)
std r0, 8(rp)
- maddld r9, r12, v0, r10 C W:1,3,5
+ maddld( r9, r12, v0, r10) C W:1,3,5
adde r0, r7, r8
- maddhdu r7, r12, v0, r10 C W:2,4,6
+ maddhdu(r7, r12, v0, r10) C W:2,4,6
addi rp, rp, 16
addi up, up, 16
bdnz L(top)
L(end): std r0, 0(rp)
- maddld r8, r31, v0, r11
+ maddld( r8, r31, v0, r11)
adde r0, r5, r9
- maddhdu r5, r31, v0, r11
+ maddhdu(r5, r31, v0, r11)
std r0, 8(rp)
adde r0, r7, r8
std r0, 16(rp)
@@ -119,8 +119,8 @@
ld r31, -8(r1)
blr
-L(2): maddld r8, r31, v0, r11
- maddhdu r5, r31, v0, r11
+L(2): maddld( r8, r31, v0, r11)
+ maddhdu(r5, r31, v0, r11)
std r0, 0(rp)
addc r0, r7, r8
std r0, 8(rp)
@@ -128,9 +128,9 @@
ld r31, -8(r1)
blr
-L(1): maddld r0, r31, v0, r11
+L(1): maddld( r0, r31, v0, r11)
std r0, 0(rp)
- maddhdu r3, r31, v0, r11
+ maddhdu(r3, r31, v0, r11)
ld r31, -8(r1)
blr
EPILOGUE()
diff -r bb6ab005e1fe -r dc62a57aeb67 mpn/powerpc64/p7/hamdist.asm
--- a/mpn/powerpc64/p7/hamdist.asm Sun Dec 31 16:00:26 2017 +0100
+++ b/mpn/powerpc64/p7/hamdist.asm Mon Jan 01 21:25:34 2018 +0100
@@ -1,6 +1,6 @@
dnl PowerPC-64 mpn_hamdist.
-dnl Copyright 2012 Free Software Foundation, Inc.
+dnl Copyright 2012, 2017 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
@@ -64,7 +64,7 @@
ld r8, 0(vp)
addi vp, vp, 8
xor r10, r6, r8
- popcntd r0, r10
+ popcntd(r0, r10)
bdz L(e1)
L(evn): ld r6, 0(up)
@@ -85,21 +85,21 @@
ld r6, 0(up)
ld r8, 0(vp)
xor r11, r7, r9
- popcntd r30, r10
+ popcntd(r30, r10)
add r12, r12, r31
ld r7, 8(up)
ld r9, 8(vp)
xor r10, r6, r8
- popcntd r31, r11
+ popcntd(r31, r11)
addi up, up, 16
addi vp, vp, 16
bdnz L(top)
L(end): add r0, r0, r30
xor r11, r7, r9
- popcntd r30, r10
+ popcntd(r30, r10)
add r12, r12, r31
- popcntd r31, r11
+ popcntd(r31, r11)
add r0, r0, r30
add r12, r12, r31
diff -r bb6ab005e1fe -r dc62a57aeb67 mpn/powerpc64/p7/popcount.asm
--- a/mpn/powerpc64/p7/popcount.asm Sun Dec 31 16:00:26 2017 +0100
+++ b/mpn/powerpc64/p7/popcount.asm Mon Jan 01 21:25:34 2018 +0100
@@ -1,6 +1,6 @@
dnl PowerPC-64 mpn_popcount.
-dnl Copyright 2012 Free Software Foundation, Inc.
+dnl Copyright 2012, 2017 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
@@ -56,13 +56,13 @@
L(odd): ld r4, 0(up)
addi up, up, 8
- popcntd r0, r4
+ popcntd(r0, r4)
bdz L(e1)
L(evn): ld r4, 0(up)
ld r5, 8(up)
- popcntd r8, r4
- popcntd r9, r5
+ popcntd(r8, r4)
+ popcntd(r9, r5)
bdz L(e2)
ld r4, 16(up)
@@ -71,18 +71,18 @@
addi up, up, 32
L(top): add r0, r0, r8
- popcntd r8, r4
+ popcntd(r8, r4)
ld r4, 0(up)
add r12, r12, r9
- popcntd r9, r5
+ popcntd(r9, r5)
ld r5, 8(up)
addi up, up, 16
bdnz L(top)
L(e4): add r0, r0, r8
- popcntd r8, r4
+ popcntd(r8, r4)
add r12, r12, r9
- popcntd r9, r5
+ popcntd(r9, r5)
L(e2): add r0, r0, r8
add r12, r12, r9
L(e1): add r3, r0, r12
More information about the gmp-commit
mailing list