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

111 lines
2.6 KiB
YAML

test_cases:
-
input:
bytes: [ 0xb4, 0x8e, 0xf6, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "cmeq d20, d21, d22"
-
input:
bytes: [ 0xb4, 0x9a, 0xe0, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "cmeq d20, d21, #0"
-
input:
bytes: [ 0xb4, 0x3e, 0xf6, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "cmhs d20, d21, d22"
-
input:
bytes: [ 0xb4, 0x3e, 0xf6, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "cmge d20, d21, d22"
-
input:
bytes: [ 0xb4, 0x8a, 0xe0, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "cmge d20, d21, #0"
-
input:
bytes: [ 0xb4, 0x36, 0xf6, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "cmhi d20, d21, d22"
-
input:
bytes: [ 0xb4, 0x36, 0xf6, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "cmgt d20, d21, d22"
-
input:
bytes: [ 0xb4, 0x8a, 0xe0, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "cmgt d20, d21, #0"
-
input:
bytes: [ 0xb4, 0x9a, 0xe0, 0x7e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "cmle d20, d21, #0"
-
input:
bytes: [ 0xb4, 0xaa, 0xe0, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "cmlt d20, d21, #0"
-
input:
bytes: [ 0xb4, 0x8e, 0xf6, 0x5e ]
arch: "CS_ARCH_AARCH64"
options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64-none-linux-gnu", "neon" ]
expected:
insns:
-
asm_text: "cmtst d20, d21, d22"