Make it a little bit more explicit that the MBlaze backend only supports upto
authorWesley Peck <peckw@wesleypeck.com>
Sun, 21 Nov 2010 21:39:46 +0000 (21:39 +0000)
committerWesley Peck <peckw@wesleypeck.com>
Sun, 21 Nov 2010 21:39:46 +0000 (21:39 +0000)
32-bit immediate values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119950 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/MBlaze/InstPrinter/MBlazeInstPrinter.cpp
lib/Target/MBlaze/MBlazeAsmPrinter.cpp

index 704f81cfd821ef655f171bffbd06d0de3135b254..a7fd287990b7f4d6fe635610084b37bf0b45b371 100644 (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);
 }
index d919d437cca1be81b327518830c314585f8bae32..6c206d0debfd9a04f18b70f8a9dd436ea55ba455 100644 (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);
 }