mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 14:46:53 +00:00
Emit the 'mr' pseudoop for easier reading.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26053 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8f77b73430
commit
4d73a5a204
@ -422,6 +422,15 @@ void PPCAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
|
||||
O << ", " << (unsigned int)SH << "\n";
|
||||
return;
|
||||
}
|
||||
} else if (MI->getOpcode() == PPC::OR4 || MI->getOpcode() == PPC::OR8) {
|
||||
if (MI->getOperand(1).getReg() == MI->getOperand(2).getReg()) {
|
||||
O << "mr ";
|
||||
printOperand(MI, 0);
|
||||
O << ", ";
|
||||
printOperand(MI, 1);
|
||||
O << "\n";
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (printInstruction(MI))
|
||||
|
Loading…
Reference in New Issue
Block a user