That might be an LLVM bug.
`I64.max_value() + 1` gives the expected result.
I'm going to have to look into that.
Thanks.
`I64.max_value() + 1` gives the expected result.
I'm going to have to look into that.
Thanks.
Unfortunately LLVM considers division overflow undefined: http://llvm.org/docs/LangRef.html#id109
If it's any use, you can see what Julia ended up doing here: https://github.com/JuliaLang/julia/issues/8188
And thank you for the additional info, I've updated the issue I opened accordingly: