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

Consider divide by zero #15

Open
pirapira opened this issue Sep 5, 2016 · 1 comment
Open

Consider divide by zero #15

pirapira opened this issue Sep 5, 2016 · 1 comment
Labels

Comments

@pirapira
Copy link
Owner

pirapira commented Sep 5, 2016

A division instruction should produce two behaviors, one for divide by zero and the other for divide by non-zero. (When the divisor is known to be non-zero, only one behavior is fine.)

Instructions involving division return zero when the divisor is zero. This should be taken into account for *DIV and *MOD instructions.

@pirapira
Copy link
Owner Author

pirapira commented Sep 5, 2016

Or, we can cut corners by saying "a / 0 = 0 for any a" (like in ssreflect).

@pirapira pirapira added the ready label Jun 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant