[Gmp-commit] /var/hg/gmp: 2 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Tue Oct 20 20:38:16 UTC 2015
details: /var/hg/gmp/rev/7bc39fa8e452
changeset: 16894:7bc39fa8e452
user: Torbjorn Granlund <torbjorng at google.com>
date: Tue Oct 20 22:37:58 2015 +0200
description:
Use LEAL.
details: /var/hg/gmp/rev/b39617571a7c
changeset: 16895:b39617571a7c
user: Torbjorn Granlund <torbjorng at google.com>
date: Tue Oct 20 22:38:08 2015 +0200
description:
ChangeLog
diffstat:
ChangeLog | 5 +++++
mpn/x86/k7/invert_limb.asm | 4 ++--
mpn/x86/pentium/hamdist.asm | 5 ++++-
mpn/x86/pentium/popcount.asm | 5 ++++-
mpn/x86/pentium4/sse2/popcount.asm | 4 ++--
5 files changed, 17 insertions(+), 6 deletions(-)
diffs (95 lines):
diff -r 8bf4974faf24 -r b39617571a7c ChangeLog
--- a/ChangeLog Mon Oct 19 21:15:28 2015 +0200
+++ b/ChangeLog Tue Oct 20 22:38:08 2015 +0200
@@ -1,3 +1,8 @@
+2015-10-20 Torbjörn Granlund <torbjorng at google.com>
+
+ * mpn/x86/pentium4/sse2/popcount.asm: Use LEAL.
+ * mpn/x86/k7/invert_limb.asm: Likewise.
+
2015-10-18 Torbjörn Granlund <torbjorng at google.com>
* mpn/arm64/gmp-mparam.h: New file.
diff -r 8bf4974faf24 -r b39617571a7c mpn/x86/k7/invert_limb.asm
--- a/mpn/x86/k7/invert_limb.asm Mon Oct 19 21:15:28 2015 +0200
+++ b/mpn/x86/k7/invert_limb.asm Tue Oct 20 22:38:08 2015 +0200
@@ -2,7 +2,7 @@
dnl Contributed to the GNU project by Niels Möller
-dnl Copyright 2009, 2011 Free Software Foundation, Inc.
+dnl Copyright 2009, 2011, 2015 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
@@ -79,7 +79,7 @@
mov %eax, %edi
shr $22, %eax
ifdef(`PIC',`
- LEA( approx_tab, %ebx)
+ LEAL( approx_tab, %ebx)
movzwl -1024(%ebx, %eax, 2), %eax
',`
movzwl -1024+approx_tab(%eax, %eax), %eax C %eax = v0
diff -r 8bf4974faf24 -r b39617571a7c mpn/x86/pentium/hamdist.asm
--- a/mpn/x86/pentium/hamdist.asm Mon Oct 19 21:15:28 2015 +0200
+++ b/mpn/x86/pentium/hamdist.asm Tue Oct 20 22:38:08 2015 +0200
@@ -1,6 +1,6 @@
dnl Intel P5 mpn_hamdist -- mpn hamming distance.
-dnl Copyright 2001, 2002, 2014 Free Software Foundation, Inc.
+dnl Copyright 2001, 2002, 2014, 2015 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
@@ -46,6 +46,9 @@
m4_assert_defined(`GSYM_PREFIX')
GSYM_PREFIX`'mpn_popcount``'_table')
+C FIXME: referencing popcount.asm's table is incorrect as it hurt incremental
+C linking.
+
defframe(PARAM_SIZE,12)
defframe(PARAM_SRC2, 8)
defframe(PARAM_SRC1, 4)
diff -r 8bf4974faf24 -r b39617571a7c mpn/x86/pentium/popcount.asm
--- a/mpn/x86/pentium/popcount.asm Mon Oct 19 21:15:28 2015 +0200
+++ b/mpn/x86/pentium/popcount.asm Tue Oct 20 22:38:08 2015 +0200
@@ -1,6 +1,6 @@
dnl Intel P5 mpn_popcount -- mpn bit population count.
-dnl Copyright 2001, 2002, 2014 Free Software Foundation, Inc.
+dnl Copyright 2001, 2002, 2014, 2015 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
@@ -44,6 +44,9 @@
m4_assert_defined(`GSYM_PREFIX')
GSYM_PREFIX`'mpn_popcount``'_table')
+C FIXME: exporting the table to hamdist is incorrect as it hurt incremental
+C linking.
+
RODATA
ALIGN(8)
GLOBL TABLE_NAME
diff -r 8bf4974faf24 -r b39617571a7c mpn/x86/pentium4/sse2/popcount.asm
--- a/mpn/x86/pentium4/sse2/popcount.asm Mon Oct 19 21:15:28 2015 +0200
+++ b/mpn/x86/pentium4/sse2/popcount.asm Tue Oct 20 22:38:08 2015 +0200
@@ -1,6 +1,6 @@
dnl X86-32 and X86-64 mpn_popcount using SSE2.
-dnl Copyright 2006, 2007, 2011 Free Software Foundation, Inc.
+dnl Copyright 2006, 2007, 2011, 2015 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
@@ -117,7 +117,7 @@
pxor %xmm3, %xmm3 C zero grand total count
LIMB64(`pxor zero, zero ')
ifdef(`PIC',`
- LEA( cnsts, breg)
+ LEAL( cnsts, breg)
',`
LIMB32(`mov $cnsts, breg ')
LIMB64(`movabs $cnsts, breg ')
More information about the gmp-commit
mailing list