RKSimon added a comment. Wouldn't it be better/safer to create ARMISD shift opcodes to handle this behaviour? Repository: rL LLVM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D61400/new/ https://reviews.llvm.org/D61400