math/mpx-mul4-amd64-sse2.S: Fix stack-argument offset for 64-bit Windows.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 16 Nov 2018 12:49:42 +0000 (12:49 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 24 Nov 2018 20:14:14 +0000 (20:14 +0000)
I failed to account for either the 160 bytes of saved XMM registers
(because the stupid ABI demands that XMM6--XMM15 be preserved across
calls), or for the daft 32-byte shadow space between the return address
and the stacked arguments.

math/mpx-mul4-amd64-sse2.S

index 2d78a99..098de45 100644 (file)
@@ -1308,7 +1308,7 @@ ENDFUNC
 #  define ARG6 STKARG(2)
 #  define ARG7 STKARG(3)
 #  define ARG8 STKARG(4)
-#  define STKARG_OFFSET 40
+#  define STKARG_OFFSET 224
 #endif
 #define STKARG(i) [rsp + STKARG_OFFSET + 8*(i)]