XenonRecomp/thirdparty/capstone/tests/MC/AArch64/neon-scalar-saturating-add-sub.s.yaml
2024-09-07 18:15:29 +06:00

241 lines
5.7 KiB
YAML

test_cases:
-
input:
bytes: [ 0x20, 0x0c, 0x22, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "sqadd b0, b1, b2"
-
input:
bytes: [ 0x6a, 0x0d, 0x6c, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "sqadd h10, h11, h12"
-
input:
bytes: [ 0xb4, 0x0e, 0xa2, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "sqadd s20, s21, s2"
-
input:
bytes: [ 0xf1, 0x0f, 0xe8, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "sqadd d17, d31, d8"
-
input:
bytes: [ 0x20, 0x0c, 0x22, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "uqadd b0, b1, b2"
-
input:
bytes: [ 0x6a, 0x0d, 0x6c, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "uqadd h10, h11, h12"
-
input:
bytes: [ 0xb4, 0x0e, 0xa2, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "uqadd s20, s21, s2"
-
input:
bytes: [ 0xf1, 0x0f, 0xe8, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "uqadd d17, d31, d8"
-
input:
bytes: [ 0x20, 0x2c, 0x22, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "sqsub b0, b1, b2"
-
input:
bytes: [ 0x6a, 0x2d, 0x6c, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "sqsub h10, h11, h12"
-
input:
bytes: [ 0xb4, 0x2e, 0xa2, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "sqsub s20, s21, s2"
-
input:
bytes: [ 0xf1, 0x2f, 0xe8, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "sqsub d17, d31, d8"
-
input:
bytes: [ 0x20, 0x2c, 0x22, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "uqsub b0, b1, b2"
-
input:
bytes: [ 0x6a, 0x2d, 0x6c, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "uqsub h10, h11, h12"
-
input:
bytes: [ 0xb4, 0x2e, 0xa2, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "uqsub s20, s21, s2"
-
input:
bytes: [ 0xf1, 0x2f, 0xe8, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "uqsub d17, d31, d8"
-
input:
bytes: [ 0xd3, 0x39, 0x20, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "suqadd b19, b14"
-
input:
bytes: [ 0xf4, 0x39, 0x60, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "suqadd h20, h15"
-
input:
bytes: [ 0x95, 0x39, 0xa0, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "suqadd s21, s12"
-
input:
bytes: [ 0xd2, 0x3a, 0xe0, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "suqadd d18, d22"
-
input:
bytes: [ 0xd3, 0x39, 0x20, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "usqadd b19, b14"
-
input:
bytes: [ 0xf4, 0x39, 0x60, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "usqadd h20, h15"
-
input:
bytes: [ 0x95, 0x39, 0xa0, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "usqadd s21, s12"
-
input:
bytes: [ 0xd2, 0x3a, 0xe0, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "usqadd d18, d22"