[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Feb 7 22:56:52 PST 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCAsmPrinter.cpp updated: 1.147 -> 1.148
---
Log message:
Emit the 'mr' pseudoop for easier reading.
---
Diffs of the changes: (+9 -0)
PPCAsmPrinter.cpp | 9 +++++++++
1 files changed, 9 insertions(+)
Index: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff -u llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.147 llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.148
--- llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.147 Mon Feb 6 16:18:19 2006
+++ llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp Wed Feb 8 00:56:40 2006
@@ -422,6 +422,15 @@
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))
More information about the llvm-commits
mailing list