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

193 lines
5.6 KiB
YAML

test_cases:
-
input:
bytes: [ 0x00, 0xe4, 0xff, 0xe3, 0xff, 0xf7, 0x00, 0xbc, 0x00, 0xf0, 0xff, 0xbb, 0x66, 0xf6, 0x30, 0xbc, 0x99, 0xf1, 0xcf, 0xbb, 0x00, 0xe4, 0xff, 0xe3, 0xff, 0xf7, 0xff, 0xbb, 0x00, 0xf0, 0x00, 0xbc, 0x66, 0xf6, 0x30, 0xbc, 0x99, 0xf1, 0xcf, 0xbb, 0x08, 0xbf, 0x00, 0xe4, 0x18, 0xbf, 0x01, 0xe4, 0xc8, 0xbf, 0xff, 0xf7, 0x00, 0xbc, 0xd8, 0xbf, 0x00, 0xf0, 0xff, 0xbb, 0xa8, 0xbf, 0x66, 0xf6, 0x30, 0xbc, 0xb8, 0xbf, 0x99, 0xf1, 0xcf, 0xbb, 0x80, 0xd0, 0x7f, 0xd1, 0x00, 0xf0, 0x80, 0xf8, 0x18, 0xbf, 0x00, 0xf0, 0x80, 0xf8, 0x3f, 0xf5, 0x80, 0xaf, 0x40, 0xf0, 0x7f, 0x80, 0xc0, 0xf6, 0x00, 0x80, 0xbf, 0xf2, 0xff, 0xaf, 0x80, 0xd1, 0x7f, 0xdc, 0x7f, 0xf4, 0x7f, 0xaf, 0x00, 0xf3, 0x80, 0x80, 0x40, 0xf4, 0x00, 0x80, 0x3f, 0xf3, 0xff, 0xaf, 0x08, 0xbf, 0x08, 0x44, 0x40, 0xd1, 0x0c, 0xbf, 0x08, 0x44, 0x40, 0xe0, 0x00, 0xe4, 0xff, 0xe3, 0xff, 0xf7, 0x00, 0xbc, 0x00, 0xf0, 0xff, 0xbb, 0x66, 0xf6, 0x30, 0xbc, 0x99, 0xf1, 0xcf, 0xbb, 0x00, 0xe4, 0xff, 0xe3, 0xff, 0xf7, 0xff, 0xbb, 0x00, 0xf0, 0x00, 0xbc, 0x66, 0xf6, 0x30, 0xbc, 0x99, 0xf1, 0xcf, 0xbb, 0x08, 0xbf, 0x00, 0xe4, 0x18, 0xbf, 0x01, 0xe4, 0xc8, 0xbf, 0xff, 0xf7, 0x00, 0xbc, 0xd8, 0xbf, 0x00, 0xf0, 0xff, 0xbb, 0xa8, 0xbf, 0x66, 0xf6, 0x30, 0xbc, 0xb8, 0xbf, 0x99, 0xf1, 0xcf, 0xbb, 0x80, 0xd0, 0x7f, 0xd1, 0x3f, 0xf5, 0x80, 0xaf, 0x40, 0xf0, 0x7f, 0x80, 0xc0, 0xf6, 0x00, 0x80, 0xbf, 0xf2, 0xff, 0xaf, 0x80, 0xd1, 0x7f, 0xdc, 0x7f, 0xf4, 0x7f, 0xaf, 0x00, 0xf3, 0x80, 0x80, 0x40, 0xf4, 0x00, 0x80, 0x3f, 0xf3, 0xff, 0xaf, 0x08, 0xbf, 0x08, 0x44, 0x40, 0xd1, 0x0c, 0xbf, 0x08, 0x44, 0x40, 0xe0, 0x01, 0xe0, 0x00, 0xf0, 0x01, 0xf8, 0x01, 0xd0, 0x08, 0xb1, 0x00, 0xf0, 0x02, 0xe8 ]
arch: "CS_ARCH_ARM"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "CS_MODE_THUMB" ]
expected:
insns:
-
asm_text: "b #-0x800"
-
asm_text: "b #0x7fe"
-
asm_text: "b.w #-0x800"
-
asm_text: "b.w #0x7fe"
-
asm_text: "b.w #-0x1997a0"
-
asm_text: "b.w #0x19979e"
-
asm_text: "b #-0x800"
-
asm_text: "b #0x7fe"
-
asm_text: "b.w #-0x802"
-
asm_text: "b.w #0x800"
-
asm_text: "b.w #-0x1997a0"
-
asm_text: "b.w #0x19979e"
-
asm_text: "it eq"
-
asm_text: "beq #-0x800"
-
asm_text: "it ne"
-
asm_text: "bne #-0x7fe"
-
asm_text: "it gt"
-
asm_text: "bgt.w #-0x800"
-
asm_text: "it le"
-
asm_text: "ble.w #0x7fe"
-
asm_text: "it ge"
-
asm_text: "bge.w #-0x1997a0"
-
asm_text: "it lt"
-
asm_text: "blt.w #0x19979e"
-
asm_text: "beq #-0x100"
-
asm_text: "bne #0xfe"
-
asm_text: "bl #0x100"
-
asm_text: "it ne"
-
asm_text: "blne #0x100"
-
asm_text: "bmi.w #-0x100"
-
asm_text: "bne.w #0xfe"
-
asm_text: "blt.w #-0x100000"
-
asm_text: "bge.w #0xffffe"
-
asm_text: "bne #-0x100"
-
asm_text: "bgt #0xfe"
-
asm_text: "bne.w #-0x102"
-
asm_text: "bgt.w #0x100"
-
asm_text: "bne.w #-0x100000"
-
asm_text: "bgt.w #0xffffe"
-
asm_text: "it eq"
-
asm_text: "addeq r0, r1"
-
asm_text: "bne #0x80"
-
asm_text: "ite eq"
-
asm_text: "addeq r0, r1"
-
asm_text: "bne #0x80"
-
asm_text: "b #-0x800"
-
asm_text: "b #0x7fe"
-
asm_text: "b.w #-0x800"
-
asm_text: "b.w #0x7fe"
-
asm_text: "b.w #-0x1997a0"
-
asm_text: "b.w #0x19979e"
-
asm_text: "b #-0x800"
-
asm_text: "b #0x7fe"
-
asm_text: "b.w #-0x802"
-
asm_text: "b.w #0x800"
-
asm_text: "b.w #-0x1997a0"
-
asm_text: "b.w #0x19979e"
-
asm_text: "it eq"
-
asm_text: "beq #-0x800"
-
asm_text: "it ne"
-
asm_text: "bne #-0x7fe"
-
asm_text: "it gt"
-
asm_text: "bgt.w #-0x800"
-
asm_text: "it le"
-
asm_text: "ble.w #0x7fe"
-
asm_text: "it ge"
-
asm_text: "bge.w #-0x1997a0"
-
asm_text: "it lt"
-
asm_text: "blt.w #0x19979e"
-
asm_text: "beq #-0x100"
-
asm_text: "bne #0xfe"
-
asm_text: "bmi.w #-0x100"
-
asm_text: "bne.w #0xfe"
-
asm_text: "blt.w #-0x100000"
-
asm_text: "bge.w #0xffffe"
-
asm_text: "bne #-0x100"
-
asm_text: "bgt #0xfe"
-
asm_text: "bne.w #-0x102"
-
asm_text: "bgt.w #0x100"
-
asm_text: "bne.w #-0x100000"
-
asm_text: "bgt.w #0xffffe"
-
asm_text: "it eq"
-
asm_text: "addeq r0, r1"
-
asm_text: "bne #0x80"
-
asm_text: "ite eq"
-
asm_text: "addeq r0, r1"
-
asm_text: "bne #0x80"
-
asm_text: "b #2"
-
asm_text: "bl #2"
-
asm_text: "beq #2"
-
asm_text: "cbz r0, #2"
-
asm_text: "blx #4"