Merge commit '802798ce3c8baa4697120580f87bc1ee377306d3' as 'external/capstone'

This commit is contained in:
2026-05-11 11:55:07 +02:00
3968 changed files with 2967598 additions and 0 deletions
+600
View File
@@ -0,0 +1,600 @@
test_cases:
-
input:
bytes: [ 0x00, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pldl1keep, p0, [x0]"
-
input:
bytes: [ 0x00, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pldl1keep, p0, [x0]"
-
input:
bytes: [ 0x01, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pldl1strm, p0, [x0]"
-
input:
bytes: [ 0x01, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pldl1strm, p0, [x0]"
-
input:
bytes: [ 0x02, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pldl2keep, p0, [x0]"
-
input:
bytes: [ 0x02, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pldl2keep, p0, [x0]"
-
input:
bytes: [ 0x03, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pldl2strm, p0, [x0]"
-
input:
bytes: [ 0x03, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pldl2strm, p0, [x0]"
-
input:
bytes: [ 0x04, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pldl3keep, p0, [x0]"
-
input:
bytes: [ 0x04, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pldl3keep, p0, [x0]"
-
input:
bytes: [ 0x05, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pldl3strm, p0, [x0]"
-
input:
bytes: [ 0x05, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pldl3strm, p0, [x0]"
-
input:
bytes: [ 0x06, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw #6, p0, [x0]"
-
input:
bytes: [ 0x07, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw #7, p0, [x0]"
-
input:
bytes: [ 0x08, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pstl1keep, p0, [x0]"
-
input:
bytes: [ 0x08, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pstl1keep, p0, [x0]"
-
input:
bytes: [ 0x09, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pstl1strm, p0, [x0]"
-
input:
bytes: [ 0x09, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pstl1strm, p0, [x0]"
-
input:
bytes: [ 0x0a, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pstl2keep, p0, [x0]"
-
input:
bytes: [ 0x0a, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pstl2keep, p0, [x0]"
-
input:
bytes: [ 0x0b, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pstl2strm, p0, [x0]"
-
input:
bytes: [ 0x0b, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pstl2strm, p0, [x0]"
-
input:
bytes: [ 0x0c, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pstl3keep, p0, [x0]"
-
input:
bytes: [ 0x0c, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pstl3keep, p0, [x0]"
-
input:
bytes: [ 0x0d, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pstl3strm, p0, [x0]"
-
input:
bytes: [ 0x0d, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pstl3strm, p0, [x0]"
-
input:
bytes: [ 0x0e, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw #14, p0, [x0]"
-
input:
bytes: [ 0x0f, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw #15, p0, [x0]"
-
input:
bytes: [ 0x01, 0x40, 0xe0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pldl1strm, p0, [x0, #-32, mul vl]"
-
input:
bytes: [ 0x01, 0x40, 0xdf, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
expected:
insns:
-
asm_text: "prfw pldl1strm, p0, [x0, #31, mul vl]"
-
input:
bytes: [ 0x00, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pldl1keep, p0, [x0]"
-
input:
bytes: [ 0x00, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pldl1keep, p0, [x0]"
-
input:
bytes: [ 0x01, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pldl1strm, p0, [x0]"
-
input:
bytes: [ 0x01, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pldl1strm, p0, [x0]"
-
input:
bytes: [ 0x02, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pldl2keep, p0, [x0]"
-
input:
bytes: [ 0x02, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pldl2keep, p0, [x0]"
-
input:
bytes: [ 0x03, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pldl2strm, p0, [x0]"
-
input:
bytes: [ 0x03, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pldl2strm, p0, [x0]"
-
input:
bytes: [ 0x04, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pldl3keep, p0, [x0]"
-
input:
bytes: [ 0x04, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pldl3keep, p0, [x0]"
-
input:
bytes: [ 0x05, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pldl3strm, p0, [x0]"
-
input:
bytes: [ 0x05, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pldl3strm, p0, [x0]"
-
input:
bytes: [ 0x06, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw #6, p0, [x0]"
-
input:
bytes: [ 0x07, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw #7, p0, [x0]"
-
input:
bytes: [ 0x08, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pstl1keep, p0, [x0]"
-
input:
bytes: [ 0x08, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pstl1keep, p0, [x0]"
-
input:
bytes: [ 0x09, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pstl1strm, p0, [x0]"
-
input:
bytes: [ 0x09, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pstl1strm, p0, [x0]"
-
input:
bytes: [ 0x0a, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pstl2keep, p0, [x0]"
-
input:
bytes: [ 0x0a, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pstl2keep, p0, [x0]"
-
input:
bytes: [ 0x0b, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pstl2strm, p0, [x0]"
-
input:
bytes: [ 0x0b, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pstl2strm, p0, [x0]"
-
input:
bytes: [ 0x0c, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pstl3keep, p0, [x0]"
-
input:
bytes: [ 0x0c, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pstl3keep, p0, [x0]"
-
input:
bytes: [ 0x0d, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pstl3strm, p0, [x0]"
-
input:
bytes: [ 0x0d, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pstl3strm, p0, [x0]"
-
input:
bytes: [ 0x0e, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw #14, p0, [x0]"
-
input:
bytes: [ 0x0f, 0x40, 0xc0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw #15, p0, [x0]"
-
input:
bytes: [ 0x01, 0x40, 0xe0, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pldl1strm, p0, [x0, #-32, mul vl]"
-
input:
bytes: [ 0x01, 0x40, 0xdf, 0x85 ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
expected:
insns:
-
asm_text: "prfw pldl1strm, p0, [x0, #31, mul vl]"