From 0909e462c3efc2ecd9395e1d69485f9ad4027857 Mon Sep 17 00:00:00 2001 From: nella Date: Wed, 1 Apr 2026 18:40:51 +0200 Subject: [PATCH] Fix test cases. --- passes/techmap/csa_tree.cc | 3 +- tests/csa_tree/csa_tree_add_chains.ys | 111 +++++++------------ tests/csa_tree/csa_tree_alu_macc_equiv.ys | 126 ++++------------------ tests/csa_tree/csa_tree_edge_cases.ys | 12 +-- tests/csa_tree/csa_tree_idempotent.ys | 2 +- tests/csa_tree/csa_tree_sub_chains.ys | 8 +- 6 files changed, 67 insertions(+), 195 deletions(-) diff --git a/passes/techmap/csa_tree.cc b/passes/techmap/csa_tree.cc index 110575a0e..132b4bcc7 100644 --- a/passes/techmap/csa_tree.cc +++ b/passes/techmap/csa_tree.cc @@ -213,8 +213,7 @@ struct Rewriter { return false; } - std::vector extract_chain_operands(const pool &chain, Cell *root, const dict &parent_of, - int &neg_compensation) + std::vector extract_chain_operands(const pool &chain, Cell *root, const dict &parent_of, int &neg_compensation) { pool chain_bits = internal_bits(chain); diff --git a/tests/csa_tree/csa_tree_add_chains.ys b/tests/csa_tree/csa_tree_add_chains.ys index 98067ce16..ad9a1ddfa 100644 --- a/tests/csa_tree/csa_tree_add_chains.ys +++ b/tests/csa_tree/csa_tree_add_chains.ys @@ -60,18 +60,22 @@ select -assert-count 14 t:$fa select -assert-count 1 t:$add design -reset -read_verilog <