Skip to content
Snippets Groups Projects
Commit c626a13c authored by Ben Gamari's avatar Ben Gamari :turtle:
Browse files

Rule out overflowing signed divisions

Consider a signed division such as (-128::W8) / (-1::W8). GHC lowers
this to IDIV which will throw an FP exception since the 8-bit target
register is too small to accommodate the result, 128.

Therefore, we are going to specify the Quot primop as being undefined
in cases where the result overflows.

See #1.
parent f535958a
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment