mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 12:00:17 +02:00
unittests/ASM: Test overlapping operands for pdep
This commit is contained in:
1 parent
71d4e2c320
commit
f718f46545
1 file changed
+43
@@ -0,0 +1,43 @@
|
||||
%ifdef CONFIG
|
||||
{
|
||||
"RegData": {
|
||||
"RBX": "0xAAAAAAAAAAAAAAAA",
|
||||
"RBX": "0x4444444444444444",
|
||||
"RCX": "0x4444444444444444",
|
||||
"RDX": "0x5555555555555555",
|
||||
"R8": "0x0303030303030303",
|
||||
"RSI": "0x3333333333333333",
|
||||
"R8": "0x0303030303030303"
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
|
||||
; dest and mask overlap
|
||||
mov rax, 0xAAAAAAAAAAAAAAAA
|
||||
mov rbx, 0x5555555555555555
|
||||
|
||||
pdep rbx, rax, rbx
|
||||
|
||||
|
||||
; dest and input overlap
|
||||
mov rcx, 0xAAAAAAAAAAAAAAAA
|
||||
mov rdx, 0x5555555555555555
|
||||
|
||||
pdep rcx, rcx, rdx
|
||||
|
||||
|
||||
; input and mask overlap
|
||||
mov rdi, 0xDEADBEEFCAFEBABE
|
||||
mov rsi, 0x3333333333333333
|
||||
|
||||
pdep rdi, rsi, rsi
|
||||
|
||||
|
||||
; dest, input, mask overlap
|
||||
mov r8, 0x3333333333333333
|
||||
|
||||
pdep r8, r8, r8
|
||||
|
||||
|
||||
hlt
|
||||
Reference in new issue
Block a user