[Gmp-commit] /var/hg/gmp: Fix some DOS64 issues.
mercurial at gmplib.org
mercurial at gmplib.org
Tue Apr 17 23:14:50 CEST 2012
details: /var/hg/gmp/rev/77451151e515
changeset: 14847:77451151e515
user: Torbjorn Granlund <tege at gmplib.org>
date: Tue Apr 17 23:14:46 2012 +0200
description:
Fix some DOS64 issues.
diffstat:
ChangeLog | 3 +++
mpn/x86_64/coreisbr/aorsmul_1.asm | 8 +++++---
mpn/x86_64/coreisbr/mul_1.asm | 8 +++++---
3 files changed, 13 insertions(+), 6 deletions(-)
diffs (60 lines):
diff -r 05ac9337a803 -r 77451151e515 ChangeLog
--- a/ChangeLog Tue Apr 17 22:39:03 2012 +0200
+++ b/ChangeLog Tue Apr 17 23:14:46 2012 +0200
@@ -1,5 +1,8 @@
2012-04-17 Torbjorn Granlund <tege at gmplib.org>
+ * mpn/x86_64/coreisbr/aorsmul_1.asm: Fix some DOS64 issues.
+ * mpn/x86_64/coreisbr/mul_1.asm: Likewise.
+
* mpn/x86_64/fastsse/lshiftc-movdqu2.asm: Adhere to DOS64 register
partitioning rules.
diff -r 05ac9337a803 -r 77451151e515 mpn/x86_64/coreisbr/aorsmul_1.asm
--- a/mpn/x86_64/coreisbr/aorsmul_1.asm Tue Apr 17 22:39:03 2012 +0200
+++ b/mpn/x86_64/coreisbr/aorsmul_1.asm Tue Apr 17 23:14:46 2012 +0200
@@ -77,9 +77,9 @@
mov (up), %rax
push %rbx
-IFSTD(` mov R32(n_param), R32(%rdx) ')
-IFDOS(` mov R32(n), R32(%rdx) ')
-IFSTD(` mov R32(n_param), R32(n) ')
+IFSTD(` mov R32(n_param), R32(%rdx) ')
+IFDOS(` mov n, %rdx ')
+IFSTD(` mov R32(n_param), R32(n) ')
lea -8(up,n,8), up
and $3, R32(%rdx)
@@ -177,5 +177,7 @@
mov %r8, (rp)
pop %rbx
+IFDOS(``pop %rdi '')
+IFDOS(``pop %rsi '')
ret
EPILOGUE()
diff -r 05ac9337a803 -r 77451151e515 mpn/x86_64/coreisbr/mul_1.asm
--- a/mpn/x86_64/coreisbr/mul_1.asm Tue Apr 17 22:39:03 2012 +0200
+++ b/mpn/x86_64/coreisbr/mul_1.asm Tue Apr 17 23:14:46 2012 +0200
@@ -66,9 +66,9 @@
IFDOS(``mov %rdx, %rsi '')
mov (up), %rax
-IFSTD(` mov R32(n_param), R32(%r10) ')
-IFDOS(` mov R32(n), R32(%r10) ')
-IFSTD(` mov R32(n_param), R32(n) ')
+IFSTD(` mov R32(n_param), R32(%r10) ')
+IFDOS(` mov n, %r10 ')
+IFSTD(` mov R32(n_param), R32(n) ')
lea (up,n_param,8), up
lea -8(rp,n_param,8), rp
@@ -138,5 +138,7 @@
adc $0, %rax
mov %r9, (rp)
+IFDOS(``pop %rdi '')
+IFDOS(``pop %rsi '')
ret
EPILOGUE()
More information about the gmp-commit
mailing list