mirror of https://github.com/YosysHQ/yosys.git
alumacc: Fix missing signedness check
This commit is contained in:
parent
23b3638c1e
commit
b5752dfe16
|
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue