davide accepted this revision. davide added a comment. This revision is now accepted and ready to land. This looks correct, but I'll let Kuba comment as he wrote this unittest originally. Repository: rL LLVM https://reviews.llvm.org/D46696