[llvm-commits] [llvm] r119950 - in /llvm/trunk/lib/Target/MBlaze: InstPrinter/MBlazeInstPrinter.cpp MBlazeAsmPrinter.cpp
Wesley Peck
peckw at wesleypeck.com
Sun Nov 21 13:39:46 PST 2010
Author: peckw
Date: Sun Nov 21 15:39:46 2010
New Revision: 119950
URL: http://llvm.org/viewvc/llvm-project?rev=119950&view=rev
Log:
Make it a little bit more explicit that the MBlaze backend only supports upto
32-bit immediate values.
Modified:
llvm/trunk/lib/Target/MBlaze/InstPrinter/MBlazeInstPrinter.cpp
llvm/trunk/lib/Target/MBlaze/MBlazeAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/MBlaze/InstPrinter/MBlazeInstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MBlaze/InstPrinter/MBlazeInstPrinter.cpp?rev=119950&r1=119949&r2=119950&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MBlaze/InstPrinter/MBlazeInstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/MBlaze/InstPrinter/MBlazeInstPrinter.cpp Sun Nov 21 15:39:46 2010
@@ -56,7 +56,7 @@
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);
}
Modified: llvm/trunk/lib/Target/MBlaze/MBlazeAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MBlaze/MBlazeAsmPrinter.cpp?rev=119950&r1=119949&r2=119950&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MBlaze/MBlazeAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/MBlaze/MBlazeAsmPrinter.cpp Sun Nov 21 15:39:46 2010
@@ -145,7 +145,7 @@
break;
case MachineOperand::MO_Immediate:
- O << (int)MO.getImm();
+ O << (int32_t)MO.getImm();
break;
case MachineOperand::MO_FPImmediate: {
@@ -188,7 +188,7 @@
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);
}
More information about the llvm-commits
mailing list