git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235803
91177308-0d34-0410-b5e6-
96231b3b80d8
unsigned Imm = MI->getOperand(OpNum).getImm();
if (Imm == 0)
return;
- O << ", ror " << markup("<imm:") << "#";
- switch (Imm) {
- default:
- assert(0 && "illegal ror immediate!");
- case 1:
- O << "8";
- break;
- case 2:
- O << "16";
- break;
- case 3:
- O << "24";
- break;
- }
- O << markup(">");
+ assert(Imm <= 3 && "illegal ror immediate!");
+ O << ", ror " << markup("<imm:") << "#" << 8 * Imm << markup(">");
}
void ARMInstPrinter::printModImmOperand(const MCInst *MI, unsigned OpNum,