Minor bug fix in printing operands of JMPL.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Sat, 20 Oct 2001 20:56:40 +0000 (20:56 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Sat, 20 Oct 2001 20:56:40 +0000 (20:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@926 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9AsmPrinter.cpp

index aa676301e48bacbbc422de585eb20611ea912d54..6c6d3a3de89beb05c18cab7c4e9bd25860268d4b 100644 (file)
@@ -166,9 +166,9 @@ void SparcAsmPrinter::emitMachineInst(const MachineInstr *MI) {
     assert(MI->getNumOperands() == 3 && "Unexpected JMPL instr!");
     printOperand(MI->getOperand(0));
     Out << "+";
-    printOperand(MI->getOperand(0));
+    printOperand(MI->getOperand(1));
     Out << ", ";
-    printOperand(MI->getOperand(0));
+    printOperand(MI->getOperand(2));
     Out << endl;
     return;
   default: break;