aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Sparc/SparcAsmPrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/Sparc/SparcAsmPrinter.cpp')
-rw-r--r--lib/Target/Sparc/SparcAsmPrinter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/Sparc/SparcAsmPrinter.cpp b/lib/Target/Sparc/SparcAsmPrinter.cpp
index 71a797105f..e6b0a98f03 100644
--- a/lib/Target/Sparc/SparcAsmPrinter.cpp
+++ b/lib/Target/Sparc/SparcAsmPrinter.cpp
@@ -467,12 +467,12 @@ void V8Printer::printMachineInstruction(const MachineInstr *MI) {
O << Desc.Name << " ";
// Printing memory instructions is a special case.
- // for loads: op %base, offset, %dest --> op [%base + offset], %dest
- // for stores: op %src, %base, offset --> op %src, [%base + offset]
+ // for loads: %dest = op %base, offset --> op [%base + offset], %dest
+ // for stores: op %src, %base, offset --> op %src, [%base + offset]
if (isLoadInstruction (MI)) {
- printBaseOffsetPair (MI, 0);
+ printBaseOffsetPair (MI, 1);
O << ", ";
- printOperand (MI->getOperand (2));
+ printOperand (MI->getOperand (0));
O << "\n";
return;
} else if (isStoreInstruction (MI)) {