mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fix bug in printing loads.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12741 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4be7ca5721
commit
fa4bb09cf0
@ -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)) {
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user