Skip to content

Commit

Permalink
alumacc: Fix missing signedness check
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Feb 4, 2025
1 parent 23b3638 commit b5752df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions passes/techmap/alumacc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ struct AlumaccWorker

if (n == nullptr) {
for (auto node : sig_alu[RTLIL::SigSig(B, A)])
if (node->invert_b && node->c == State::S1) {
if (node->is_signed == is_signed && node->invert_b && node->c == State::S1) {
n = node;
cmp_less = !cmp_less;
std::swap(A, B);
Expand Down Expand Up @@ -460,7 +460,7 @@ struct AlumaccWorker

if (n == nullptr) {
for (auto node : sig_alu[RTLIL::SigSig(B, A)])
if (node->invert_b && node->c == State::S1) {
if (node->is_signed == is_signed && node->invert_b && node->c == State::S1) {
n = node;
break;
}
Expand Down

0 comments on commit b5752df

Please sign in to comment.