capstone/suite
wxrdnx 404912f068
Add access support for RISC-V (#2393)
* resolve conflict for loongarch and RISCV in Mapping.c and Mapping.h

* Use RISCV_get_detail for simplicity

Co-authored-by: Rot127 <45763064+Rot127@users.noreply.github.com>

* Use detail_is_set for simplicity

Co-authored-by: Rot127 <45763064+Rot127@users.noreply.github.com>

* Change comment style

Co-authored-by: Rot127 <45763064+Rot127@users.noreply.github.com>

* remove redundant add_str

* fix bug for RISCV_add_detail

* fix operands for csr instructions

* add python binding and tester for RISC-V

* add more test cases for RISC-V (M,A,F,D,C instructions)

* fix incorrect operand and access for sc.w and sc.d

* fix incorrect operand for fence and sfence.vma

* assert -> CS_ASSERT

* some instructions in test_riscv.c should be RISCV64

* add cs details test

* update python testers

---------

Co-authored-by: Rot127 <45763064+Rot127@users.noreply.github.com>
2024-07-10 11:36:39 +08:00
..
arm Add Werror to compile options. (#2114) 2023-07-23 23:18:33 +08:00
auto-sync AArch64 update to LLVM 18 (#2298) 2024-07-08 10:28:54 +08:00
benchmark update .gitignore 2022-01-04 23:47:08 +08:00
cstest Add access support for RISC-V (#2393) 2024-07-10 11:36:39 +08:00
fuzz AArch64 update to LLVM 18 (#2298) 2024-07-08 10:28:54 +08:00
MC AArch64 update to LLVM 18 (#2298) 2024-07-08 10:28:54 +08:00
regress Fix register accesses & operands of multiple PAC instructions 2023-05-16 14:10:00 +02:00
synctools fix typos (#2387) 2024-06-19 18:54:05 +08:00
x86 suite: add some tools to verify X86 machine code 2015-01-06 13:11:04 +07:00
autogen_x86imm.py fix typos (#2344) 2024-04-30 10:37:53 +08:00
benchmark.py Architecture updater (auto-sync) - Updating AArch64 (#2026) 2023-11-15 12:12:14 +08:00
capstone_get_setup.c Initial auto-sync LoongArch support (#2349) 2024-06-26 14:47:44 +08:00
compile_all.sh Architecture updater (auto-sync) - Updating AArch64 (#2026) 2023-11-15 12:12:14 +08:00
disasm_mc.py Architecture updater (auto-sync) - Updating AArch64 (#2026) 2023-11-15 12:12:14 +08:00
disasm_mc.sh fix typos (#2344) 2024-04-30 10:37:53 +08:00
fuzz.py Architecture updater (auto-sync) - Updating AArch64 (#2026) 2023-11-15 12:12:14 +08:00
gencstest.py Update tests and inc files 2023-07-01 16:26:54 +08:00
patch_major_os_version.py Use python3 as default interpreter for all python scripts (#2390) 2024-06-19 18:52:51 +08:00
ppcbranch.py Use python3 as default interpreter for all python scripts (#2390) 2024-06-19 18:52:51 +08:00
python_capstone_setup.py suite: add python_capstone_setup.py 2015-06-07 15:55:05 +08:00
README suite: add testsuite tool 'test_mc.sh' to compare output of Capstone & LLVM 2014-11-07 17:24:01 +08:00
regress.py Use python3 as default interpreter for all python scripts (#2390) 2024-06-19 18:52:51 +08:00
run_invalid_cstool.sh Add test with ASAN enabled. (#2313) 2024-06-10 10:01:00 +08:00
test_all.sh add ci_test steps&&Fixed suite test for python3 2021-11-23 12:27:39 +08:00
test_c.sh Add HPPA(PA-RISC) architecture (#2265) 2024-03-26 13:58:56 +08:00
test_corpus3.py AArch64 update to LLVM 18 (#2298) 2024-07-08 10:28:54 +08:00
test_group_name.py Architecture updater (auto-sync) - Updating AArch64 (#2026) 2023-11-15 12:12:14 +08:00
test_mc.py Architecture updater (auto-sync) - Updating AArch64 (#2026) 2023-11-15 12:12:14 +08:00
test_mc.sh fix typos (#2344) 2024-04-30 10:37:53 +08:00
test_python.sh Add HPPA(PA-RISC) architecture (#2265) 2024-03-26 13:58:56 +08:00
x86odd.py Use python3 as default interpreter for all python scripts (#2390) 2024-06-19 18:52:51 +08:00

This directory contains some tools used by developers of Capstone project.
Average users should ignore all the contents here.


- arm/
	Test some ARM's special input.

- MC/
	Input used to test various architectures & modes.

- benchmark.py
	This script benchmarks Python binding by disassembling some random code.

- test_*.sh
	Run all the tests and send the output to external file to be compared later.
	This is useful when we want to verify if a commit (wrongly) changes
	the disassemble result.

- compile_all.sh
	Compile Capstone for all platforms (*nix32, clang, cygwin, cross-compile) &
	report the result as pass or fail.

- fuzz.py
	This simple script disassembles random code for all archs (or selected arch)
	in order to find segfaults.

- test_mc.sh
    This script compares the output of Capstone with LLVM's llvm-mc with the
	input coming from MC/. This relies on test_mc.py to do all the hard works.

- x86odd.py
	Test some tricky X86 instructions.

- ppcbranch.py
	Test some tricky branch PPC instructions.