From e98e4a05265eb13841f6aa9a6ec8f463b8895603 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Sat, 20 Oct 2001 20:56:40 +0000 Subject: [PATCH] Minor bug fix in printing operands of JMPL. llvm-svn: 926 --- lib/Target/Sparc/EmitAssembly.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/Sparc/EmitAssembly.cpp b/lib/Target/Sparc/EmitAssembly.cpp index aa676301e48..6c6d3a3de89 100644 --- a/lib/Target/Sparc/EmitAssembly.cpp +++ b/lib/Target/Sparc/EmitAssembly.cpp @@ -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;