Implement core.checkedint in terms of LLVM intrinsics.