Emit stores correctly; don't fail an assertion.

llvm-svn: 14209
This commit is contained in:
Brian Gaeke 2004-06-17 22:34:19 +00:00
parent c4ee938f55
commit 63c1d6eda8
1 changed files with 3 additions and 3 deletions

View File

@ -479,7 +479,7 @@ void V8Printer::printMachineInstruction(const MachineInstr *MI) {
// Printing memory instructions is a special case.
// for loads: %dest = op %base, offset --> op [%base + offset], %dest
// for stores: op %src, %base, offset --> op %src, [%base + offset]
// for stores: op %base, offset, %src --> op %src, [%base + offset]
if (isLoadInstruction (MI)) {
printBaseOffsetPair (MI, 1);
O << ", ";
@ -487,9 +487,9 @@ void V8Printer::printMachineInstruction(const MachineInstr *MI) {
O << "\n";
return;
} else if (isStoreInstruction (MI)) {
printOperand (MI, 0);
printOperand (MI, 2);
O << ", ";
printBaseOffsetPair (MI, 1);
printBaseOffsetPair (MI, 0);
O << "\n";
return;
}