rengolin added a comment. I don't know much about COFF TLS to tell why you need the special treatment, but the AArch64 asm looks correct (though very inefficient, but you know that:). Repository: rL LLVM https://reviews.llvm.org/D43971