rizin/test/unit
NOT XVilka 155ead6822
librz/reg: derive CC with more than four argument registers (#6600)
rz_reg_profile_to_cc() only emitted the first four argument registers
(A0-A3), so architectures that pass more arguments in registers -- the
C6000 EABI uses ten, and x86-64/riscv/ppc all declare more than four --
got a truncated convention. Walk the whole A0-A9 role range, stopping at
the first role the profile leaves undefined, and build the cc string with
RzStrBuf. Covered by a new test_reg unit test.

Co-authored-by agent: Claude/claude-opus-4-8

Co-authored-by: Anton Kochkov <anton.kochkov@gmail.com>
2026-07-06 03:35:41 +08:00
..
auxiliary meson: Fix duplicate checks for -Wno-unused-result (#6053) 2026-03-19 20:46:00 +08:00
cpp
.gitignore
meson.build librz/arch: do not split ANSI escapes when truncating colored operands (#6430) 2026-05-30 16:06:07 +08:00
minunit.h Add new implementation of RzConfig (#5820) 2026-05-03 15:34:48 +08:00
mock_io.inl Change len parameter type to size_t in RzIO API (#4012) 2023-12-03 19:28:16 +08:00
rz_arch_buffer.h
rz_test_cmd_test
test_addr_interval.c
test_agraph.c Fix RZ_IPI usage on public headers & fix memory leak in the ROP code. (#6171) 2026-04-08 13:37:17 +08:00
test_analysis_block.c Fix no-return function propagation (#6449) 2026-06-20 05:29:18 +08:00
test_analysis_block_invars.inl Move RzAnalysis as private and force usage of C API (#6123) 2026-04-06 16:07:53 +00:00
test_analysis_cc.c Move RzAnalysis as private and force usage of C API (#6123) 2026-04-06 16:07:53 +00:00
test_analysis_class_graph.c refactor: add hashtable-based RzGraph implementation (#6152) 2026-04-08 04:01:40 +08:00
test_analysis_coverage.c Fix: add meta size in code count (#5054) 2025-04-02 10:54:52 +08:00
test_analysis_function.c librz/analysis: add new API to get storage information of function return (#6208) 2026-04-20 23:14:49 +08:00
test_analysis_hints.c analysis: add enum immediate hints with ahie command (#6052) 2026-03-21 15:52:21 +08:00
test_analysis_meta.c Move RzAnalysis as private and force usage of C API (#6123) 2026-04-06 16:07:53 +00:00
test_analysis_op.c Expose RzIL Unicode/enriched lines API (#6255) 2026-06-11 02:35:05 +08:00
test_analysis_var.c Move RzAnalysis as private and force usage of C API (#6123) 2026-04-06 16:07:53 +00:00
test_analysis_xrefs.c Remove Global/Static variables in path.c to make it thread safe (#5148) 2025-06-13 21:34:33 +08:00
test_annotated_code.c Convert %ll format specifiers to PFMT64 (#6267) 2026-04-22 05:57:04 +08:00
test_base16.c librz/util: base64, base85, base36, base32, base16 support and refactor (#5216) (#5271) 2025-08-17 15:26:25 +08:00
test_base32.c librz/util: base64, base85, base36, base32, base16 support and refactor (#5216) (#5271) 2025-08-17 15:26:25 +08:00
test_base36.c librz/util: base64, base85, base36, base32, base16 support and refactor (#5216) (#5271) 2025-08-17 15:26:25 +08:00
test_base64.c test: some base64 unit tests to demonstrate bugs 2023-10-13 09:42:50 +08:00
test_base85.c librz/util: base64, base85, base36, base32, base16 support and refactor (#5216) (#5271) 2025-08-17 15:26:25 +08:00
test_big.c
test_bin_lines.c
test_bin_mach0.c Fix dyldcache reading tests with optimization (Fix #3459) (#5035) 2025-03-25 08:12:09 +01:00
test_bits.c Enhance performance of rz_bv_copy_nbits (#5541) 2025-11-23 21:52:23 +08:00
test_bitvector.c Add rz_bv_append_inplace() (#6592) 2026-07-03 23:31:30 +08:00
test_buf.c Prevent RzBuffer's Oxff_priv from overriding io.0xff (#6371) 2026-05-27 06:18:45 +08:00
test_cmd.c Implement colors for tables and move RzListInfo out of table.c (#5729) 2026-01-05 21:34:41 +08:00
test_compare.c
test_config.c Add RzConfigValidator for validating (on set) owned variables (#6356) 2026-05-16 16:12:13 +02:00
test_config.h.in
test_cons.c test: increase coverage for RzCons and its components (#5735) 2026-01-07 12:27:45 +08:00
test_cons_bar.c test: increase coverage for RzCons and its components (#5735) 2026-01-07 12:27:45 +08:00
test_cons_canvas.c test: increase coverage for RzCons and its components (#5735) 2026-01-07 12:27:45 +08:00
test_cons_grep.c Add JSON projection grep (#6522) 2026-06-22 17:17:20 +00:00
test_cons_histogram.c librz/cons/histogram: revamp visual horizontal histogram (#6365, #4431) (#6440) 2026-06-07 14:00:31 +08:00
test_cons_html.c test: increase coverage for RzCons and its components (#5735) 2026-01-07 12:27:45 +08:00
test_cons_hud.c test: increase coverage for RzCons and its components (#5735) 2026-01-07 12:27:45 +08:00
test_cons_line.c test: increase coverage for RzCons and its components (#5735) 2026-01-07 12:27:45 +08:00
test_cons_pager.c test: increase coverage for RzCons and its components (#5735) 2026-01-07 12:27:45 +08:00
test_cons_pal.c test: increase coverage for RzCons and its components (#5735) 2026-01-07 12:27:45 +08:00
test_cons_pipe.c test: increase coverage for RzCons and its components (#5735) 2026-01-07 12:27:45 +08:00
test_cons_rgb.c test: increase coverage for RzCons and its components (#5735) 2026-01-07 12:27:45 +08:00
test_contrbtree.c
test_core_addr.c Implement unified API for describing addresses (name+offset format) (#5571) 2025-12-10 19:11:31 +08:00
test_core_analysis_stats.c
test_core_bin.c refactor: output legacy integer mode to use RzOutputMode (#5815) 2026-03-24 06:12:43 +08:00
test_core_cmd.c fix: resolve endless loop (#6049) 2026-03-18 20:52:14 +08:00
test_core_plugin.c support context-aware core plugins (#6404) 2026-05-28 20:37:01 +08:00
test_core_seek.c
test_core_task.c rz_core_task_join: Return fine-grained error values (#4505) 2024-05-22 12:03:35 +08:00
test_crypto.c
test_debruijn.c
test_debug.c Remove rz_io_read_at and use only rz_io_read_at_mapped (#5777) 2026-01-11 22:50:50 +08:00
test_debug_session.c Rename rz_list_get() to rz_list_val() (#5896) 2026-02-09 22:47:57 +08:00
test_diff.c Implement special compare for bytes and always compare mem-aligned. 2026-06-01 01:45:59 +08:00
test_ebcdic.c
test_encodings.c Enc: add unicode case mappings (#5956) 2026-03-01 15:06:28 +00:00
test_endian.c Convert %ll format specifiers to PFMT64 (#6267) 2026-04-22 05:57:04 +08:00
test_event.c
test_file.c
test_flags.c Fix aav.aav.* naming #2205 (#6079) 2026-03-29 17:49:04 +08:00
test_flirt.c Fix multiple memory leaks (#5636) 2025-12-18 14:23:48 +00:00
test_float.c fix positive zero comparing inequal with negative zero, IEEE754 mandates equality 2026-06-21 03:48:49 +08:00
test_glob.c
test_graph.c Graph - API changes to enum (#6349) 2026-05-22 13:45:18 +00:00
test_graph_new.c Graph - (tiny) performance improvements (#6382) 2026-05-31 22:00:25 +00:00
test_graph_new_cfg.c Graph - API changes to enum (#6349) 2026-05-22 13:45:18 +00:00
test_hash.c implement shake-128 and shake-256 (#6490) 2026-06-23 11:47:13 +08:00
test_hex.c String/Hex-Search 1/9: Add hexadecimal number helpers, doxygen and type annotations. 2025-02-22 04:12:49 +08:00
test_ht.c Add rz_set_u_take(). (#6137) 2026-04-04 12:04:25 +00:00
test_id_storage.c
test_idpool.c
test_idstorage.c
test_il_definitions.c Fix leaks of RzILMem buffers and enabling RzILMem to take buffer ownership. (#5739) 2026-02-10 15:38:51 +00:00
test_il_helpers.c Update contact information of Rot127. (#5522) 2025-11-10 17:15:15 +00:00
test_il_reg.c Enable RzIL VM to halt on exceptions. (#5305) 2025-08-25 12:43:01 +00:00
test_il_validate.c RzIL: Hash Pure variable names to make them more suitable as hash table keys. (#5971) 2026-02-27 11:51:35 +00:00
test_il_vm.c Fix leaks of RzILMem buffers and enabling RzILMem to take buffer ownership. (#5739) 2026-02-10 15:38:51 +00:00
test_inflate_deflate.c Fix: multiple memory release issues (#5616) 2025-12-13 22:14:50 +08:00
test_intervaltree.c struct timezone is obsolete/deprecated (#4672) 2024-10-16 17:13:17 +08:00
test_io.c Move get_boundary functions without module dependencies to RzIO. (#5508) 2026-03-25 14:34:07 +00:00
test_io_ihex.c Remove rz_io_read_at and use only rz_io_read_at_mapped (#5777) 2026-01-11 22:50:50 +08:00
test_itv.c librz/util: implement a bounded interval. (#4977) 2025-03-09 15:24:07 +08:00
test_json.c RzUtil add new API 2023-08-25 23:32:05 +08:00
test_leb128.c test: add unit test for read_*_leb128() functions (#5931) 2026-02-20 04:24:59 +08:00
test_list.c Revert "Implement Pool Node allocation for RzList (#6203)" (#6313) 2026-05-04 22:45:00 +08:00
test_log.c Add getter for the current log level. (#5807) 2026-01-23 18:52:45 +00:00
test_lzma.c Add MediaTek md1img and GFH firmware image parsers (#5974) 2026-06-22 20:25:48 +00:00
test_marks.c Add: Mark API (#5313) 2025-09-01 22:06:01 +00:00
test_math.c Delete overflow test because FreeBSD times out on it. (#6412) 2026-05-28 16:03:38 +00:00
test_mem.c Fix unit tests on 32-bit platforms (#6384) 2026-05-19 11:44:32 +08:00
test_ovf.c
test_parse.c librz/arch: do not split ANSI escapes when truncating colored operands (#6430) 2026-05-30 16:06:07 +08:00
test_pf.c Rewrite the pf parser and rework the grammar (#6410) 2026-05-29 03:58:58 +08:00
test_pj.c librz/util/pj: Fix JSON depth limit handling (#6533) 2026-07-02 15:21:36 +08:00
test_rbtree.c
test_reg.c librz/reg: derive CC with more than four argument registers (#6600) 2026-07-06 03:35:41 +08:00
test_regex.c Improve performance of string search. (#5262) 2025-09-11 22:29:20 +08:00
test_rop.c librz/core: implement ROP/JOP/COP gadget cache (#6328) 2026-05-24 21:48:42 +08:00
test_rop_constraint.c librz/core: implement ROP/JOP/COP gadget cache (#6328) 2026-05-24 21:48:42 +08:00
test_run.c
test_rz_test.c Revert #4506 (#4519) 2024-05-27 21:50:58 +08:00
test_sdb.h DWARF improve DWARF5 support and refactor 2023-08-25 23:32:05 +08:00
test_sdb_array.c Fix: asn and asr command #3885 (#5477) 2025-11-04 23:38:16 +08:00
test_sdb_diff.c refactor: SwissTable implementation for ht (#5860) 2026-03-02 12:31:35 +08:00
test_sdb_sdb.c refactor: SwissTable implementation for ht (#5860) 2026-03-02 12:31:35 +08:00
test_sdb_util.c
test_serialize_analysis.c librz/arch: fix some memory leaks (#6240) 2026-04-17 00:09:52 +08:00
test_serialize_config.c Add new implementation of RzConfig (#5820) 2026-05-03 15:34:48 +08:00
test_serialize_debug.c sdb: remove unused cas and expire features (#4487) 2024-05-12 18:27:54 +08:00
test_serialize_flag.c Rename rz_list_get() to rz_list_val() (#5896) 2026-02-09 22:47:57 +08:00
test_serialize_mark.c Add: Mark API (#5313) 2025-09-01 22:06:01 +00:00
test_serialize_seek.c sdb: remove unused cas and expire features (#4487) 2024-05-12 18:27:54 +08:00
test_serialize_spaces.c sdb: remove unused cas and expire features (#4487) 2024-05-12 18:27:54 +08:00
test_serialize_types.c librz/type: support C bitfield members in structs and unions (#1240, #314) (#6439) 2026-06-01 05:03:31 +08:00
test_skiplist.c Add user pointer to RzListComparator (#4204) 2024-02-11 13:28:33 +08:00
test_skyline.c
test_socket.c
test_spaces.c
test_sparse.c
test_stack.c
test_str.c Add rz_str_replace_regex for regex based string replacement (#6151) 2026-04-06 11:52:52 +00:00
test_str_search.c util: extend string search with user-defined printable characters (#6161) 2026-05-01 22:47:14 +08:00
test_strbuf.c RzStrBuf: remove weakref related code 2023-08-15 09:00:22 +08:00
test_subprocess.c
test_syscall.c Fix: asn and asr command #3885 (#5477) 2025-11-04 23:38:16 +08:00
test_table.c librz/util/table: fix shared query filtering (#6166) 2026-04-08 11:48:04 +08:00
test_task.c
test_threads.c Fix deadlock in rz_th_queue_close_when_empty() (#6383) 2026-05-25 09:25:29 +02:00
test_tokens.c arch/tms320: TMS320C55x+ analysis & RzIL (PR #6434) + extended lifter coverage 2026-06-15 23:31:05 +08:00
test_tree.c Rename rz_list_get() to rz_list_val() (#5896) 2026-02-09 22:47:57 +08:00
test_type.c librz/arch: render flag-enum operands as an OR of members (#2344) (#6450) 2026-06-02 04:22:25 +08:00
test_uleb128.c
test_unum.c librz/util/num: handling minimum st64 in rz_num_abs (#4952) 2025-03-02 22:44:09 +08:00
test_util.c shell: new arg type RZ_CMD_ARG_TYPE_FOLDER (#5514) 2025-12-10 19:08:38 +08:00
test_vector.c librz/util/vector: minor RzVector/RzPVector performance optimizations (#6467) 2026-06-10 00:22:26 +08:00
test_yank.c Fix endianness issues on s390x (#5940) 2026-02-19 23:13:18 +08:00