[PATCH] D87210: [Sparc] Remove cast that truncates immediate operands to 32 bits.
Brad Smith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 6 14:18:08 PDT 2020
brad created this revision.
brad added reviewers: jyknight, jfb, efriedma, venkatra.
brad added a project: LLVM.
Herald added subscribers: dexonsmith, jrtc27.
brad requested review of this revision.
Remove cast that truncates immediate operands to 32 bits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D87210
Files:
llvm/lib/Target/Sparc/SparcAsmPrinter.cpp
Index: llvm/lib/Target/Sparc/SparcAsmPrinter.cpp
===================================================================
--- llvm/lib/Target/Sparc/SparcAsmPrinter.cpp
+++ llvm/lib/Target/Sparc/SparcAsmPrinter.cpp
@@ -351,7 +351,7 @@
break;
case MachineOperand::MO_Immediate:
- O << (int)MO.getImm();
+ O << MO.getImm();
break;
case MachineOperand::MO_MachineBasicBlock:
MO.getMBB()->getSymbol()->print(O, MAI);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87210.290150.patch
Type: text/x-patch
Size: 436 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200906/f0c63127/attachment.bin>
More information about the llvm-commits
mailing list