-
Notifications
You must be signed in to change notification settings - Fork 893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Misoptimization of wide shifts #4164
Labels
Comments
flaviens
added
the
pending-verification
This issue is pending verification and/or reproduction
label
Jan 26, 2024
Reproduces with
with log output
|
povik
added
bug
and removed
pending-verification
This issue is pending verification and/or reproduction
labels
Jan 26, 2024
Looks like the blame is on Line 1306 in 80511ce
|
This might be the same bug as #4010. I have some work in progress to detect and error out on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
Yosys 0.37+29 (git sha1 3c3788e, clang 10.0.0-4ubuntu1 -fPIC -Os)
On which OS did this happen?
Linux
Reproduction Steps
Hi there!
I stumbled into an issue where a wide shift gets some misoptimization.
I could reduce it to a very simple circuit, that is packaged into this repository for helping you reproduce the issue.
Interestingly, reducing the shift operand width by 1 more will clear the bug.
Please let me know if you require any more information or help, or please let me know if I did something wrong here.
Thank you!
Flavien
Expected Behavior
no optimization
Output: 00000000
with optimization
Output: 00000000
Actual Behavior
no optimization
Output: 00000000
with optimization
Output: ffffffff
The text was updated successfully, but these errors were encountered: