mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 08:00:15 +02:00
unittests/ASM: Test FINCSTP for tag word
This commit is contained in:
1 parent
d833f3ae67
commit
ca055cd7d5
1 file changed
+24
@@ -0,0 +1,24 @@
|
||||
%ifdef CONFIG
|
||||
{
|
||||
"RegData": {
|
||||
"RAX": "0xff"
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
mov word [rel .fxsave_data + 0], 0x037f ; FCW
|
||||
mov byte [rel .fxsave_data + 4], 0xff ; FTW
|
||||
|
||||
; FSW = 0
|
||||
fxrstor [rel .fxsave_data]
|
||||
|
||||
fincstp
|
||||
|
||||
fxsave [rel .fxsave_data]
|
||||
movzx rax, byte [rel .fxsave_data + 4] ; FTW
|
||||
|
||||
hlt
|
||||
|
||||
align 4096
|
||||
.fxsave_data:
|
||||
times 64 dq 0
|
||||
Reference in new issue
Block a user