diff --git a/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp b/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp index 4d6bc5c95be..e83386c88ce 100644 --- a/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp +++ b/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp @@ -180,7 +180,8 @@ void SystemZAsmPrinter::printOperand(const MachineInstr *MI, int OpNum, O << '%' << TM.getRegisterInfo()->get(MO.getReg()).AsmName; return; case MachineOperand::MO_Immediate: - O << MO.getImm(); + // FIXME: Temporary until generic tblgen stuff won't be resolved. + O << (int32_t)MO.getImm(); return; case MachineOperand::MO_MachineBasicBlock: printBasicBlockLabel(MO.getMBB());