2024-09-07 18:15:29 +06:00

146 lines
3.4 KiB
YAML

test_cases:
-
input:
bytes: [ 0x3d, 0x70, 0x20, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsubwev.h.b $xr29, $xr1, $xr28"
-
input:
bytes: [ 0x98, 0xfe, 0x20, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsubwev.w.h $xr24, $xr20, $xr31"
-
input:
bytes: [ 0x86, 0x2c, 0x21, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsubwev.d.w $xr6, $xr4, $xr11"
-
input:
bytes: [ 0xfb, 0xb7, 0x21, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsubwev.q.d $xr27, $xr31, $xr13"
-
input:
bytes: [ 0x81, 0x0a, 0x30, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsubwev.h.bu $xr1, $xr20, $xr2"
-
input:
bytes: [ 0xd3, 0xb0, 0x30, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsubwev.w.hu $xr19, $xr6, $xr12"
-
input:
bytes: [ 0x3f, 0x5c, 0x31, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsubwev.d.wu $xr31, $xr1, $xr23"
-
input:
bytes: [ 0x9f, 0xc7, 0x31, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsubwev.q.du $xr31, $xr28, $xr17"
-
input:
bytes: [ 0x23, 0x45, 0x24, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsubwod.h.b $xr3, $xr9, $xr17"
-
input:
bytes: [ 0xae, 0xd4, 0x24, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsubwod.w.h $xr14, $xr5, $xr21"
-
input:
bytes: [ 0xc8, 0x0d, 0x25, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsubwod.d.w $xr8, $xr14, $xr3"
-
input:
bytes: [ 0xf8, 0xc9, 0x25, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsubwod.q.d $xr24, $xr15, $xr18"
-
input:
bytes: [ 0x5b, 0x04, 0x34, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsubwod.h.bu $xr27, $xr2, $xr1"
-
input:
bytes: [ 0xf3, 0xd8, 0x34, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsubwod.w.hu $xr19, $xr7, $xr22"
-
input:
bytes: [ 0x01, 0x6b, 0x35, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsubwod.d.wu $xr1, $xr24, $xr26"
-
input:
bytes: [ 0x5d, 0x9f, 0x35, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsubwod.q.du $xr29, $xr26, $xr7"