aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Target/X86/Printer.cpp2
-rw-r--r--lib/Target/X86/X86AsmPrinter.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/Printer.cpp b/lib/Target/X86/Printer.cpp
index 3c85853..25c5ccc 100644
--- a/lib/Target/X86/Printer.cpp
+++ b/lib/Target/X86/Printer.cpp
@@ -483,7 +483,7 @@ void X86InstrInfo::print(const MachineInstr *MI, std::ostream &O,
if (MI->getNumOperands() == 3) {
unsigned Size = 4;
- emitConstant(O, MI->getOperand(1).getImmedValue(), Size);
+ emitConstant(O, MI->getOperand(2).getImmedValue(), Size);
}
O << "\n\t\t\t\t";
diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp
index 3c85853..25c5ccc 100644
--- a/lib/Target/X86/X86AsmPrinter.cpp
+++ b/lib/Target/X86/X86AsmPrinter.cpp
@@ -483,7 +483,7 @@ void X86InstrInfo::print(const MachineInstr *MI, std::ostream &O,
if (MI->getNumOperands() == 3) {
unsigned Size = 4;
- emitConstant(O, MI->getOperand(1).getImmedValue(), Size);
+ emitConstant(O, MI->getOperand(2).getImmedValue(), Size);
}
O << "\n\t\t\t\t";