unittests/ASM: Test FST ST(0) tag word update

This commit is contained in:
Simon Scherer committed 2026-09-04 11:50:21 +02:00
1 parent a454845ffd
commit ed3fa2f1c6
1 file changed
+27
@@ -0,0 +1,27 @@
%ifdef CONFIG
{
"RegData": {
"RAX": "0x1"
}
}
%endif
fxrstor [rel .fxsave_data]
fst st0
fxsave [rel .save]
movzx eax, byte [rel .save + 4]
hlt
align 16
.fxsave_data:
dw 0x037f ; FCW
dw 0x0000 ; FSW
dw 0x0000 ; FTW
times 506 db 0
align 16
.save:
times 64 dq 0