1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

Fix bug in printing loads.

llvm-svn: 12741
This commit is contained in:
Brian Gaeke 2004-04-07 04:29:03 +00:00
parent be45dbdaf8
commit 90c53bcbda

View File

@ -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 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)) {