mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Pretty print 'rldicr r2, r2, 2, 61' as 'sldi r2, r2, 2'.
llvm-svn: 31838
This commit is contained in:
parent
f50d87eb50
commit
a55a2365bc
@ -438,6 +438,18 @@ void PPCAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
|
||||
O << "\n";
|
||||
return;
|
||||
}
|
||||
} else if (MI->getOpcode() == PPC::RLDICR) {
|
||||
unsigned char SH = MI->getOperand(2).getImmedValue();
|
||||
unsigned char ME = MI->getOperand(3).getImmedValue();
|
||||
// rldicr RA, RS, SH, 63-SH == sldi RA, RS, SH
|
||||
if (63-SH == ME) {
|
||||
O << "sldi ";
|
||||
printOperand(MI, 0);
|
||||
O << ", ";
|
||||
printOperand(MI, 1);
|
||||
O << ", " << (unsigned int)SH << "\n";
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (printInstruction(MI))
|
||||
|
Loading…
Reference in New Issue
Block a user