[PATCH] [mips] Expansion of ROL and ROR instructions
daniel.sanders at imgtec.com
Tue Jun 23 08:30:57 PDT 2015
I believe it's closely related. On MIPS32r2 and later, ror/rol are aliases for rotr and rorv/rolv are aliases for rotrv/rotlv. Prior to MIPS32r2, they are macros that expand to equivalent code as per your patch.
Either way, you need to account for the case when the rotation immediate is zero.
More information about the llvm-commits