mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-15 07:59:50 +00:00
[ARM] Simplify code. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235803 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4b86b0db83
commit
b6ee10d9e5
@ -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
Block a user