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

74 lines
1.7 KiB
YAML

test_cases:
-
input:
bytes: [ 0x4b, 0x00, 0xec, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsra.b $xr11, $xr2, $xr0"
-
input:
bytes: [ 0x71, 0x9b, 0xec, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsra.h $xr17, $xr27, $xr6"
-
input:
bytes: [ 0x8d, 0x31, 0xed, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsra.w $xr13, $xr12, $xr12"
-
input:
bytes: [ 0xe6, 0x85, 0xed, 0x74 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsra.d $xr6, $xr15, $xr1"
-
input:
bytes: [ 0x50, 0x2c, 0x34, 0x77 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsrai.b $xr16, $xr2, 3"
-
input:
bytes: [ 0x6e, 0x70, 0x34, 0x77 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsrai.h $xr14, $xr3, 0xc"
-
input:
bytes: [ 0x51, 0xd6, 0x34, 0x77 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsrai.w $xr17, $xr18, 0x15"
-
input:
bytes: [ 0x8a, 0x12, 0x35, 0x77 ]
arch: "CS_ARCH_LOONGARCH"
options: [ "CS_MODE_LOONGARCH64" ]
expected:
insns:
-
asm_text: "xvsrai.d $xr10, $xr20, 4"