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

frem/fdiv/drem/ddiv throw ArithmeticException when the divisor is zero #30

Open
I-asked opened this issue Jan 19, 2024 · 1 comment
Open
Labels

Comments

@I-asked
Copy link

I-asked commented Jan 19, 2024

See the sixth chapter of the JVM specs: https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-6.html, for example fdiv:

Despite the fact that overflow, underflow, division by zero, or loss of precision may occur, execution of an fdiv instruction never throws a run-time exception.

digitalgust added a commit that referenced this issue Jan 20, 2024
@digitalgust
Copy link
Owner

good, remove throw Arith exception for fdiv ddiv frem drem instructions.

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

2 participants