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:
parent
8a2499b544
commit
5628dff0bd
3 changed files with 65 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue