From: Wesley Peck Date: Sun, 21 Nov 2010 21:39:46 +0000 (+0000) Subject: Make it a little bit more explicit that the MBlaze backend only supports upto X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6e749f31c6373b31b780ce29d2900f965f42a2f0;p=oota-llvm.git Make it a little bit more explicit that the MBlaze backend only supports upto 32-bit immediate values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119950 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/MBlaze/InstPrinter/MBlazeInstPrinter.cpp b/lib/Target/MBlaze/InstPrinter/MBlazeInstPrinter.cpp index 704f81cfd82..a7fd287990b 100644 --- a/lib/Target/MBlaze/InstPrinter/MBlazeInstPrinter.cpp +++ b/lib/Target/MBlaze/InstPrinter/MBlazeInstPrinter.cpp @@ -56,7 +56,7 @@ void MBlazeInstPrinter::printUnsignedImm(const MCInst *MI, int OpNo, raw_ostream &O) { const MCOperand &MO = MI->getOperand(OpNo); if (MO.isImm()) - O << MO.getImm(); + O << (uint32_t)MO.getImm(); else printOperand(MI, OpNo, O, NULL); } diff --git a/lib/Target/MBlaze/MBlazeAsmPrinter.cpp b/lib/Target/MBlaze/MBlazeAsmPrinter.cpp index d919d437cca..6c206d0debf 100644 --- a/lib/Target/MBlaze/MBlazeAsmPrinter.cpp +++ b/lib/Target/MBlaze/MBlazeAsmPrinter.cpp @@ -145,7 +145,7 @@ void MBlazeAsmPrinter::printOperand(const MachineInstr *MI, int opNum, break; case MachineOperand::MO_Immediate: - O << (int)MO.getImm(); + O << (int32_t)MO.getImm(); break; case MachineOperand::MO_FPImmediate: { @@ -188,7 +188,7 @@ void MBlazeAsmPrinter::printUnsignedImm(const MachineInstr *MI, int opNum, raw_ostream &O) { const MachineOperand &MO = MI->getOperand(opNum); if (MO.isImm()) - O << (unsigned int)MO.getImm(); + O << (uint32_t)MO.getImm(); else printOperand(MI, opNum, O); }