forked from OSchip/llvm-project
parent
6246069c89
commit
a44b37e676
|
@ -1379,21 +1379,8 @@ void ARMInstPrinter::printRotImmOperand(const MCInst *MI, unsigned OpNum,
|
|||
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,
|
||||
|
|
Loading…
Reference in New Issue