diff --git a/llvm/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp b/llvm/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp index 4d6bc5c95be4..e83386c88ce6 100644 --- a/llvm/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp +++ b/llvm/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());