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

Fix signed division overflow case #29

Merged
merged 1 commit into from
Aug 30, 2023
Merged

Conversation

fourcolor
Copy link
Contributor

Refer to RISC-V ISA spec Chapter 6, signed division overflow occurs only when the most-negative integer, $−2^{XLEN −1}$, is divided by $−1$. The quotient of signed division overflow is equal to the dividend, and the remainder is zero.

@jserv jserv merged commit 8e61456 into sysprog21:master Aug 30, 2023
2 checks passed
@jserv
Copy link
Collaborator

jserv commented Aug 30, 2023

Thank @fourcolor for contributing!

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.

2 participants