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

div instruction should not set fcsr/DZ when dividing by zero #16

Open
FanShupei opened this issue Aug 31, 2021 · 0 comments
Open

div instruction should not set fcsr/DZ when dividing by zero #16

FanShupei opened this issue Aug 31, 2021 · 0 comments

Comments

@FanShupei
Copy link

In rvemu, div/divu/divw/divuw instructions set DZ bit when dividing by zero.

The spec says "The accrued exception flags indicate the exception conditions that have arisen on any floating-point arithmetic instruction since the field was last reset by software", so I think fscr should not be modified by integer arithmetic instructions. This should be a bug.

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

1 participant