aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-02-08 06:56:40 +0000
committerChris Lattner <sabre@nondot.org>2006-02-08 06:56:40 +0000
commit4d73a5a204b2e9f409347102fc0701e5b68699cb (patch)
tree534dbac581e91d544987a99d19a9ab0098541bef
parent8f77b73430bae0807547a9de6dcdb22d36e88bb0 (diff)
Emit the 'mr' pseudoop for easier reading.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26053 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PowerPC/PPCAsmPrinter.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 51b76bd5ea..c7218ea62c 100644
--- a/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -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))