[Gmp-commit] /var/hg/gmp: Properly align stack for DOS64.

mercurial at gmplib.org mercurial at gmplib.org
Thu Jul 3 20:37:03 UTC 2014


details:   /var/hg/gmp/rev/f27764c94f1b
changeset: 16449:f27764c94f1b
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Jul 03 22:36:53 2014 +0200
description:
Properly align stack for DOS64.

diffstat:

 mpn/x86_64/coreihwl/redc_1.asm |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r d650c7326db0 -r f27764c94f1b mpn/x86_64/coreihwl/redc_1.asm
--- a/mpn/x86_64/coreihwl/redc_1.asm	Thu Jul 03 02:14:04 2014 +0200
+++ b/mpn/x86_64/coreihwl/redc_1.asm	Thu Jul 03 22:36:53 2014 +0200
@@ -418,13 +418,13 @@
 	neg	R32(n)
 	mov	n, %r9			C param 4: n
 	mov	8(%rsp), %rcx		C param 1: rp
-	lea	-16(%rsp), %rsp	')	C deallocate 2, allocate shadow
+	lea	16-32-8(%rsp), %rsp')	C deallocate 2, allocate shadow, align
 
 	ASSERT(nz, `test $15, %rsp')
 	CALL(	mpn_add_n)
 
 IFSTD(`	lea	8(%rsp), %rsp	')
-IFDOS(`	lea	32(%rsp), %rsp	')
+IFDOS(`	lea	32+8(%rsp), %rsp')
 
 L(ret):	pop	%r15
 	pop	%r14


More information about the gmp-commit mailing list