FEX/unittests/ASM/TwoByte/0F_C0_2.asm
Ryan Houdek 9e055d9ba7 Ensures xadd stores the correct result in to the destiation register
For when both source and destination is GPR
2020-09-15 13:32:24 +03:00

23 lines
234 B
NASM

%ifdef CONFIG
{
"RegData": {
"RAX": "0x02",
"RBX": "0x02",
"RCX": "0x02",
"RDX": "0x02"
}
}
%endif
mov rax, 0x01
mov rbx, 0x01
mov rcx, 0x01
mov rdx, 0x01
xadd al, al
xadd bx, bx
xadd ecx, ecx
xadd rdx, rdx
hlt