ruiu added a comment. Did you try to run this code on a simulator? main: jmp main If not, please do. If it works (by "work", I mean the program successfully spins in the main function), I think this patch is ready to submit. Repository: rL LLVM https://reviews.llvm.org/D32991