mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +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:
@@ -56,7 +56,7 @@ void MBlazeInstPrinter::printUnsignedImm(const MCInst *MI, int OpNo,
|
|||||||
raw_ostream &O) {
|
raw_ostream &O) {
|
||||||
const MCOperand &MO = MI->getOperand(OpNo);
|
const MCOperand &MO = MI->getOperand(OpNo);
|
||||||
if (MO.isImm())
|
if (MO.isImm())
|
||||||
O << MO.getImm();
|
O << (uint32_t)MO.getImm();
|
||||||
else
|
else
|
||||||
printOperand(MI, OpNo, O, NULL);
|
printOperand(MI, OpNo, O, NULL);
|
||||||
}
|
}
|
||||||
|
@@ -145,7 +145,7 @@ void MBlazeAsmPrinter::printOperand(const MachineInstr *MI, int opNum,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case MachineOperand::MO_Immediate:
|
case MachineOperand::MO_Immediate:
|
||||||
O << (int)MO.getImm();
|
O << (int32_t)MO.getImm();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MachineOperand::MO_FPImmediate: {
|
case MachineOperand::MO_FPImmediate: {
|
||||||
@@ -188,7 +188,7 @@ void MBlazeAsmPrinter::printUnsignedImm(const MachineInstr *MI, int opNum,
|
|||||||
raw_ostream &O) {
|
raw_ostream &O) {
|
||||||
const MachineOperand &MO = MI->getOperand(opNum);
|
const MachineOperand &MO = MI->getOperand(opNum);
|
||||||
if (MO.isImm())
|
if (MO.isImm())
|
||||||
O << (unsigned int)MO.getImm();
|
O << (uint32_t)MO.getImm();
|
||||||
else
|
else
|
||||||
printOperand(MI, opNum, O);
|
printOperand(MI, opNum, O);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user