unittests/ASM: Test FINCSTP for tag word

This commit is contained in:
Simon Scherer committed 2026-09-03 08:05:40 +02:00
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