summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2008-02-05 08:49:09 +0000
committerNate Begeman <natebegeman@mac.com>2008-02-05 08:49:09 +0000
commitf3c89be3684a7d9b099651d3c486ac8cdb5c7a3e (patch)
tree86a8bb1e2d0e9ea0f24d293be2c6f77d5543e3f8 /llvm/lib
parentb1537ebdd4b91405ecb4fdb379120f8820e15212 (diff)
downloadbcm5719-llvm-f3c89be3684a7d9b099651d3c486ac8cdb5c7a3e.tar.gz
bcm5719-llvm-f3c89be3684a7d9b099651d3c486ac8cdb5c7a3e.zip
Ident mnemonics appropriately
llvm-svn: 46746
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
index d2d7f53aed0..95825bb217e 100644
--- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -514,10 +514,10 @@ void PPCAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
unsigned char MB = MI->getOperand(3).getImm();
unsigned char ME = MI->getOperand(4).getImm();
if (SH <= 31 && MB == 0 && ME == (31-SH)) {
- O << "slwi "; FoundMnemonic = true;
+ O << "\tslwi "; FoundMnemonic = true;
}
if (SH <= 31 && MB == (32-SH) && ME == 31) {
- O << "srwi "; FoundMnemonic = true;
+ O << "\tsrwi "; FoundMnemonic = true;
SH = 32-SH;
}
if (FoundMnemonic) {
@@ -529,7 +529,7 @@ void PPCAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
}
} else if (MI->getOpcode() == PPC::OR || MI->getOpcode() == PPC::OR8) {
if (MI->getOperand(1).getReg() == MI->getOperand(2).getReg()) {
- O << "mr ";
+ O << "\tmr ";
printOperand(MI, 0);
O << ", ";
printOperand(MI, 1);
@@ -541,7 +541,7 @@ void PPCAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
unsigned char ME = MI->getOperand(3).getImm();
// rldicr RA, RS, SH, 63-SH == sldi RA, RS, SH
if (63-SH == ME) {
- O << "sldi ";
+ O << "\tsldi ";
printOperand(MI, 0);
O << ", ";
printOperand(MI, 1);
OpenPOWER on IntegriCloud