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

81 lines
2.0 KiB
YAML

test_cases:
-
input:
bytes: [ 0x1d, 0xbb, 0xe0, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon", "+fullfp16" ]
expected:
insns:
-
asm_text: "abs d29, d24"
-
input:
bytes: [ 0x1d, 0x17, 0xd4, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon", "+fullfp16" ]
expected:
insns:
-
asm_text: "fabd h29, h24, h20"
-
input:
bytes: [ 0x1d, 0xd7, 0xb4, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon", "+fullfp16" ]
expected:
insns:
-
asm_text: "fabd s29, s24, s20"
-
input:
bytes: [ 0x1d, 0xd7, 0xf4, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon", "+fullfp16" ]
expected:
insns:
-
asm_text: "fabd d29, d24, d20"
-
input:
bytes: [ 0xd3, 0x79, 0x20, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon", "+fullfp16" ]
expected:
insns:
-
asm_text: "sqabs b19, b14"
-
input:
bytes: [ 0xf5, 0x79, 0x60, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon", "+fullfp16" ]
expected:
insns:
-
asm_text: "sqabs h21, h15"
-
input:
bytes: [ 0x94, 0x79, 0xa0, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon", "+fullfp16" ]
expected:
insns:
-
asm_text: "sqabs s20, s12"
-
input:
bytes: [ 0x92, 0x79, 0xe0, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon", "+fullfp16" ]
expected:
insns:
-
asm_text: "sqabs d18, d12"