rrthomas/beetle

Division of -2^31 by -1

Closed this issue · 1 comments

Should raise an error.

In fact, the Forth standard says "In all integer arithmetic operations, both overflow and underflow shall be ignored. The value returned when either overflow or underflow occurs is implementation defined." So instead, define the result as ARM does: -(2^31)/-1 = -(2^31).