Displaying 2 results from an estimated 2 matches for "32ba6710".
2013 Apr 06
0
[LLVMdev] Integer divide by zero
...lowered to a single
hardware instruction and avoid the branching and code bloat of manual
checks on hardware where division by zero natively traps.
-Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130406/32ba6710/attachment.html>
2013 Apr 06
3
[LLVMdev] Integer divide by zero
I'm also not fully happy with LLVM's behavior here. There is another
undefined case too, which is the minimum integer divided by -1. In
Julia I can get "random" answers by doing:
julia> sdiv_int(-9223372036854775808, -1)
87106304
julia> sdiv_int(-9223372036854775808, -1)
87108096
In other contexts where the arguments are not constant, this typically
gives an FPE trap.