Files
FEX-Emu--FEX/unittests/32Bit_ASM/FEX_bugs/SignExtendBug.asm
T
Ryan Houdek c00c9b397e Adds a unittest for a bug from #3421
When the source arguments for LoadMem/StoreMem have bit 31 set then they
are incorrectly sign extending in some instances.

Detected this when testing #3421 but I don't have a proper fix for it.
2024-02-26 00:07:19 -08:00

21 lines
298 B
NASM

%ifdef CONFIG
{
"RegData": {
"RAX": "0x41424344"
},
"MemoryRegions": {
"0xf0000000": "4096"
},
"MemoryData": {
"0xf0000000": "0x41424344"
},
"Mode": "32BIT"
}
%endif
; Ensures that zero extension of addresses are adhered to.
lea eax, [0xf000_0000]
mov eax, [ds:eax]
hlt