Skip to content
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

unreachable code for REMU in rv_alu.h #361

Closed
ilyakurdyukov opened this issue May 12, 2024 · 1 comment
Closed

unreachable code for REMU in rv_alu.h #361

ilyakurdyukov opened this issue May 12, 2024 · 1 comment

Comments

@ilyakurdyukov
Copy link

if (op2.sValue() == 0) {

This is literally unreachable code that was copied from DIV to REMU. GCC seems to be blind to notice this, but the EDG frontend sees this.

mortbopet added a commit that referenced this issue Jun 3, 2024
@mortbopet
Copy link
Owner

Thank you for noticing; fixed in 0af6a3f.

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

No branches or pull requests

2 participants