mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-01-08 22:52:51 +00:00
Unit test to ensure ASHR Sexts to the correct sizes
This commit is contained in:
parent
ceb316d97e
commit
c819afebea
31
unittests/ASM/PrimaryGroup/2_D1_07_2.asm
Normal file
31
unittests/ASM/PrimaryGroup/2_D1_07_2.asm
Normal file
@ -0,0 +1,31 @@
|
||||
%ifdef CONFIG
|
||||
{
|
||||
"RegData": {
|
||||
"RAX": "0x414141414141FFFF",
|
||||
"RBX": "0x00000000FFFFFFFF",
|
||||
"RDX": "0xFFFFFFFFFFFFFFFF",
|
||||
"RSI": "0x42424242424242FF"
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
mov rdx, 0xe0000000
|
||||
|
||||
mov rax, 0x4141414141418000
|
||||
mov rbx, 0x80000000
|
||||
mov rdx, 0x8000000000000000
|
||||
mov rsi, 0x4242424242424280
|
||||
|
||||
mov cl, 7
|
||||
sar sil, cl
|
||||
|
||||
mov cl, 15
|
||||
sar ax, cl
|
||||
|
||||
mov cl, 31
|
||||
sar ebx, cl
|
||||
|
||||
mov cl, 63
|
||||
sar rdx, cl
|
||||
|
||||
hlt
|
Loading…
Reference in New Issue
Block a user