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

56 lines
1.3 KiB
YAML

test_cases:
-
input:
bytes: [ 0x91, 0x84, 0xfe, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvssran.b.h $xr17, $xr4, $xr1"
-
input:
bytes: [ 0x9c, 0x37, 0xff, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvssran.h.w $xr28, $xr28, $xr13"
-
input:
bytes: [ 0x35, 0xfc, 0xff, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvssran.w.d $xr21, $xr1, $xr31"
-
input:
bytes: [ 0x83, 0xe1, 0x06, 0x75 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvssran.bu.h $xr3, $xr12, $xr24"
-
input:
bytes: [ 0x19, 0x07, 0x07, 0x75 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvssran.hu.w $xr25, $xr24, $xr1"
-
input:
bytes: [ 0xde, 0xa9, 0x07, 0x75 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvssran.wu.d $xr30, $xr14, $xr10"