miniJVM icon indicating copy to clipboard operation
miniJVM copied to clipboard

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

Open I-asked opened this issue 1 year ago • 1 comments

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.

I-asked avatar Jan 19 '24 08:01 I-asked

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

digitalgust avatar Jan 20 '24 19:01 digitalgust