projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f77b73
)
Emit the 'mr' pseudoop for easier reading.
author
Chris Lattner
<sabre@nondot.org>
Wed, 8 Feb 2006 06:56:40 +0000
(06:56 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 8 Feb 2006 06:56:40 +0000
(06:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26053
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/PowerPC/PPCAsmPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/PowerPC/PPCAsmPrinter.cpp
b/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 51b76bd5ea03b9b3672d7c7a5463347230d2f8b7..c7218ea62c41f85d8639e9608e302b20b20f893c 100644
(file)
--- 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))