8000 Fix arithmetic left-shift by constants over 32 bits (#6007) by sdjasj · Pull Request #6015 · verilator/verilator · GitHub
[go: up one dir, main page]

Skip to content

Fix arithmetic left-shift by constants over 32 bits (#6007) #6015

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

8000
Merged
merged 2 commits into from
May 17, 2025

Conversation

sdjasj
Copy link
Contributor
@sdjasj sdjasj commented May 17, 2025

Fix #6007 . Although @yTakatsukasa suggested using uint64_t instead of int, it seems that uint32_t should be sufficient? since the bit width will not exceed the range representable by uint32_t.

@wsnyder wsnyder changed the title Fix arithmetic left-shift by constants over 32 bits Fix arithmetic left-shift by constants over 32 bits (#6007) May 17, 2025
@wsnyder wsnyder merged commit fc70053 into verilator:master May 17, 2025
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect Optimization Causes Mismatched Output in Verilator
2 participants
0