From abbae3bc5e397a95b63f734f109f8ce6d4a0dc47 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Thu, 16 Jul 2009 14:00:42 +0000 Subject: [PATCH] Temporary workaround problem with signed 32-bit imm's llvm-svn: 75967 --- llvm/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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());