mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
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:
parent
5437ba48ce
commit
6e749f31c6
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user