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
This commit is contained in:
Wesley Peck 2010-11-21 21:39:46 +00:00
parent 5437ba48ce
commit 6e749f31c6
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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);
}