XenonRecomp/thirdparty/capstone/tests/MC/ARM/arm_instructions.s.yaml
2024-09-08 17:16:32 +06:00

53 lines
1.7 KiB
YAML

test_cases:
-
input:
bytes: [ 0x03, 0x10, 0x02, 0xe0, 0x03, 0x10, 0x12, 0xe0, 0x03, 0x10, 0x22, 0xe0, 0x03, 0x10, 0x32, 0xe0, 0x03, 0x10, 0x42, 0xe0, 0x03, 0x10, 0x52, 0xe0, 0x03, 0x10, 0x82, 0xe0, 0x03, 0x10, 0x92, 0xe0, 0x03, 0x10, 0xa2, 0xe0, 0x03, 0x10, 0xc2, 0xe1, 0x03, 0x10, 0xd2, 0xe1, 0x02, 0x10, 0xa0, 0xe1, 0x02, 0x10, 0xe0, 0xe1, 0x02, 0x10, 0xf0, 0xe1, 0x90, 0x02, 0xcb, 0xe7, 0x7a, 0x00, 0x20, 0xe1, 0x81, 0x17, 0x11, 0xee, 0x81, 0x17, 0x11, 0xfe, 0x13, 0x14, 0x82, 0xe0, 0x30, 0x0f, 0xa6, 0xe6, 0x00, 0x00, 0x0a, 0xf1, 0xb0, 0x30, 0x42, 0xe1 ]
arch: "CS_ARCH_ARM"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "CS_MODE_ARM" ]
expected:
insns:
-
asm_text: "and r1, r2, r3"
-
asm_text: "ands r1, r2, r3"
-
asm_text: "eor r1, r2, r3"
-
asm_text: "eors r1, r2, r3"
-
asm_text: "sub r1, r2, r3"
-
asm_text: "subs r1, r2, r3"
-
asm_text: "add r1, r2, r3"
-
asm_text: "adds r1, r2, r3"
-
asm_text: "adc r1, r2, r3"
-
asm_text: "bic r1, r2, r3"
-
asm_text: "bics r1, r2, r3"
-
asm_text: "mov r1, r2"
-
asm_text: "mvn r1, r2"
-
asm_text: "mvns r1, r2"
-
asm_text: "bfi r0, r0, #5, #7"
-
asm_text: "bkpt #0xa"
-
asm_text: "cdp p7, #1, c1, c1, c1, #4"
-
asm_text: "cdp2 p7, #1, c1, c1, c1, #4"
-
asm_text: "add r1, r2, r3, lsl r4"
-
asm_text: "ssat16 r0, #7, r0"
-
asm_text: "cpsie none, #0"
-
asm_text: "strh r3, [r2, #-0]"