unittests/ASM: Ensure ffreep always has an operand

This commit is contained in:
Paris Oplopoios committed 2026-08-09 16:46:13 +03:00
1 parent fd141ed6d7
commit f4e362c477
4 files changed
+18 -18

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ fninit
times 8 fldz
; Empty them
times 8 ffreep
times 8 ffreep st0
; Load seven of them with random data
fld tword [rel .random_data + (0 * 10)]
+1 -1
View File
@@ -22,7 +22,7 @@ fninit
times 8 fldz
; Empty them
times 8 ffreep
times 8 ffreep st0
; Load seven of them with random data
fld tword [rel .random_data + (0 * 10)]
+8 -8
View File
@@ -23,14 +23,14 @@ mov rax, 0
fldz
w3_size %1, 4, dword
w3_size %1, 8, qword
ffreep
ffreep st0
%endmacro
%macro x87_i24_op 1
fldz
w3_size %1, 2, word
w3_size %1, 4, dword
ffreep
ffreep st0
%endmacro
x87_f48_op fadd
@@ -50,11 +50,11 @@ x87_f48_op fdivr
; fld is special
w3_size fld, 4, dword
ffreep
ffreep st0
w3_size fld, 8, qword
ffreep
ffreep st0
w3_size fld, 10, tword
ffreep
ffreep st0
; fst is special
fldz
@@ -96,11 +96,11 @@ x87_i24_op fidivr
; fild is special
w3_size fild, 2, word
ffreep
ffreep st0
w3_size fild, 4, dword
ffreep
ffreep st0
w3_size fild, 8, qword
ffreep
ffreep st0
; fist is special
fldz
+8 -8
View File
@@ -24,14 +24,14 @@ mov rax, 0
fldz
w3_size %1, 4, dword
w3_size %1, 8, qword
ffreep
ffreep st0
%endmacro
%macro x87_i24_op 1
fldz
w3_size %1, 2, word
w3_size %1, 4, dword
ffreep
ffreep st0
%endmacro
x87_f48_op fadd
@@ -51,11 +51,11 @@ x87_f48_op fdivr
; fld is special
w3_size fld, 4, dword
ffreep
ffreep st0
w3_size fld, 8, qword
ffreep
ffreep st0
w3_size fld, 10, tword
ffreep
ffreep st0
; fst is special
fldz
@@ -97,11 +97,11 @@ x87_i24_op fidivr
; fild is special
w3_size fild, 2, word
ffreep
ffreep st0
w3_size fild, 4, dword
ffreep
ffreep st0
w3_size fild, 8, qword
ffreep
ffreep st0
; fist is special
fldz