diff options
author | Henrik Gramner <henrik@gramner.com> | 2015-08-24 23:52:02 +0300 |
---|---|---|
committer | Henrik Gramner <henrik@gramner.com> | 2015-08-25 20:34:46 +0300 |
commit | 33a58d7bf40f9d78ffedf1ebb742bc0fc178e65a (patch) | |
tree | d4fc125d3cf6b36b9d18ae85c2eb1ca3859a6ca4 /tests/checkasm | |
parent | 4cd1d2314beec9ab6f96a1c820be62d642e99298 (diff) |
checkasm: Fix floating point arguments on 64-bit Windows
Diffstat (limited to 'tests/checkasm')
-rw-r--r-- | tests/checkasm/x86/checkasm.asm | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/checkasm/x86/checkasm.asm b/tests/checkasm/x86/checkasm.asm index da19aa2576..5f3def9e57 100644 --- a/tests/checkasm/x86/checkasm.asm +++ b/tests/checkasm/x86/checkasm.asm @@ -103,16 +103,20 @@ cglobal checked_call, 2,15,16,max_args*8+8 mov [rsp+(i-6)*8], r9 %assign i i+1 %endrep -%else +%else ; WIN64 %assign i 4 %rep max_args-4 mov r9, [rsp+stack_offset+(i+7)*8] mov [rsp+i*8], r9 %assign i i+1 %endrep -%endif -%if WIN64 + ; Move possible floating-point arguments to the correct registers + movq m0, r0 + movq m1, r1 + movq m2, r2 + movq m3, r3 + %assign i 6 %rep 16-6 mova m %+ i, [x %+ i] |