~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
base/asm-common.h (x86), and knock-on: Add macros for full-size regs.
[catacomb]
/
math
/
mpx-mul4-amd64-sse2.S
diff --git
a/math/mpx-mul4-amd64-sse2.S
b/math/mpx-mul4-amd64-sse2.S
index
03e466c
..
51e94c5
100644
(file)
--- a/
math/mpx-mul4-amd64-sse2.S
+++ b/
math/mpx-mul4-amd64-sse2.S
@@
-575,10
+575,10
@@
INTFUNC(mmla4)
movdqu xmm4, [rax]
#if ABI_WIN
stalloc 48 + 8 // space for the carries
movdqu xmm4, [rax]
#if ABI_WIN
stalloc 48 + 8 // space for the carries
-# define STKTMP(i) [
rsp
+ i]
+# define STKTMP(i) [
SP
+ i]
#endif
#if ABI_SYSV
#endif
#if ABI_SYSV
-# define STKTMP(i) [
rsp + i - 48 - 8]
// use red zone
+# define STKTMP(i) [
SP + i - 48 - 8]
// use red zone
#endif
endprologue
#endif
endprologue
@@
-811,7
+811,7
@@
FUNC(mpx_umul4_amd64_sse2)
endprologue
mov rdi, DV
endprologue
mov rdi, DV
- mov BVL, [
rsp
+ 224]
+ mov BVL, [
SP
+ 224]
#endif
#endif
@@
-978,8
+978,8
@@
FUNC(mpxmont_mul4_amd64_sse2)
endprologue
mov rdi, DV
endprologue
mov rdi, DV
- mov N, [
rsp
+ 224]
- mov MI, [
rsp
+ 232]
+ mov N, [
SP
+ 224]
+ mov MI, [
SP
+ 232]
#endif
#endif
@@
-1183,7
+1183,7
@@
FUNC(mpxmont_redc4_amd64_sse2)
endprologue
mov rdi, DV
endprologue
mov rdi, DV
- mov MI, [
rsp
+ 224]
+ mov MI, [
SP
+ 224]
#endif
#endif
@@
-1329,7
+1329,7
@@
ENDFUNC
# define ARG8 STKARG(4)
# define STKARG_OFFSET 224
#endif
# define ARG8 STKARG(4)
# define STKARG_OFFSET 224
#endif
-#define STKARG(i) [
rsp
+ STKARG_OFFSET + 8*(i)]
+#define STKARG(i) [
SP
+ STKARG_OFFSET + 8*(i)]
// sysv win
// dmul smul mmul mont dmul smul mmul mont
// sysv win
// dmul smul mmul mont dmul smul mmul mont
@@
-1548,6
+1548,16
@@
FUNC(test_mul4)
testepilogue
ENDFUNC
testepilogue
ENDFUNC
+FUNC(test_mul4zc)
+ testprologue smul
+ testldcarry
+ testtop nil
+ call mul4zc
+ testtail
+ testcarryout
+ testepilogue
+ENDFUNC
+
FUNC(test_mla4)
testprologue smul
testldcarry
FUNC(test_mla4)
testprologue smul
testldcarry
@@
-1558,6
+1568,16
@@
FUNC(test_mla4)
testepilogue
ENDFUNC
testepilogue
ENDFUNC
+FUNC(test_mla4zc)
+ testprologue smul
+ testldcarry
+ testtop nil
+ call mla4zc
+ testtail
+ testcarryout
+ testepilogue
+ENDFUNC
+
FUNC(test_mmul4)
testprologue mmul
testtop r11
FUNC(test_mmul4)
testprologue mmul
testtop r11