lewis-revill added a comment. Yes I could look into that. I think there is currently problems with selecting SIGN_EXTEND_INREG for rv64 (I may be misremembering), so it would be good to investigate that at the same time. Repository: rL LLVM https://reviews.llvm.org/D52833