3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-20 06:05:50 +00:00

Fix wide shift count fold.

This commit is contained in:
nella 2026-07-07 15:04:57 +02:00
parent 8a2499b544
commit 5628dff0bd
3 changed files with 65 additions and 1 deletions

View file

@ -588,7 +588,7 @@ bool RTLIL::Const::convertible_to_int(bool is_signed) const
if (size == 32) {
if (is_signed)
return true;
return back() != State::S1;
return (*this)[size - 1] != State::S1;
}
return false;