Files
jak-project/third-party/capstone/tests/MC/X86/intel-syntax-encoding.s.yaml
Tyler Wilding bfc4c18ada goalc: replicate tests for the majority of ARM64 non-simd cases (#4377)
- Adds `capstone` as a disassembling library that could eventually
replace Zydis (for now left that alone)
- Replicates all of the existing x86 tests to ARM64, fixed a bunch of
underlying issues along the way
- There are a very small handful of tests remaining that need to be
enabled / fixed
2026-08-16 15:34:37 -04:00

263 lines
5.2 KiB
YAML
Vendored
Generated

test_cases:
-
input:
bytes: [ 0x66, 0x83, 0xf0, 0x0c ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "xor ax, 12"
-
input:
bytes: [ 0x83, 0xf0, 0x0c ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "xor eax, 12"
-
input:
bytes: [ 0x48, 0x83, 0xf0, 0x0c ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "xor rax, 12"
-
input:
bytes: [ 0x66, 0x83, 0xc8, 0x0c ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "or ax, 12"
-
input:
bytes: [ 0x83, 0xc8, 0x0c ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "or eax, 12"
-
input:
bytes: [ 0x48, 0x83, 0xc8, 0x0c ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "or rax, 12"
-
input:
bytes: [ 0x66, 0x83, 0xf8, 0x0c ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "cmp ax, 12"
-
input:
bytes: [ 0x83, 0xf8, 0x0c ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "cmp eax, 12"
-
input:
bytes: [ 0x48, 0x83, 0xf8, 0x0c ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "cmp rax, 12"
-
input:
bytes: [ 0x48, 0x89, 0x44, 0x24, 0xf0 ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "mov qword ptr [rsp - 16], rax"
-
input:
bytes: [ 0x66, 0x83, 0xc0, 0xf4 ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "add ax, -12"
-
input:
bytes: [ 0x83, 0xc0, 0xf4 ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "add eax, -12"
-
input:
bytes: [ 0x48, 0x83, 0xc0, 0xf4 ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "add rax, -12"
-
input:
bytes: [ 0x66, 0x83, 0xd0, 0xf4 ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "adc ax, -12"
-
input:
bytes: [ 0x83, 0xd0, 0xf4 ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "adc eax, -12"
-
input:
bytes: [ 0x48, 0x83, 0xd0, 0xf4 ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "adc rax, -12"
-
input:
bytes: [ 0x66, 0x83, 0xd8, 0xf4 ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "sbb ax, -12"
-
input:
bytes: [ 0x83, 0xd8, 0xf4 ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "sbb eax, -12"
-
input:
bytes: [ 0x48, 0x83, 0xd8, 0xf4 ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "sbb rax, -12"
-
input:
bytes: [ 0x66, 0x83, 0xf8, 0xf4 ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "cmp ax, -12"
-
input:
bytes: [ 0x83, 0xf8, 0xf4 ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "cmp eax, -12"
-
input:
bytes: [ 0x48, 0x83, 0xf8, 0xf4 ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "cmp rax, -12"
-
input:
bytes: [ 0xf2, 0x0f, 0x10, 0x2c, 0x25, 0xf8, 0xff, 0xff, 0xff ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "movsd xmm5, qword ptr [0xfffffffffffffff8]"
-
input:
bytes: [ 0xd1, 0xe7 ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "shl edi, 1"
-
input:
bytes: [ 0x0f, 0xc2, 0xd1, 0x01 ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "cmpltps xmm2, xmm1"
-
input:
bytes: [ 0xc3 ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "ret"
-
input:
bytes: [ 0xcb ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "retf"
-
input:
bytes: [ 0xc2, 0x08, 0x00 ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "ret 8"
-
input:
bytes: [ 0xca, 0x08, 0x00 ]
arch: "CS_ARCH_X86"
options: [ "CS_MODE_64" ]
expected:
insns:
-
asm_text: "retf 8"