mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-07-26 06:53:56 +00:00
Initial Commit
This commit is contained in:
73
thirdparty/capstone/tests/MC/LoongArch/absd.s.yaml
vendored
Normal file
73
thirdparty/capstone/tests/MC/LoongArch/absd.s.yaml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x36, 0x44, 0x60, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvabsd.b $xr22, $xr1, $xr17"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x11, 0xa7, 0x60, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvabsd.h $xr17, $xr24, $xr9"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3c, 0x75, 0x61, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvabsd.w $xr28, $xr9, $xr29"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xfe, 0xce, 0x61, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvabsd.d $xr30, $xr23, $xr19"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x90, 0x3c, 0x62, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvabsd.bu $xr16, $xr4, $xr15"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xed, 0xee, 0x62, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvabsd.hu $xr13, $xr23, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x5f, 0x3e, 0x63, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvabsd.wu $xr31, $xr18, $xr15"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x5a, 0x91, 0x63, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvabsd.du $xr26, $xr10, $xr4"
|
46
thirdparty/capstone/tests/MC/LoongArch/add.s.yaml
vendored
Normal file
46
thirdparty/capstone/tests/MC/LoongArch/add.s.yaml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x74, 0x16, 0x0a, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvadd.b $xr20, $xr19, $xr5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf8, 0xb8, 0x0a, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvadd.h $xr24, $xr7, $xr14"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x33, 0x54, 0x0b, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvadd.w $xr19, $xr1, $xr21"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd3, 0xb4, 0x0b, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvadd.d $xr19, $xr6, $xr13"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x84, 0x1b, 0x2d, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvadd.q $xr4, $xr28, $xr6"
|
37
thirdparty/capstone/tests/MC/LoongArch/adda.s.yaml
vendored
Normal file
37
thirdparty/capstone/tests/MC/LoongArch/adda.s.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x0a, 0x6f, 0x5c, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvadda.b $xr10, $xr24, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x80, 0xf7, 0x5c, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvadda.h $xr0, $xr28, $xr29"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3f, 0x25, 0x5d, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvadda.w $xr31, $xr9, $xr9"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x2a, 0xe4, 0x5d, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvadda.d $xr10, $xr1, $xr25"
|
37
thirdparty/capstone/tests/MC/LoongArch/addi.s.yaml
vendored
Normal file
37
thirdparty/capstone/tests/MC/LoongArch/addi.s.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc1, 0x0a, 0x8a, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddi.bu $xr1, $xr22, 2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x43, 0xf5, 0x8a, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddi.hu $xr3, $xr10, 0x1d"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x65, 0x0d, 0x8b, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddi.wu $xr5, $xr11, 3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x06, 0x9c, 0x8b, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddi.du $xr6, $xr0, 7"
|
217
thirdparty/capstone/tests/MC/LoongArch/addw.s.yaml
vendored
Normal file
217
thirdparty/capstone/tests/MC/LoongArch/addw.s.yaml
vendored
Normal file
@@ -0,0 +1,217 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd7, 0x13, 0x1e, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwev.h.b $xr23, $xr30, $xr4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x74, 0xfe, 0x1e, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwev.w.h $xr20, $xr19, $xr31"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x28, 0x65, 0x1f, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwev.d.w $xr8, $xr9, $xr25"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xdd, 0xf6, 0x1f, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwev.q.d $xr29, $xr22, $xr29"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbe, 0x69, 0x2e, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwev.h.bu $xr30, $xr13, $xr26"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xef, 0xc3, 0x2e, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwev.w.hu $xr15, $xr31, $xr16"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x10, 0x52, 0x2f, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwev.d.wu $xr16, $xr16, $xr20"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x4a, 0xca, 0x2f, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwev.q.du $xr10, $xr18, $xr18"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe3, 0x24, 0x3e, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwev.h.bu.b $xr3, $xr7, $xr9"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x1a, 0xee, 0x3e, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwev.w.hu.h $xr26, $xr16, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa0, 0x21, 0x3f, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwev.d.wu.w $xr0, $xr13, $xr8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x53, 0x8d, 0x3f, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwev.q.du.d $xr19, $xr10, $xr3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xae, 0x62, 0x22, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwod.h.b $xr14, $xr21, $xr24"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x53, 0xdf, 0x22, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwod.w.h $xr19, $xr26, $xr23"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x2c, 0x51, 0x23, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwod.d.w $xr12, $xr9, $xr20"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x4b, 0xa0, 0x23, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwod.q.d $xr11, $xr2, $xr8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc6, 0x24, 0x32, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwod.h.bu $xr6, $xr6, $xr9"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x61, 0xe7, 0x32, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwod.w.hu $xr1, $xr27, $xr25"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x7a, 0x2e, 0x33, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwod.d.wu $xr26, $xr19, $xr11"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd5, 0xa2, 0x33, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwod.q.du $xr21, $xr22, $xr8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x55, 0x63, 0x40, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwod.h.bu.b $xr21, $xr26, $xr24"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xdf, 0xc0, 0x40, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwod.w.hu.h $xr31, $xr6, $xr16"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x8c, 0x7f, 0x41, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwod.d.wu.w $xr12, $xr28, $xr31"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x9d, 0xb0, 0x41, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvaddwod.q.du.d $xr29, $xr4, $xr12"
|
10
thirdparty/capstone/tests/MC/LoongArch/and.s.yaml
vendored
Normal file
10
thirdparty/capstone/tests/MC/LoongArch/and.s.yaml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xee, 0x4e, 0x26, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvand.v $xr14, $xr23, $xr19"
|
10
thirdparty/capstone/tests/MC/LoongArch/andi.s.yaml
vendored
Normal file
10
thirdparty/capstone/tests/MC/LoongArch/andi.s.yaml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xeb, 0x08, 0xd1, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvandi.b $xr11, $xr7, 0x42"
|
10
thirdparty/capstone/tests/MC/LoongArch/andn.s.yaml
vendored
Normal file
10
thirdparty/capstone/tests/MC/LoongArch/andn.s.yaml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe3, 0x0d, 0x28, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvandn.v $xr3, $xr15, $xr3"
|
262
thirdparty/capstone/tests/MC/LoongArch/arith.s.yaml
vendored
Normal file
262
thirdparty/capstone/tests/MC/LoongArch/arith.s.yaml
vendored
Normal file
@@ -0,0 +1,262 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x29, 0x7c, 0x10, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "add.w $a5, $ra, $s8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x35, 0x4f, 0x11, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "sub.w $r21, $s2, $t7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe5, 0xd8, 0x83, 0x02 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "addi.w $a1, $a3, 0xf6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x22, 0x8a, 0x05, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "alsl.w $tp, $t5, $tp, 4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x30, 0x06, 0x00, 0x14 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "lu12i.w $t4, 0x31"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe4, 0xff, 0xff, 0x15 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "lu12i.w $a0, -1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x5d, 0x0b, 0x12, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "slt $s6, $s3, $tp"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xab, 0xf6, 0x12, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "sltu $a7, $r21, $s6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3b, 0xac, 0x03, 0x02 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "slti $s4, $ra, 0xeb"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x89, 0x42, 0x02 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "sltui $zero, $a4, 0xa2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x69, 0x17, 0x00, 0x18 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "pcaddi $a5, 0xbb"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa0, 0x04, 0x00, 0x1c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "pcaddu12i $zero, 0x25"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x2a, 0x0b, 0x00, 0x1a ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "pcalau12i $a6, 0x59"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf3, 0x87, 0x14, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "and $t7, $s8, $ra"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x11, 0x7a, 0x15, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "or $t5, $t4, $s7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x45, 0x16, 0x14, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "nor $a1, $t6, $a1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x6f, 0xa2, 0x15, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xor $t3, $t7, $a4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3c, 0x97, 0x16, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "andn $s5, $s2, $a1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x62, 0x64, 0x16, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "orn $tp, $sp, $s2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x19, 0xa8, 0x41, 0x03 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "andi $s2, $zero, 0x6a"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb1, 0xbc, 0x80, 0x03 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ori $t5, $a1, 0x2f"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf2, 0x8e, 0xc1, 0x03 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xori $t6, $s0, 0x63"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x44, 0x0e, 0x1c, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "mul.w $a0, $t6, $sp"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xfb, 0x82, 0x1c, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "mulh.w $s4, $s0, $zero"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x2a, 0x62, 0x1d, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "mulh.wu $a6, $t5, $s1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbe, 0x65, 0x20, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "div.w $s7, $t1, $s2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x41, 0xab, 0x20, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "mod.w $ra, $s3, $a6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf3, 0x02, 0x21, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "div.wu $t7, $s0, $zero"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3b, 0xc5, 0x21, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "mod.wu $s4, $a5, $t5"
|
73
thirdparty/capstone/tests/MC/LoongArch/arm-alu.s.yaml
vendored
Normal file
73
thirdparty/capstone/tests/MC/LoongArch/arm-alu.s.yaml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x91, 0x14, 0x37, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armadd.w $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x91, 0x94, 0x37, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armsub.w $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x91, 0x14, 0x38, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armadc.w $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x91, 0x94, 0x38, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armsbc.w $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x91, 0x14, 0x39, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armand.w $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x91, 0x94, 0x39, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armor.w $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x91, 0x14, 0x3a, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armxor.w $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x9c, 0xc4, 0x3f, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armnot.w $a0, 1"
|
10
thirdparty/capstone/tests/MC/LoongArch/arm-jump.s.yaml
vendored
Normal file
10
thirdparty/capstone/tests/MC/LoongArch/arm-jump.s.yaml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x04, 0xc4, 0x36, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "setarmj $a0, 1"
|
46
thirdparty/capstone/tests/MC/LoongArch/arm-mov.s.yaml
vendored
Normal file
46
thirdparty/capstone/tests/MC/LoongArch/arm-mov.s.yaml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x44, 0x36, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armmove $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x9d, 0xc4, 0x3f, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armmov.w $a0, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x9e, 0xc4, 0x3f, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armmov.d $a0, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x44, 0x04, 0x5c, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armmfflag $a0, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x64, 0x04, 0x5c, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armmtflag $a0, 1"
|
82
thirdparty/capstone/tests/MC/LoongArch/arm-shift.s.yaml
vendored
Normal file
82
thirdparty/capstone/tests/MC/LoongArch/arm-shift.s.yaml
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x91, 0x94, 0x3a, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armsll.w $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x91, 0x14, 0x3b, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armsrl.w $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x91, 0x94, 0x3b, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armsra.w $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x91, 0x14, 0x3c, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armrotr.w $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x91, 0x84, 0x3c, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armslli.w $a0, 1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x91, 0x04, 0x3d, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armsrli.w $a0, 1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x91, 0x84, 0x3d, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armsrai.w $a0, 1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x91, 0x04, 0x3e, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armrotri.w $a0, 1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x9f, 0xc4, 0x3f, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "armrrx.w $a0, 1"
|
37
thirdparty/capstone/tests/MC/LoongArch/atomic.s.yaml
vendored
Normal file
37
thirdparty/capstone/tests/MC/LoongArch/atomic.s.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x62, 0xdf, 0x00, 0x20 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ll.w $tp, $s4, 0xdc"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd3, 0x39, 0x00, 0x21 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "sc.w $t7, $t2, 0x38"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xcd, 0x81, 0x57, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "llacq.w $t1, $t2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xcd, 0x85, 0x57, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "screl.w $t1, $t2"
|
73
thirdparty/capstone/tests/MC/LoongArch/avg.s.yaml
vendored
Normal file
73
thirdparty/capstone/tests/MC/LoongArch/avg.s.yaml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc5, 0x57, 0x64, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvavg.b $xr5, $xr30, $xr21"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x32, 0xd6, 0x64, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvavg.h $xr18, $xr17, $xr21"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe3, 0x52, 0x65, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvavg.w $xr3, $xr23, $xr20"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x1b, 0xec, 0x65, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvavg.d $xr27, $xr0, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x8b, 0x40, 0x66, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvavg.bu $xr11, $xr4, $xr16"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x22, 0xcc, 0x66, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvavg.hu $xr2, $xr1, $xr19"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x9b, 0x6e, 0x67, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvavg.wu $xr27, $xr20, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x97, 0xf6, 0x67, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvavg.du $xr23, $xr20, $xr29"
|
73
thirdparty/capstone/tests/MC/LoongArch/avgr.s.yaml
vendored
Normal file
73
thirdparty/capstone/tests/MC/LoongArch/avgr.s.yaml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xfd, 0x1d, 0x68, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvavgr.b $xr29, $xr15, $xr7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x40, 0xbf, 0x68, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvavgr.h $xr0, $xr26, $xr15"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x17, 0x00, 0x69, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvavgr.w $xr23, $xr0, $xr0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xfd, 0x82, 0x69, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvavgr.d $xr29, $xr23, $xr0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x56, 0x64, 0x6a, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvavgr.bu $xr22, $xr2, $xr25"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x59, 0xd5, 0x6a, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvavgr.hu $xr25, $xr10, $xr21"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd1, 0x0d, 0x6b, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvavgr.wu $xr17, $xr14, $xr3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x62, 0xb5, 0x6b, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvavgr.du $xr2, $xr11, $xr13"
|
19
thirdparty/capstone/tests/MC/LoongArch/barrier.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/barrier.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x00, 0x72, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "dbar 0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x80, 0x72, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ibar 0"
|
298
thirdparty/capstone/tests/MC/LoongArch/base.s.yaml
vendored
Normal file
298
thirdparty/capstone/tests/MC/LoongArch/base.s.yaml
vendored
Normal file
@@ -0,0 +1,298 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x04, 0x29, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "addu12i.w $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x84, 0x29, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "addu12i.d $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x18, 0x30, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "adc.b $a0, $a1, $a2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x98, 0x30, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "adc.h $a0, $a1, $a2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x18, 0x31, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "adc.w $a0, $a1, $a2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x98, 0x31, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "adc.d $a0, $a1, $a2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x18, 0x32, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "sbc.b $a0, $a1, $a2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x98, 0x32, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "sbc.h $a0, $a1, $a2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x18, 0x33, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "sbc.w $a0, $a1, $a2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x98, 0x33, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "sbc.d $a0, $a1, $a2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x18, 0x1a, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "rotr.b $a0, $a1, $a2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x98, 0x1a, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "rotr.h $a0, $a1, $a2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x24, 0x4c, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "rotri.b $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x44, 0x4c, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "rotri.h $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x18, 0x34, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "rcr.b $a0, $a1, $a2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x98, 0x34, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "rcr.h $a0, $a1, $a2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x18, 0x35, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "rcr.w $a0, $a1, $a2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x98, 0x35, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "rcr.d $a0, $a1, $a2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x24, 0x50, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "rcri.b $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x44, 0x50, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "rcri.h $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x84, 0x50, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "rcri.w $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x04, 0x51, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "rcri.d $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x20, 0xe4, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcvt.ud.d $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x20, 0xe0, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcvt.ld.d $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x20, 0x08, 0x15, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcvt.d.ld $fa0, $fa1, $fa2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x04, 0x80, 0x2e ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ldl.d $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x04, 0x00, 0x2e ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ldl.w $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x04, 0x40, 0x2e ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ldr.w $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x04, 0xc0, 0x2e ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ldr.d $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x04, 0x00, 0x2f ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "stl.w $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x04, 0x80, 0x2f ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "stl.d $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x04, 0x40, 0x2f ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "str.w $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x04, 0xc0, 0x2f ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "str.d $a0, $a1, 1"
|
109
thirdparty/capstone/tests/MC/LoongArch/bit-manipu.s.yaml
vendored
Normal file
109
thirdparty/capstone/tests/MC/LoongArch/bit-manipu.s.yaml
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x61, 0x10, 0x00, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "clo.w $ra, $sp"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x47, 0x15, 0x00, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "clz.w $a3, $a6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc2, 0x18, 0x00, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "cto.w $tp, $a2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc5, 0x1e, 0x00, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ctz.w $a1, $fp"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x1d, 0x40, 0x08, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "bytepick.w $s6, $zero, $t4, 0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x74, 0x31, 0x00, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "revb.2h $t8, $a7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x75, 0x4b, 0x00, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "bitrev.4b $r21, $s4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb9, 0x50, 0x00, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "bitrev.w $s2, $a1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x68, 0x09, 0x67, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "bstrins.w $a4, $a7, 7, 2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x21, 0x91, 0x6a, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "bstrpick.w $ra, $a5, 0xa, 4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x74, 0x49, 0x13, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "maskeqz $t8, $a7, $t6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb4, 0xe9, 0x13, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "masknez $t8, $t1, $s3"
|
73
thirdparty/capstone/tests/MC/LoongArch/bit-shift.s.yaml
vendored
Normal file
73
thirdparty/capstone/tests/MC/LoongArch/bit-shift.s.yaml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x78, 0x5f, 0x17, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "sll.w $s1, $s4, $s0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3f, 0x9e, 0x17, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "srl.w $s8, $t5, $a3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x8c, 0x2b, 0x18, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "sra.w $t0, $s5, $a6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x41, 0x4b, 0x1b, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "rotr.w $ra, $s3, $t6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x5a, 0x82, 0x40, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "slli.w $s3, $t6, 0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xca, 0xf9, 0x44, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "srli.w $a6, $t2, 0x1e"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x28, 0xe2, 0x48, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "srai.w $a4, $t5, 0x18"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x97, 0xde, 0x4c, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "rotri.w $s0, $t8, 0x17"
|
73
thirdparty/capstone/tests/MC/LoongArch/bitclr.s.yaml
vendored
Normal file
73
thirdparty/capstone/tests/MC/LoongArch/bitclr.s.yaml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb8, 0x38, 0x0c, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitclr.b $xr24, $xr5, $xr14"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3e, 0xb5, 0x0c, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitclr.h $xr30, $xr9, $xr13"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x62, 0x1c, 0x0d, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitclr.w $xr2, $xr3, $xr7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xae, 0xe4, 0x0d, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitclr.d $xr14, $xr5, $xr25"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x56, 0x3f, 0x10, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitclri.b $xr22, $xr26, 7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc2, 0x75, 0x10, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitclri.h $xr2, $xr14, 0xd"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x43, 0x80, 0x10, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitclri.w $xr3, $xr2, 0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x8a, 0x1d, 0x11, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitclri.d $xr10, $xr12, 7"
|
73
thirdparty/capstone/tests/MC/LoongArch/bitrev.s.yaml
vendored
Normal file
73
thirdparty/capstone/tests/MC/LoongArch/bitrev.s.yaml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x90, 0x0e, 0x10, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitrev.b $xr16, $xr20, $xr3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x70, 0xd0, 0x10, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitrev.h $xr16, $xr3, $xr20"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x58, 0x5f, 0x11, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitrev.w $xr24, $xr26, $xr23"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x2d, 0xec, 0x11, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitrev.d $xr13, $xr1, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x67, 0x35, 0x18, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitrevi.b $xr7, $xr11, 5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa1, 0x7c, 0x18, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitrevi.h $xr1, $xr5, 0xf"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xad, 0xca, 0x18, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitrevi.w $xr13, $xr21, 0x12"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x61, 0x24, 0x19, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitrevi.d $xr1, $xr3, 0x9"
|
10
thirdparty/capstone/tests/MC/LoongArch/bitsel.s.yaml
vendored
Normal file
10
thirdparty/capstone/tests/MC/LoongArch/bitsel.s.yaml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb2, 0xbf, 0x2a, 0x0d ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitsel.v $xr18, $xr29, $xr15, $xr21"
|
10
thirdparty/capstone/tests/MC/LoongArch/bitseli.s.yaml
vendored
Normal file
10
thirdparty/capstone/tests/MC/LoongArch/bitseli.s.yaml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xad, 0xe6, 0xc5, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitseli.b $xr13, $xr21, 0x79"
|
73
thirdparty/capstone/tests/MC/LoongArch/bitset.s.yaml
vendored
Normal file
73
thirdparty/capstone/tests/MC/LoongArch/bitset.s.yaml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x06, 0x72, 0x0e, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitset.b $xr6, $xr16, $xr28"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa5, 0xfd, 0x0e, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitset.h $xr5, $xr13, $xr31"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x87, 0x23, 0x0f, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitset.w $xr7, $xr28, $xr8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x04, 0xb2, 0x0f, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitset.d $xr4, $xr16, $xr12"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x7a, 0x20, 0x14, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitseti.b $xr26, $xr3, 0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x69, 0x66, 0x14, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitseti.h $xr9, $xr19, 0x9"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x6c, 0x8a, 0x14, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitseti.w $xr12, $xr19, 2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf4, 0x08, 0x15, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbitseti.d $xr20, $xr7, 2"
|
145
thirdparty/capstone/tests/MC/LoongArch/bound-check.s.yaml
vendored
Normal file
145
thirdparty/capstone/tests/MC/LoongArch/bound-check.s.yaml
vendored
Normal file
@@ -0,0 +1,145 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc6, 0x74, 0x78, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ldgt.b $a2, $a2, $s6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe5, 0x87, 0x78, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ldgt.h $a1, $s8, $ra"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x4f, 0x23, 0x79, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ldgt.w $t3, $s3, $a4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x37, 0xff, 0x79, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ldgt.d $s0, $s2, $s8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x89, 0x3d, 0x7a, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ldle.b $a5, $t0, $t3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x6b, 0xdd, 0x7a, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ldle.h $a7, $a7, $s0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x58, 0x08, 0x7b, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ldle.w $s1, $tp, $tp"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf4, 0xc1, 0x7b, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ldle.d $t8, $t3, $t4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x7b, 0x52, 0x7c, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "stgt.b $s4, $t7, $t8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x90, 0x98, 0x7c, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "stgt.h $t4, $a0, $a2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x9f, 0x3b, 0x7d, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "stgt.w $s8, $s5, $t2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbe, 0xe2, 0x7d, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "stgt.d $s7, $r21, $s1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x8a, 0x40, 0x7e, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "stle.b $a6, $a0, $t4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x31, 0xd6, 0x7e, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "stle.h $t5, $t5, $r21"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x97, 0x77, 0x7f, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "stle.w $s0, $s5, $s6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x19, 0xf7, 0x7f, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "stle.d $s2, $s1, $s6"
|
100
thirdparty/capstone/tests/MC/LoongArch/branch.s.yaml
vendored
Normal file
100
thirdparty/capstone/tests/MC/LoongArch/branch.s.yaml
vendored
Normal file
@@ -0,0 +1,100 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x47, 0xb1, 0x00, 0x58 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "beq $a6, $a3, 0xb0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x21, 0x8b, 0x00, 0x5c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "bne $s2, $ra, 0x88"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xfe, 0xa9, 0x00, 0x60 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "blt $t3, $s7, 0xa8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x8f, 0x95, 0x00, 0x64 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "bge $t0, $t3, 0x94"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x25, 0x06, 0x00, 0x68 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "bltu $t5, $a1, 4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd7, 0x8c, 0x00, 0x6c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "bgeu $a2, $s0, 0x8c"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x20, 0x61, 0x00, 0x40 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "beqz $a5, 0x60"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x60, 0xd4, 0x00, 0x44 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "bnez $sp, 0xd4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0xf8, 0x00, 0x50 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "b 0xf8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0xec, 0x00, 0x54 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "bl 0xec"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x81, 0x04, 0x00, 0x4c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "jirl $ra, $a0, 4"
|
10
thirdparty/capstone/tests/MC/LoongArch/bsll.s.yaml
vendored
Normal file
10
thirdparty/capstone/tests/MC/LoongArch/bsll.s.yaml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xae, 0x52, 0x8e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbsll.v $xr14, $xr21, 0x14"
|
10
thirdparty/capstone/tests/MC/LoongArch/bsrl.s.yaml
vendored
Normal file
10
thirdparty/capstone/tests/MC/LoongArch/bsrl.s.yaml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0xf4, 0x8e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvbsrl.v $xr4, $xr5, 0x1d"
|
37
thirdparty/capstone/tests/MC/LoongArch/clo.s.yaml
vendored
Normal file
37
thirdparty/capstone/tests/MC/LoongArch/clo.s.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x89, 0x01, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvclo.b $xr9, $xr12"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd0, 0x05, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvclo.h $xr16, $xr14"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x5e, 0x0a, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvclo.w $xr30, $xr18"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbf, 0x0c, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvclo.d $xr31, $xr5"
|
37
thirdparty/capstone/tests/MC/LoongArch/clz.s.yaml
vendored
Normal file
37
thirdparty/capstone/tests/MC/LoongArch/clz.s.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc5, 0x10, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvclz.b $xr5, $xr6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe4, 0x14, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvclz.h $xr4, $xr7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x0c, 0x18, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvclz.w $xr12, $xr0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x01, 0x1c, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvclz.d $xr1, $xr0"
|
73
thirdparty/capstone/tests/MC/LoongArch/crc.s.yaml
vendored
Normal file
73
thirdparty/capstone/tests/MC/LoongArch/crc.s.yaml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf8, 0x08, 0x24, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "crc.w.b.w $s1, $a3, $tp"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x5f, 0xc9, 0x24, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "crc.w.h.w $s8, $a6, $t6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xdc, 0x28, 0x25, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "crc.w.w.w $s5, $a2, $a6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x7c, 0xfd, 0x25, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "crc.w.d.w $s5, $a7, $s8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x4f, 0x0e, 0x26, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "crcc.w.b.w $t3, $t6, $sp"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb5, 0xcb, 0x26, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "crcc.w.h.w $r21, $s6, $t6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd1, 0x35, 0x27, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "crcc.w.w.w $t5, $t2, $t1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbe, 0xee, 0x27, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "crcc.w.d.w $s7, $r21, $s4"
|
217
thirdparty/capstone/tests/MC/LoongArch/d-arith.s.yaml
vendored
Normal file
217
thirdparty/capstone/tests/MC/LoongArch/d-arith.s.yaml
vendored
Normal file
@@ -0,0 +1,217 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xfd, 0xe5, 0x00, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fadd.s $fs5, $ft7, $fs1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf9, 0x34, 0x01, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fadd.d $fs1, $fa7, $ft5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3d, 0x48, 0x03, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fsub.d $fs5, $fa1, $ft10"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc4, 0x1f, 0x05, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fmul.d $fa4, $fs6, $fa7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x23, 0x73, 0x07, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fdiv.d $fa3, $fs1, $fs4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x15, 0x73, 0x2c, 0x08 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fmadd.d $ft13, $fs0, $fs4, $fs0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x46, 0xd2, 0x6d, 0x08 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fmsub.d $fa6, $ft10, $ft12, $fs3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb9, 0x4d, 0xaf, 0x08 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fnmadd.d $fs1, $ft5, $ft11, $fs6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x5e, 0x1f, 0xec, 0x08 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fnmsub.d $fs6, $fs2, $fa7, $fs0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x4b, 0x37, 0x09, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fmax.d $ft3, $fs2, $ft5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa1, 0x6d, 0x0b, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fmin.d $fa1, $ft5, $fs3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb8, 0x11, 0x0d, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fmaxa.d $fs0, $ft5, $fa4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x52, 0x01, 0x0f, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fmina.d $ft10, $ft2, $fa0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x77, 0x08, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fabs.d $ft15, $fa3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x4b, 0x1b, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fneg.d $ft3, $fs2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x62, 0x49, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fsqrt.d $fa2, $ft3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x7b, 0x5b, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "frecip.d $fs3, $fs3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x78, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "frecipe.d $fa0, $fa0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x76, 0x68, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "frsqrt.d $ft14, $fa3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x21, 0x88, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "frsqrte.d $fa1, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xcc, 0x69, 0x11, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fscaleb.d $ft4, $ft6, $fs2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb5, 0x2b, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "flogb.d $ft13, $fs5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x50, 0x1b, 0x13, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcopysign.d $ft8, $fs2, $fa6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x53, 0x38, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fclass.d $ft11, $fa2"
|
46
thirdparty/capstone/tests/MC/LoongArch/d-bound-check.s.yaml
vendored
Normal file
46
thirdparty/capstone/tests/MC/LoongArch/d-bound-check.s.yaml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x63, 0x37, 0x74, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fldgt.s $fa3, $s4, $t1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xba, 0xfc, 0x74, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fldgt.d $fs2, $a1, $s8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe3, 0xd9, 0x75, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fldle.d $fa3, $t3, $fp"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x6d, 0xe9, 0x76, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fstgt.d $ft5, $a7, $s3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x32, 0xb5, 0x77, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fstle.d $ft10, $a5, $t1"
|
10
thirdparty/capstone/tests/MC/LoongArch/d-branch.s.yaml
vendored
Normal file
10
thirdparty/capstone/tests/MC/LoongArch/d-branch.s.yaml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc0, 0x0c, 0x00, 0x48 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "bceqz $fcc6, 0xc"
|
208
thirdparty/capstone/tests/MC/LoongArch/d-comp.s.yaml
vendored
Normal file
208
thirdparty/capstone/tests/MC/LoongArch/d-comp.s.yaml
vendored
Normal file
@@ -0,0 +1,208 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x10, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.caf.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x20, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.caf.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x24, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.cun.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x22, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.ceq.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x26, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.cueq.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x21, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.clt.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x25, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.cult.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x23, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.cle.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x27, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.cule.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x28, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.cne.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x2a, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.cor.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x2c, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.cune.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x20, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.saf.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x24, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.sun.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x22, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.seq.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x26, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.sueq.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x21, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.slt.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x25, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.sult.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x23, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.sle.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x27, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.sule.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x28, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.sne.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x2a, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.sor.d $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x2c, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.sune.d $fcc0, $fa0, $fa1"
|
199
thirdparty/capstone/tests/MC/LoongArch/d-conv.s.yaml
vendored
Normal file
199
thirdparty/capstone/tests/MC/LoongArch/d-conv.s.yaml
vendored
Normal file
@@ -0,0 +1,199 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x25, 0x46, 0x1e, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "frint.s $fa5, $ft9"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x6c, 0x1a, 0x19, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcvt.s.d $ft4, $ft11"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xca, 0x24, 0x19, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcvt.d.s $ft2, $fa6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa6, 0x18, 0x1d, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ffint.s.l $fa6, $fa5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x58, 0x22, 0x1d, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ffint.d.w $fs0, $ft10"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x57, 0x2b, 0x1d, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ffint.d.l $ft15, $fs2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc3, 0x09, 0x1b, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftint.w.d $fa3, $ft6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x1f, 0x27, 0x1b, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftint.l.s $fs7, $fs0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x10, 0x2b, 0x1b, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftint.l.d $ft8, $fs0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x07, 0x09, 0x1a, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftintrm.w.d $fa7, $ft0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x58, 0x25, 0x1a, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftintrm.l.s $fs0, $ft2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x29, 0x29, 0x1a, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftintrm.l.d $ft1, $ft1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x6c, 0x48, 0x1a, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftintrp.w.d $ft4, $fa3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x66, 0x1a, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftintrp.l.s $fa0, $ft8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x6b, 0x1a, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftintrp.l.d $fa4, $fs5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x19, 0x8b, 0x1a, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftintrz.w.d $fs1, $fs0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb7, 0xa4, 0x1a, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftintrz.l.s $ft15, $fa5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x43, 0xa9, 0x1a, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftintrz.l.d $fa3, $ft2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x9f, 0xc9, 0x1a, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftintrne.w.d $fs7, $ft4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x76, 0xe7, 0x1a, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftintrne.l.s $ft14, $fs3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xdc, 0xe8, 0x1a, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftintrne.l.d $fs4, $fa6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x5d, 0x48, 0x1e, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "frint.d $fs5, $fa2"
|
46
thirdparty/capstone/tests/MC/LoongArch/d-memory.s.yaml
vendored
Normal file
46
thirdparty/capstone/tests/MC/LoongArch/d-memory.s.yaml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf7, 0xe9, 0x03, 0x2b ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fld.s $ft15, $t3, 0xfa"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x36, 0xca, 0x81, 0x2b ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fld.d $ft14, $t5, 0x72"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xfc, 0x18, 0xc3, 0x2b ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fst.d $fs4, $a3, 0xc6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbb, 0x7d, 0x34, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fldx.d $fs3, $t1, $s8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe6, 0x45, 0x3c, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fstx.d $fa6, $t3, $t5"
|
28
thirdparty/capstone/tests/MC/LoongArch/d-move.s.yaml
vendored
Normal file
28
thirdparty/capstone/tests/MC/LoongArch/d-move.s.yaml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xed, 0x96, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fmov.s $ft5, $ft15"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3e, 0x99, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fmov.d $fs6, $ft1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x92, 0x56, 0x02, 0x0d ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fsel $ft10, $ft12, $ft13, $fcc4"
|
73
thirdparty/capstone/tests/MC/LoongArch/div.s.yaml
vendored
Normal file
73
thirdparty/capstone/tests/MC/LoongArch/div.s.yaml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x29, 0x23, 0xe0, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvdiv.b $xr9, $xr25, $xr8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x32, 0xec, 0xe0, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvdiv.h $xr18, $xr1, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x45, 0x6f, 0xe1, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvdiv.w $xr5, $xr26, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x5b, 0xb3, 0xe1, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvdiv.d $xr27, $xr26, $xr12"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc0, 0x7a, 0xe4, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvdiv.bu $xr0, $xr22, $xr30"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xff, 0xe6, 0xe4, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvdiv.hu $xr31, $xr23, $xr25"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x21, 0x1f, 0xe5, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvdiv.wu $xr1, $xr25, $xr7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x27, 0x9f, 0xe5, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvdiv.du $xr7, $xr25, $xr7"
|
109
thirdparty/capstone/tests/MC/LoongArch/ext2xv.s.yaml
vendored
Normal file
109
thirdparty/capstone/tests/MC/LoongArch/ext2xv.s.yaml
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x7e, 0x12, 0x9f, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "vext2xv.h.b $xr30, $xr19"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbb, 0x14, 0x9f, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "vext2xv.w.b $xr27, $xr5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x39, 0x1b, 0x9f, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "vext2xv.d.b $xr25, $xr25"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x94, 0x1e, 0x9f, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "vext2xv.w.h $xr20, $xr20"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x68, 0x22, 0x9f, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "vext2xv.d.h $xr8, $xr19"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x24, 0x27, 0x9f, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "vext2xv.d.w $xr4, $xr25"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x99, 0x29, 0x9f, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "vext2xv.hu.bu $xr25, $xr12"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbf, 0x2d, 0x9f, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "vext2xv.wu.bu $xr31, $xr13"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x2c, 0x33, 0x9f, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "vext2xv.du.bu $xr12, $xr25"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x97, 0x35, 0x9f, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "vext2xv.wu.hu $xr23, $xr12"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd2, 0x38, 0x9f, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "vext2xv.du.hu $xr18, $xr6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xaa, 0x3e, 0x9f, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "vext2xv.du.wu $xr10, $xr21"
|
73
thirdparty/capstone/tests/MC/LoongArch/exth.s.yaml
vendored
Normal file
73
thirdparty/capstone/tests/MC/LoongArch/exth.s.yaml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x4f, 0xe1, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvexth.h.b $xr15, $xr10"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x7a, 0xe5, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvexth.w.h $xr26, $xr11"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x62, 0xeb, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvexth.d.w $xr2, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x36, 0xef, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvexth.q.d $xr22, $xr25"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd5, 0xf3, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvexth.hu.bu $xr21, $xr30"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x7c, 0xf5, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvexth.wu.hu $xr28, $xr11"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3b, 0xfb, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvexth.du.wu $xr27, $xr25"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x90, 0xff, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvexth.qu.du $xr16, $xr28"
|
19
thirdparty/capstone/tests/MC/LoongArch/extl.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/extl.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x9d, 0x01, 0x09, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvextl.q.d $xr29, $xr12"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x9b, 0x02, 0x0d, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvextl.qu.du $xr27, $xr20"
|
37
thirdparty/capstone/tests/MC/LoongArch/extrins.s.yaml
vendored
Normal file
37
thirdparty/capstone/tests/MC/LoongArch/extrins.s.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xfe, 0xf2, 0x8f, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvextrins.b $xr30, $xr23, 0xfc"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa0, 0x21, 0x8b, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvextrins.h $xr0, $xr13, 0xc8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xae, 0x62, 0x86, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvextrins.w $xr14, $xr21, 0x98"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xdf, 0x1f, 0x82, 0x77 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvextrins.d $xr31, $xr30, 0x87"
|
208
thirdparty/capstone/tests/MC/LoongArch/f-arith.s.yaml
vendored
Normal file
208
thirdparty/capstone/tests/MC/LoongArch/f-arith.s.yaml
vendored
Normal file
@@ -0,0 +1,208 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xfd, 0xe5, 0x00, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fadd.s $fs5, $ft7, $fs1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xce, 0xfc, 0x02, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fsub.s $ft6, $fa6, $fs7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe0, 0xc4, 0x04, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fmul.s $fa0, $fa7, $ft9"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x14, 0xcf, 0x06, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fdiv.s $ft12, $fs0, $ft11"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x03, 0x8e, 0x17, 0x08 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fmadd.s $fa3, $ft8, $fa3, $ft7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x77, 0x55, 0x52, 0x08 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fmsub.s $ft15, $ft3, $ft13, $fa4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3d, 0x60, 0x9a, 0x08 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fnmadd.s $fs5, $fa1, $fs0, $ft12"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x88, 0xe0, 0xdc, 0x08 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fnmsub.s $ft0, $fa4, $fs0, $fs1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd6, 0xec, 0x08, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fmax.s $ft14, $fa6, $fs3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x4e, 0xcd, 0x0a, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fmin.s $ft6, $ft2, $ft11"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x69, 0xff, 0x0c, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fmaxa.s $ft1, $fs3, $fs7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x4f, 0x86, 0x0e, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fmina.s $ft7, $ft10, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x9c, 0x05, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fabs.s $fs4, $ft4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x15, 0x17, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fneg.s $ft13, $fs0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x5b, 0x46, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fsqrt.s $fs3, $ft10"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x71, 0x57, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "frecip.s $ft9, $fs3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x74, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "frecipe.s $fa0, $fa0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x99, 0x65, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "frsqrt.s $fs1, $ft4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x21, 0x84, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "frsqrte.s $fa1, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf5, 0x9a, 0x10, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fscaleb.s $ft13, $ft15, $fa6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xff, 0x26, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "flogb.s $fs7, $ft15"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x0d, 0xdf, 0x12, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcopysign.s $ft5, $fs0, $ft15"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x34, 0x35, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fclass.s $ft12, $ft1"
|
37
thirdparty/capstone/tests/MC/LoongArch/f-bound-check.s.yaml
vendored
Normal file
37
thirdparty/capstone/tests/MC/LoongArch/f-bound-check.s.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x63, 0x37, 0x74, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fldgt.s $fa3, $s4, $t1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb8, 0x47, 0x75, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fldle.s $fs0, $s6, $t5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbf, 0x79, 0x76, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fstgt.s $fs7, $t1, $s7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xad, 0x1d, 0x77, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fstle.s $ft5, $t1, $a3"
|
19
thirdparty/capstone/tests/MC/LoongArch/f-branch.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/f-branch.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc0, 0x0c, 0x00, 0x48 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "bceqz $fcc6, 0xc"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc0, 0x49, 0x00, 0x48 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "bcnez $fcc6, 0x48"
|
199
thirdparty/capstone/tests/MC/LoongArch/f-comp.s.yaml
vendored
Normal file
199
thirdparty/capstone/tests/MC/LoongArch/f-comp.s.yaml
vendored
Normal file
@@ -0,0 +1,199 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x10, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.caf.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x14, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.cun.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x12, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.ceq.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x16, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.cueq.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x11, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.clt.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x15, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.cult.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x13, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.cle.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x17, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.cule.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x18, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.cne.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x1a, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.cor.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x04, 0x1c, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.cune.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x10, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.saf.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x14, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.sun.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x12, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.seq.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x16, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.sueq.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x11, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.slt.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x15, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.sult.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x13, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.sle.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x17, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.sule.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x18, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.sne.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x1a, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.sor.s $fcc0, $fa0, $fa1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x00, 0x84, 0x1c, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fcmp.sune.s $fcc0, $fa0, $fa1"
|
64
thirdparty/capstone/tests/MC/LoongArch/f-conv.s.yaml
vendored
Normal file
64
thirdparty/capstone/tests/MC/LoongArch/f-conv.s.yaml
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbe, 0x10, 0x1d, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ffint.s.w $fs6, $fa5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb5, 0x05, 0x1b, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftint.w.s $ft13, $ft5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x10, 0x06, 0x1a, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftintrm.w.s $ft8, $ft8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xee, 0x47, 0x1a, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftintrp.w.s $ft6, $fs7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x87, 0x1a, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftintrz.w.s $fa4, $fs5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x24, 0xc6, 0x1a, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ftintrne.w.s $fa4, $ft9"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x25, 0x46, 0x1e, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "frint.s $fa5, $ft9"
|
37
thirdparty/capstone/tests/MC/LoongArch/f-memory.s.yaml
vendored
Normal file
37
thirdparty/capstone/tests/MC/LoongArch/f-memory.s.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf7, 0xe9, 0x03, 0x2b ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fld.s $ft15, $t3, 0xfa"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x7e, 0x9a, 0x43, 0x2b ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fst.s $fs6, $t7, 0xe6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe1, 0x4d, 0x30, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fldx.s $fa1, $t3, $t7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x7a, 0x58, 0x38, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fstx.s $fs2, $sp, $fp"
|
145
thirdparty/capstone/tests/MC/LoongArch/f-move.s.yaml
vendored
Normal file
145
thirdparty/capstone/tests/MC/LoongArch/f-move.s.yaml
vendored
Normal file
@@ -0,0 +1,145 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xed, 0x96, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fmov.s $ft5, $ft15"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x92, 0x56, 0x02, 0x0d ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "fsel $ft10, $ft12, $ft13, $fcc4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x46, 0xa4, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "movgr2fr.w $fa6, $tp"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xca, 0xb6, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "movfr2gr.s $a6, $ft14"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x80, 0xc0, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "movgr2fcsr $fcsr0, $a0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x04, 0xc8, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "movfcsr2gr $a0, $fcsr0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x81, 0xc0, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "movgr2fcsr $fcsr1, $a0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x24, 0xc8, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "movfcsr2gr $a0, $fcsr1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x82, 0xc0, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "movgr2fcsr $fcsr2, $a0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x44, 0xc8, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "movfcsr2gr $a0, $fcsr2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x83, 0xc0, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "movgr2fcsr $fcsr3, $a0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x64, 0xc8, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "movfcsr2gr $a0, $fcsr3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x64, 0xd1, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "movfr2cf $fcc4, $ft3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x10, 0xd4, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "movcf2fr $ft8, $fcc0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x25, 0xd8, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "movgr2cf $fcc5, $ra"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf5, 0xdc, 0x14, 0x01 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "movcf2gr $r21, $fcc7"
|
19
thirdparty/capstone/tests/MC/LoongArch/fadd.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/fadd.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa6, 0xbe, 0x30, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfadd.s $xr6, $xr21, $xr15"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x1b, 0x05, 0x31, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfadd.d $xr27, $xr8, $xr1"
|
19
thirdparty/capstone/tests/MC/LoongArch/fclass.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/fclass.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe3, 0xd4, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfclass.s $xr3, $xr7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x56, 0xd9, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfclass.d $xr22, $xr10"
|
397
thirdparty/capstone/tests/MC/LoongArch/fcmp.s.yaml
vendored
Normal file
397
thirdparty/capstone/tests/MC/LoongArch/fcmp.s.yaml
vendored
Normal file
@@ -0,0 +1,397 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x01, 0x7d, 0x90, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.caf.s $xr1, $xr8, $xr31"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf3, 0x53, 0xa0, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.caf.d $xr19, $xr31, $xr20"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x28, 0x75, 0x94, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.cun.s $xr8, $xr9, $xr29"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd3, 0x72, 0xa4, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.cun.d $xr19, $xr22, $xr28"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x20, 0x00, 0x92, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.ceq.s $xr0, $xr1, $xr0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xfd, 0x52, 0xa2, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.ceq.d $xr29, $xr23, $xr20"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa5, 0x7d, 0x96, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.cueq.s $xr5, $xr13, $xr31"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc4, 0x1e, 0xa6, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.cueq.d $xr4, $xr22, $xr7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x24, 0x05, 0x91, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.clt.s $xr4, $xr9, $xr1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x93, 0x54, 0xa1, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.clt.d $xr19, $xr4, $xr21"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x2f, 0x0e, 0x95, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.cult.s $xr15, $xr17, $xr3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x34, 0x1a, 0xa5, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.cult.d $xr20, $xr17, $xr6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd6, 0x3e, 0x93, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.cle.s $xr22, $xr22, $xr15"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x35, 0x33, 0xa3, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.cle.d $xr21, $xr25, $xr12"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x41, 0x74, 0x97, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.cule.s $xr1, $xr2, $xr29"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa0, 0x2c, 0xa7, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.cule.d $xr0, $xr5, $xr11"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x27, 0x6a, 0x98, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.cne.s $xr7, $xr17, $xr26"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x32, 0x03, 0xa8, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.cne.d $xr18, $xr25, $xr0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x41, 0x38, 0x9a, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.cor.s $xr1, $xr2, $xr14"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x6c, 0x5e, 0xaa, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.cor.d $xr12, $xr19, $xr23"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x35, 0x12, 0x9c, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.cune.s $xr21, $xr17, $xr4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd4, 0x33, 0xac, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.cune.d $xr20, $xr30, $xr12"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x77, 0x89, 0x90, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.saf.s $xr23, $xr11, $xr2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x87, 0x9d, 0xa0, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.saf.d $xr7, $xr12, $xr7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe0, 0xf8, 0x94, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.sun.s $xr0, $xr7, $xr30"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x64, 0xf9, 0xa4, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.sun.d $xr4, $xr11, $xr30"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xef, 0xee, 0x92, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.seq.s $xr15, $xr23, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xcf, 0x8e, 0xa2, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.seq.d $xr15, $xr22, $xr3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x4c, 0xa7, 0x96, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.sueq.s $xr12, $xr26, $xr9"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x45, 0xc6, 0xa6, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.sueq.d $xr5, $xr18, $xr17"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x59, 0xfe, 0x91, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.slt.s $xr25, $xr18, $xr31"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x51, 0xe3, 0xa1, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.slt.d $xr17, $xr26, $xr24"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe8, 0xc9, 0x95, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.sult.s $xr8, $xr15, $xr18"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x84, 0x94, 0xa5, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.sult.d $xr4, $xr4, $xr5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa1, 0xc0, 0x93, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.sle.s $xr1, $xr5, $xr16"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x23, 0xdc, 0xa3, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.sle.d $xr3, $xr1, $xr23"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x77, 0x85, 0x97, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.sule.s $xr23, $xr11, $xr1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x4b, 0xc5, 0xa7, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.sule.d $xr11, $xr10, $xr17"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x9b, 0xf9, 0x98, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.sne.s $xr27, $xr12, $xr30"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x94, 0xc6, 0xa8, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.sne.d $xr20, $xr20, $xr17"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xab, 0x89, 0x9a, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.sor.s $xr11, $xr13, $xr2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x86, 0x9b, 0xaa, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.sor.d $xr6, $xr28, $xr6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x0b, 0xa2, 0x9c, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.sune.s $xr11, $xr16, $xr8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbe, 0xec, 0xac, 0x0c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcmp.sune.d $xr30, $xr5, $xr27"
|
19
thirdparty/capstone/tests/MC/LoongArch/fcvt.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/fcvt.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x29, 0x5e, 0x46, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcvt.h.s $xr9, $xr17, $xr23"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x5b, 0xf5, 0x46, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcvt.s.d $xr27, $xr10, $xr29"
|
19
thirdparty/capstone/tests/MC/LoongArch/fcvth.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/fcvth.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x29, 0xef, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcvth.s.h $xr9, $xr25"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3d, 0xf6, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcvth.d.s $xr29, $xr17"
|
19
thirdparty/capstone/tests/MC/LoongArch/fcvtl.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/fcvtl.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd0, 0xe9, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcvtl.s.h $xr16, $xr14"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb8, 0xf0, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfcvtl.d.s $xr24, $xr5"
|
19
thirdparty/capstone/tests/MC/LoongArch/fdiv.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/fdiv.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbd, 0xb0, 0x3a, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfdiv.s $xr29, $xr5, $xr12"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x5f, 0x79, 0x3b, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfdiv.d $xr31, $xr10, $xr30"
|
64
thirdparty/capstone/tests/MC/LoongArch/ffint.s.yaml
vendored
Normal file
64
thirdparty/capstone/tests/MC/LoongArch/ffint.s.yaml
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa3, 0x00, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvffint.s.w $xr3, $xr5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x65, 0x0a, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvffint.d.l $xr5, $xr19"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x83, 0x07, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvffint.s.wu $xr3, $xr28"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbf, 0x0f, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvffint.d.lu $xr31, $xr29"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe2, 0x10, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvffintl.d.w $xr2, $xr7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x87, 0x17, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvffinth.d.w $xr7, $xr28"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x6a, 0x0f, 0x48, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvffint.s.l $xr10, $xr27, $xr3"
|
19
thirdparty/capstone/tests/MC/LoongArch/flogb.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/flogb.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x91, 0xc5, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvflogb.s $xr17, $xr12"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3a, 0xc8, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvflogb.d $xr26, $xr1"
|
19
thirdparty/capstone/tests/MC/LoongArch/fmadd.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/fmadd.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe5, 0xff, 0x1d, 0x0a ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfmadd.s $xr5, $xr31, $xr31, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x09, 0xfe, 0x2c, 0x0a ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfmadd.d $xr9, $xr16, $xr31, $xr25"
|
19
thirdparty/capstone/tests/MC/LoongArch/fmax.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/fmax.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x1d, 0xa3, 0x3c, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfmax.s $xr29, $xr24, $xr8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3f, 0x5f, 0x3d, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfmax.d $xr31, $xr25, $xr23"
|
19
thirdparty/capstone/tests/MC/LoongArch/fmaxa.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/fmaxa.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x4f, 0x96, 0x40, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfmaxa.s $xr15, $xr18, $xr5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x82, 0x76, 0x41, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfmaxa.d $xr2, $xr20, $xr29"
|
19
thirdparty/capstone/tests/MC/LoongArch/fmin.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/fmin.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbf, 0xc0, 0x3e, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfmin.s $xr31, $xr5, $xr16"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xcd, 0x67, 0x3f, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfmin.d $xr13, $xr30, $xr25"
|
19
thirdparty/capstone/tests/MC/LoongArch/fmina.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/fmina.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x7d, 0xc7, 0x42, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfmina.s $xr29, $xr27, $xr17"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x8c, 0x4a, 0x43, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfmina.d $xr12, $xr20, $xr18"
|
19
thirdparty/capstone/tests/MC/LoongArch/fmsub.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/fmsub.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x71, 0x8c, 0x5b, 0x0a ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfmsub.s $xr17, $xr3, $xr3, $xr23"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xfe, 0x41, 0x67, 0x0a ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfmsub.d $xr30, $xr15, $xr16, $xr14"
|
19
thirdparty/capstone/tests/MC/LoongArch/fmul.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/fmul.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc9, 0xf9, 0x38, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfmul.s $xr9, $xr14, $xr30"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x5c, 0x4f, 0x39, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfmul.d $xr28, $xr26, $xr19"
|
19
thirdparty/capstone/tests/MC/LoongArch/fnmadd.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/fnmadd.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xce, 0x5e, 0x9c, 0x0a ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfnmadd.s $xr14, $xr22, $xr23, $xr24"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc1, 0x5f, 0xa6, 0x0a ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfnmadd.d $xr1, $xr30, $xr23, $xr12"
|
19
thirdparty/capstone/tests/MC/LoongArch/fnmsub.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/fnmsub.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb6, 0x90, 0xd5, 0x0a ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfnmsub.s $xr22, $xr5, $xr4, $xr11"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x08, 0x74, 0xee, 0x0a ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfnmsub.d $xr8, $xr0, $xr29, $xr28"
|
37
thirdparty/capstone/tests/MC/LoongArch/frecip.s.yaml
vendored
Normal file
37
thirdparty/capstone/tests/MC/LoongArch/frecip.s.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x03, 0xf6, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrecip.s $xr3, $xr16"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x11, 0xfb, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrecip.d $xr17, $xr24"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x03, 0x16, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrecipe.s $xr3, $xr16"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x11, 0x1b, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrecipe.d $xr17, $xr24"
|
91
thirdparty/capstone/tests/MC/LoongArch/frint.s.yaml
vendored
Normal file
91
thirdparty/capstone/tests/MC/LoongArch/frint.s.yaml
vendored
Normal file
@@ -0,0 +1,91 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x33, 0x76, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrintrne.s $xr19, $xr17"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xac, 0x7b, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrintrne.d $xr12, $xr29"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x2a, 0x65, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrintrz.s $xr10, $xr9"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbd, 0x68, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrintrz.d $xr29, $xr5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x1a, 0x56, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrintrp.s $xr26, $xr16"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x81, 0x5b, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrintrp.d $xr1, $xr28"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbb, 0x45, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrintrm.s $xr27, $xr13"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x6e, 0x4b, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrintrm.d $xr14, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x15, 0x37, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrint.s $xr21, $xr24"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x5f, 0x3a, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrint.d $xr31, $xr18"
|
37
thirdparty/capstone/tests/MC/LoongArch/frsqrt.s.yaml
vendored
Normal file
37
thirdparty/capstone/tests/MC/LoongArch/frsqrt.s.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3f, 0x07, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrsqrt.s $xr31, $xr25"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xce, 0x0a, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrsqrt.d $xr14, $xr22"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3f, 0x27, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrsqrte.s $xr31, $xr25"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xce, 0x2a, 0x9d, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrsqrte.d $xr14, $xr22"
|
37
thirdparty/capstone/tests/MC/LoongArch/frstp.s.yaml
vendored
Normal file
37
thirdparty/capstone/tests/MC/LoongArch/frstp.s.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x57, 0x4a, 0x2b, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrstp.b $xr23, $xr18, $xr18"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xcd, 0x9b, 0x2b, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrstp.h $xr13, $xr30, $xr6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x98, 0x7f, 0x9a, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrstpi.b $xr24, $xr28, 0x1f"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x16, 0xcb, 0x9a, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfrstpi.h $xr22, $xr24, 0x12"
|
19
thirdparty/capstone/tests/MC/LoongArch/fsqrt.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/fsqrt.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x64, 0xe7, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfsqrt.s $xr4, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x5a, 0xe8, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfsqrt.d $xr26, $xr2"
|
19
thirdparty/capstone/tests/MC/LoongArch/fsub.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/fsub.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x16, 0x8c, 0x32, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfsub.s $xr22, $xr0, $xr3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x24, 0x3f, 0x33, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvfsub.d $xr4, $xr25, $xr15"
|
262
thirdparty/capstone/tests/MC/LoongArch/ftint.s.yaml
vendored
Normal file
262
thirdparty/capstone/tests/MC/LoongArch/ftint.s.yaml
vendored
Normal file
@@ -0,0 +1,262 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb4, 0x51, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrne.w.s $xr20, $xr13"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xde, 0x55, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrne.l.d $xr30, $xr14"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xae, 0x48, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrz.w.s $xr14, $xr5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x41, 0x4f, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrz.l.d $xr1, $xr26"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x32, 0x40, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrp.w.s $xr18, $xr1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x0a, 0x47, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrp.l.d $xr10, $xr24"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe8, 0x3a, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrm.w.s $xr8, $xr23"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x2c, 0x3e, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrm.l.d $xr12, $xr17"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x2b, 0x33, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftint.w.s $xr11, $xr25"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc7, 0x36, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftint.l.d $xr7, $xr22"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x6d, 0x72, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrz.wu.s $xr13, $xr19"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x78, 0x74, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrz.lu.d $xr24, $xr3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xce, 0x58, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftint.wu.s $xr14, $xr6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x42, 0x5c, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftint.lu.d $xr2, $xr2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x8d, 0x96, 0x4b, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrne.w.d $xr13, $xr20, $xr5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x0d, 0x6d, 0x4b, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrz.w.d $xr13, $xr8, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x4e, 0xff, 0x4a, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrp.w.d $xr14, $xr26, $xr31"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xfd, 0x1e, 0x4a, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrm.w.d $xr29, $xr23, $xr7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc7, 0xf6, 0x49, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftint.w.d $xr7, $xr22, $xr29"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x9f, 0xa3, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrnel.l.s $xr31, $xr28"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb0, 0xa7, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrneh.l.s $xr16, $xr29"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbb, 0x9b, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrzl.l.s $xr27, $xr29"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x4e, 0x9d, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrzh.l.s $xr14, $xr10"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x0e, 0x90, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrpl.l.s $xr14, $xr0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x17, 0x94, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrph.l.s $xr23, $xr0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf6, 0x89, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrml.l.s $xr22, $xr15"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x6a, 0x8e, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintrmh.l.s $xr10, $xr19"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x7f, 0x81, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftintl.l.s $xr31, $xr11"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xaf, 0x84, 0x9e, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvftinth.l.s $xr15, $xr5"
|
73
thirdparty/capstone/tests/MC/LoongArch/haddw.s.yaml
vendored
Normal file
73
thirdparty/capstone/tests/MC/LoongArch/haddw.s.yaml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x7f, 0x76, 0x54, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvhaddw.h.b $xr31, $xr19, $xr29"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x1f, 0xde, 0x54, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvhaddw.w.h $xr31, $xr16, $xr23"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3e, 0x60, 0x55, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvhaddw.d.w $xr30, $xr1, $xr24"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf0, 0xc5, 0x55, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvhaddw.q.d $xr16, $xr15, $xr17"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x2e, 0x0a, 0x58, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvhaddw.hu.bu $xr14, $xr17, $xr2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x55, 0xa0, 0x58, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvhaddw.wu.hu $xr21, $xr2, $xr8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x06, 0x4f, 0x59, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvhaddw.du.wu $xr6, $xr24, $xr19"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x8a, 0xb5, 0x59, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvhaddw.qu.du $xr10, $xr12, $xr13"
|
73
thirdparty/capstone/tests/MC/LoongArch/hsubw.s.yaml
vendored
Normal file
73
thirdparty/capstone/tests/MC/LoongArch/hsubw.s.yaml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf6, 0x40, 0x56, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvhsubw.h.b $xr22, $xr7, $xr16"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x13, 0xbd, 0x56, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvhsubw.w.h $xr19, $xr8, $xr15"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xfe, 0x4e, 0x57, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvhsubw.d.w $xr30, $xr23, $xr19"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb4, 0xf1, 0x57, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvhsubw.q.d $xr20, $xr13, $xr28"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x4a, 0x40, 0x5a, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvhsubw.hu.bu $xr10, $xr2, $xr16"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x41, 0xcb, 0x5a, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvhsubw.wu.hu $xr1, $xr26, $xr18"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe5, 0x52, 0x5b, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvhsubw.du.wu $xr5, $xr23, $xr20"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x9f, 0xa0, 0x5b, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvhsubw.qu.du $xr31, $xr4, $xr8"
|
73
thirdparty/capstone/tests/MC/LoongArch/ilv.s.yaml
vendored
Normal file
73
thirdparty/capstone/tests/MC/LoongArch/ilv.s.yaml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xdd, 0x01, 0x1a, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvilvl.b $xr29, $xr14, $xr0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3e, 0xd5, 0x1a, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvilvl.h $xr30, $xr9, $xr21"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd8, 0x26, 0x1b, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvilvl.w $xr24, $xr22, $xr9"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x99, 0xaa, 0x1b, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvilvl.d $xr25, $xr20, $xr10"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd3, 0x6a, 0x1c, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvilvh.b $xr19, $xr22, $xr26"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xea, 0x9e, 0x1c, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvilvh.h $xr10, $xr23, $xr7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x05, 0x78, 0x1d, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvilvh.w $xr5, $xr0, $xr30"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x58, 0x88, 0x1d, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvilvh.d $xr24, $xr2, $xr2"
|
19
thirdparty/capstone/tests/MC/LoongArch/insgr2vr.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/insgr2vr.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd9, 0xdf, 0xeb, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvinsgr2vr.w $xr25, $s7, 7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbb, 0xe6, 0xeb, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvinsgr2vr.d $xr27, $r21, 1"
|
19
thirdparty/capstone/tests/MC/LoongArch/insve0.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/insve0.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x26, 0xdc, 0xff, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvinsve0.w $xr6, $xr1, 7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3c, 0xe0, 0xff, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvinsve0.d $xr28, $xr1, 0"
|
19
thirdparty/capstone/tests/MC/LoongArch/ld.s.yaml
vendored
Normal file
19
thirdparty/capstone/tests/MC/LoongArch/ld.s.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x63, 0xb8, 0xb5, 0x2c ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvld $xr3, $sp, -0x292"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x37, 0x39, 0x48, 0x38 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvldx $xr23, $a5, $t2"
|
37
thirdparty/capstone/tests/MC/LoongArch/ldrepl.s.yaml
vendored
Normal file
37
thirdparty/capstone/tests/MC/LoongArch/ldrepl.s.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb3, 0x92, 0x9d, 0x32 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvldrepl.b $xr19, $r21, 0x764"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x20, 0xc6, 0x4d, 0x32 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvldrepl.h $xr0, $t5, 0x6e2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x4b, 0x0f, 0x2a, 0x32 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvldrepl.w $xr11, $s3, -0x5f4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x9c, 0xdd, 0x13, 0x32 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvldrepl.d $xr28, $t0, 0x7b8"
|
46
thirdparty/capstone/tests/MC/LoongArch/lvz.s.yaml
vendored
Normal file
46
thirdparty/capstone/tests/MC/LoongArch/lvz.s.yaml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x04, 0x04, 0x00, 0x05 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "gcsrrd $a0, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x24, 0x04, 0x00, 0x05 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "gcsrwr $a0, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa4, 0x04, 0x00, 0x05 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "gcsrxchg $a0, $a1, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x01, 0x24, 0x48, 0x06 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "gtlbflush"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x01, 0x80, 0x2b, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "hvcl 1"
|
37
thirdparty/capstone/tests/MC/LoongArch/madd.s.yaml
vendored
Normal file
37
thirdparty/capstone/tests/MC/LoongArch/madd.s.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe5, 0x23, 0xa8, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmadd.b $xr5, $xr31, $xr8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x04, 0xf0, 0xa8, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmadd.h $xr4, $xr0, $xr28"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa2, 0x61, 0xa9, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmadd.w $xr2, $xr13, $xr24"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x13, 0xc9, 0xa9, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmadd.d $xr19, $xr8, $xr18"
|
217
thirdparty/capstone/tests/MC/LoongArch/maddw.s.yaml
vendored
Normal file
217
thirdparty/capstone/tests/MC/LoongArch/maddw.s.yaml
vendored
Normal file
@@ -0,0 +1,217 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf9, 0x25, 0xac, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwev.h.b $xr25, $xr15, $xr9"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3a, 0x80, 0xac, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwev.w.h $xr26, $xr1, $xr0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x17, 0x63, 0xad, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwev.d.w $xr23, $xr24, $xr24"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x27, 0xd9, 0xad, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwev.q.d $xr7, $xr9, $xr22"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb7, 0x69, 0xb4, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwev.h.bu $xr23, $xr13, $xr26"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x6d, 0x8c, 0xb4, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwev.w.hu $xr13, $xr3, $xr3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x7d, 0x73, 0xb5, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwev.d.wu $xr29, $xr27, $xr28"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x5d, 0xa9, 0xb5, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwev.q.du $xr29, $xr10, $xr10"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x5e, 0x7f, 0xbc, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwev.h.bu.b $xr30, $xr26, $xr31"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x26, 0xfe, 0xbc, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwev.w.hu.h $xr6, $xr17, $xr31"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x8a, 0x0b, 0xbd, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwev.d.wu.w $xr10, $xr28, $xr2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x90, 0xe2, 0xbd, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwev.q.du.d $xr16, $xr20, $xr24"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x10, 0x49, 0xae, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwod.h.b $xr16, $xr8, $xr18"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x0b, 0xbb, 0xae, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwod.w.h $xr11, $xr24, $xr14"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x80, 0x36, 0xaf, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwod.d.w $xr0, $xr20, $xr13"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xef, 0xca, 0xaf, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwod.q.d $xr15, $xr23, $xr18"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xff, 0x1e, 0xb6, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwod.h.bu $xr31, $xr23, $xr7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x1d, 0xa2, 0xb6, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwod.w.hu $xr29, $xr16, $xr8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x17, 0x2e, 0xb7, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwod.d.wu $xr23, $xr16, $xr11"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x49, 0xcd, 0xb7, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwod.q.du $xr9, $xr10, $xr19"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x5b, 0x2c, 0xbe, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwod.h.bu.b $xr27, $xr2, $xr11"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x0c, 0xcf, 0xbe, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwod.w.hu.h $xr12, $xr24, $xr19"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x0b, 0x38, 0xbf, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwod.d.wu.w $xr11, $xr0, $xr14"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x7d, 0xfe, 0xbf, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaddwod.q.du.d $xr29, $xr19, $xr31"
|
145
thirdparty/capstone/tests/MC/LoongArch/max.s.yaml
vendored
Normal file
145
thirdparty/capstone/tests/MC/LoongArch/max.s.yaml
vendored
Normal file
@@ -0,0 +1,145 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x17, 0x35, 0x70, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmax.b $xr23, $xr8, $xr13"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x4d, 0xf2, 0x70, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmax.h $xr13, $xr18, $xr28"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x3a, 0x08, 0x71, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmax.w $xr26, $xr1, $xr2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x22, 0xb6, 0x71, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmax.d $xr2, $xr17, $xr13"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe6, 0x04, 0x90, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaxi.b $xr6, $xr7, 1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x58, 0xe5, 0x90, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaxi.h $xr24, $xr10, -7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x58, 0x62, 0x91, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaxi.w $xr24, $xr18, -8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb5, 0xd4, 0x91, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaxi.d $xr21, $xr5, -0xb"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xdd, 0x2f, 0x74, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmax.bu $xr29, $xr30, $xr11"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe4, 0xee, 0x74, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmax.hu $xr4, $xr23, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x1f, 0x00, 0x75, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmax.wu $xr31, $xr0, $xr0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc5, 0xa6, 0x75, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmax.du $xr5, $xr22, $xr9"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x6c, 0x73, 0x94, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaxi.bu $xr12, $xr27, 0x1c"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x99, 0xc0, 0x94, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaxi.hu $xr25, $xr4, 0x10"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xfb, 0x54, 0x95, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaxi.wu $xr27, $xr7, 0x15"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbf, 0xa5, 0x95, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmaxi.du $xr31, $xr13, 0x9"
|
82
thirdparty/capstone/tests/MC/LoongArch/memory.s.yaml
vendored
Normal file
82
thirdparty/capstone/tests/MC/LoongArch/memory.s.yaml
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x18, 0x55, 0x00, 0x28 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ld.b $s1, $a4, 0x15"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x47, 0x42, 0x41, 0x28 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ld.h $a3, $t6, 0x50"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x52, 0x73, 0x81, 0x28 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ld.w $t6, $s3, 0x5c"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xad, 0x59, 0x02, 0x2a ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ld.bu $t1, $t1, 0x96"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb2, 0x1b, 0x43, 0x2a ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "ld.hu $t6, $s6, 0xc6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe3, 0x7c, 0x01, 0x29 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "st.b $sp, $a3, 0x5f"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x19, 0xea, 0x41, 0x29 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "st.h $s2, $t4, 0x7a"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xad, 0xbd, 0x82, 0x29 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "st.w $t1, $t1, 0xaf"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x0a, 0x5c, 0xc0, 0x2a ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "preld 0xa, $zero, 0x17"
|
145
thirdparty/capstone/tests/MC/LoongArch/min.s.yaml
vendored
Normal file
145
thirdparty/capstone/tests/MC/LoongArch/min.s.yaml
vendored
Normal file
@@ -0,0 +1,145 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x55, 0x1f, 0x72, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmin.b $xr21, $xr26, $xr7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbd, 0xa4, 0x72, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmin.h $xr29, $xr5, $xr9"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x1f, 0x53, 0x73, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmin.w $xr31, $xr24, $xr20"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x7b, 0x8b, 0x73, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmin.d $xr27, $xr27, $xr2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x36, 0x26, 0x92, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmini.b $xr22, $xr17, 0x9"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xec, 0xc6, 0x92, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmini.h $xr12, $xr23, -0xf"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x21, 0x4e, 0x93, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmini.w $xr1, $xr17, -0xd"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xea, 0xaf, 0x93, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmini.d $xr10, $xr31, 0xb"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x0f, 0x0e, 0x76, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmin.bu $xr15, $xr16, $xr3"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe4, 0xef, 0x76, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmin.hu $xr4, $xr31, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xaf, 0x71, 0x77, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmin.wu $xr15, $xr13, $xr28"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x7b, 0x94, 0x77, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmin.du $xr27, $xr3, $xr5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x06, 0x1f, 0x96, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmini.bu $xr6, $xr24, 7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xa8, 0xf4, 0x96, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmini.hu $xr8, $xr5, 0x1d"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb1, 0x4d, 0x97, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmini.wu $xr17, $xr13, 0x13"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf0, 0xfa, 0x97, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmini.du $xr16, $xr23, 0x1e"
|
46
thirdparty/capstone/tests/MC/LoongArch/misc.s.yaml
vendored
Normal file
46
thirdparty/capstone/tests/MC/LoongArch/misc.s.yaml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x64, 0x00, 0x2b, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "syscall 0x64"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc7, 0x00, 0x2a, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "break 0xc7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x98, 0x60, 0x00, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "rdtimel.w $s1, $a0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xab, 0x64, 0x00, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "rdtimeh.w $a7, $a1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x03, 0x6d, 0x00, 0x00 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "cpucfg $sp, $a4"
|
73
thirdparty/capstone/tests/MC/LoongArch/mod.s.yaml
vendored
Normal file
73
thirdparty/capstone/tests/MC/LoongArch/mod.s.yaml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x68, 0x00, 0xe2, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmod.b $xr8, $xr3, $xr0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x22, 0xf2, 0xe2, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmod.h $xr2, $xr17, $xr28"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x0e, 0x35, 0xe3, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmod.w $xr14, $xr8, $xr13"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x4b, 0xc9, 0xe3, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmod.d $xr11, $xr10, $xr18"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x30, 0x68, 0xe6, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmod.bu $xr16, $xr1, $xr26"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xaf, 0x81, 0xe6, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmod.hu $xr15, $xr13, $xr0"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x6b, 0x52, 0xe7, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmod.wu $xr11, $xr19, $xr20"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x6e, 0x98, 0xe7, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmod.du $xr14, $xr3, $xr6"
|
10
thirdparty/capstone/tests/MC/LoongArch/mskgez.s.yaml
vendored
Normal file
10
thirdparty/capstone/tests/MC/LoongArch/mskgez.s.yaml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xbe, 0x50, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmskgez.b $xr30, $xr5"
|
37
thirdparty/capstone/tests/MC/LoongArch/mskltz.s.yaml
vendored
Normal file
37
thirdparty/capstone/tests/MC/LoongArch/mskltz.s.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xae, 0x40, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmskltz.b $xr14, $xr5"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x2b, 0x47, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmskltz.h $xr11, $xr25"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x6e, 0x4b, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmskltz.w $xr14, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe7, 0x4e, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmskltz.d $xr7, $xr23"
|
10
thirdparty/capstone/tests/MC/LoongArch/msknz.s.yaml
vendored
Normal file
10
thirdparty/capstone/tests/MC/LoongArch/msknz.s.yaml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd6, 0x62, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmsknz.b $xr22, $xr22"
|
37
thirdparty/capstone/tests/MC/LoongArch/msub.s.yaml
vendored
Normal file
37
thirdparty/capstone/tests/MC/LoongArch/msub.s.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x96, 0x1e, 0xaa, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmsub.b $xr22, $xr20, $xr7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x40, 0xb2, 0xaa, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmsub.h $xr0, $xr18, $xr12"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc3, 0x76, 0xab, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmsub.w $xr3, $xr22, $xr29"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x4b, 0x8b, 0xab, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmsub.d $xr11, $xr26, $xr2"
|
73
thirdparty/capstone/tests/MC/LoongArch/muh.s.yaml
vendored
Normal file
73
thirdparty/capstone/tests/MC/LoongArch/muh.s.yaml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x04, 0x11, 0x86, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmuh.b $xr4, $xr8, $xr4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe5, 0xea, 0x86, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmuh.h $xr5, $xr23, $xr26"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x7c, 0x64, 0x87, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmuh.w $xr28, $xr3, $xr25"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x06, 0xa4, 0x87, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmuh.d $xr6, $xr0, $xr9"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x8f, 0x62, 0x88, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmuh.bu $xr15, $xr20, $xr24"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x9c, 0xed, 0x88, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmuh.hu $xr28, $xr12, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd9, 0x28, 0x89, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmuh.wu $xr25, $xr6, $xr10"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x13, 0xfd, 0x89, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmuh.du $xr19, $xr8, $xr31"
|
37
thirdparty/capstone/tests/MC/LoongArch/mul.s.yaml
vendored
Normal file
37
thirdparty/capstone/tests/MC/LoongArch/mul.s.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf2, 0x6c, 0x84, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmul.b $xr18, $xr7, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe9, 0xca, 0x84, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmul.h $xr9, $xr23, $xr18"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x15, 0x6d, 0x85, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmul.w $xr21, $xr8, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe0, 0xa1, 0x85, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmul.d $xr0, $xr15, $xr8"
|
217
thirdparty/capstone/tests/MC/LoongArch/mulw.s.yaml
vendored
Normal file
217
thirdparty/capstone/tests/MC/LoongArch/mulw.s.yaml
vendored
Normal file
@@ -0,0 +1,217 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe2, 0x40, 0x90, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwev.h.b $xr2, $xr7, $xr16"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x6c, 0x99, 0x90, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwev.w.h $xr12, $xr11, $xr6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x10, 0x3f, 0x91, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwev.d.w $xr16, $xr24, $xr15"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x11, 0x92, 0x91, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwev.q.d $xr17, $xr16, $xr4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf4, 0x74, 0x98, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwev.h.bu $xr20, $xr7, $xr29"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x0d, 0xc7, 0x98, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwev.w.hu $xr13, $xr24, $xr17"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x01, 0x7b, 0x99, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwev.d.wu $xr1, $xr24, $xr30"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc1, 0xee, 0x99, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwev.q.du $xr1, $xr22, $xr27"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x8d, 0x33, 0xa0, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwev.h.bu.b $xr13, $xr28, $xr12"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x1b, 0x9e, 0xa0, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwev.w.hu.h $xr27, $xr16, $xr7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xed, 0x44, 0xa1, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwev.d.wu.w $xr13, $xr7, $xr17"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x89, 0xbe, 0xa1, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwev.q.du.d $xr9, $xr20, $xr15"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x50, 0x0a, 0x92, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwod.h.b $xr16, $xr18, $xr2"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x5e, 0xdc, 0x92, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwod.w.h $xr30, $xr2, $xr23"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x7e, 0x23, 0x93, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwod.d.w $xr30, $xr27, $xr8"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xb4, 0xbe, 0x93, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwod.q.d $xr20, $xr21, $xr15"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x53, 0x1f, 0x9a, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwod.h.bu $xr19, $xr26, $xr7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x2e, 0x9a, 0x9a, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwod.w.hu $xr14, $xr17, $xr6"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd8, 0x52, 0x9b, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwod.d.wu $xr24, $xr22, $xr20"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xfc, 0x9f, 0x9b, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwod.q.du $xr28, $xr31, $xr7"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xf8, 0x71, 0xa2, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwod.h.bu.b $xr24, $xr15, $xr28"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x18, 0x85, 0xa2, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwod.w.hu.h $xr24, $xr8, $xr1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x6a, 0x04, 0xa3, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwod.d.wu.w $xr10, $xr3, $xr1"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xef, 0x89, 0xa3, 0x74 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvmulwod.q.du.d $xr15, $xr15, $xr2"
|
37
thirdparty/capstone/tests/MC/LoongArch/neg.s.yaml
vendored
Normal file
37
thirdparty/capstone/tests/MC/LoongArch/neg.s.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x97, 0x30, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvneg.b $xr23, $xr4"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xc8, 0x35, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvneg.h $xr8, $xr14"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xd7, 0x39, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvneg.w $xr23, $xr14"
|
||||
-
|
||||
input:
|
||||
bytes: [ 0x34, 0x3e, 0x9c, 0x76 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvneg.d $xr20, $xr17"
|
10
thirdparty/capstone/tests/MC/LoongArch/nor.s.yaml
vendored
Normal file
10
thirdparty/capstone/tests/MC/LoongArch/nor.s.yaml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
test_cases:
|
||||
-
|
||||
input:
|
||||
bytes: [ 0xe4, 0x8e, 0x27, 0x75 ]
|
||||
arch: "CS_ARCH_LOONGARCH"
|
||||
options: [ "CS_MODE_LOONGARCH64" ]
|
||||
expected:
|
||||
insns:
|
||||
-
|
||||
asm_text: "xvnor.v $xr4, $xr23, $xr3"
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user