davide accepted this revision. davide added a comment. This revision is now accepted and ready to land. LGTM, I didn't think about modulo when I did this for integer division, but, as you say, it's a natural extension. Repository: rL LLVM https://reviews.llvm.org/D43631