146 lines
3.4 KiB
YAML
Raw Normal View History

2024-09-07 18:00:09 +06:00
test_cases:
-
input:
bytes: [ 0xd8, 0x77, 0x02, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsle.b $xr24, $xr30, $xr29"
-
input:
bytes: [ 0xb7, 0xd1, 0x02, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsle.h $xr23, $xr13, $xr20"
-
input:
bytes: [ 0xea, 0x63, 0x03, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsle.w $xr10, $xr31, $xr24"
-
input:
bytes: [ 0x4d, 0xa3, 0x03, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsle.d $xr13, $xr26, $xr8"
-
input:
bytes: [ 0x6e, 0x59, 0x82, 0x76 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvslei.b $xr14, $xr11, -0xa"
-
input:
bytes: [ 0xc2, 0xbe, 0x82, 0x76 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvslei.h $xr2, $xr22, 0xf"
-
input:
bytes: [ 0xc3, 0x31, 0x83, 0x76 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvslei.w $xr3, $xr14, 0xc"
-
input:
bytes: [ 0xd3, 0xab, 0x83, 0x76 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvslei.d $xr19, $xr30, 0xa"
-
input:
bytes: [ 0x69, 0x0b, 0x04, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsle.bu $xr9, $xr27, $xr2"
-
input:
bytes: [ 0x3d, 0xdb, 0x04, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsle.hu $xr29, $xr25, $xr22"
-
input:
bytes: [ 0x30, 0x3b, 0x05, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsle.wu $xr16, $xr25, $xr14"
-
input:
bytes: [ 0xc5, 0xc8, 0x05, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsle.du $xr5, $xr6, $xr18"
-
input:
bytes: [ 0x51, 0x2b, 0x84, 0x76 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvslei.bu $xr17, $xr26, 0xa"
-
input:
bytes: [ 0x74, 0xc9, 0x84, 0x76 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvslei.hu $xr20, $xr11, 0x12"
-
input:
bytes: [ 0xa1, 0x2b, 0x85, 0x76 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvslei.wu $xr1, $xr29, 0xa"
-
input:
bytes: [ 0xf9, 0xe3, 0x85, 0x76 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvslei.du $xr25, $xr31, 0x18"