projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e609a51
)
Make the operand and format specifier match, and print all
author
Dan Gohman
<gohman@apple.com>
Wed, 17 Feb 2010 00:37:20 +0000
(
00:37
+0000)
committer
Dan Gohman
<gohman@apple.com>
Wed, 17 Feb 2010 00:37:20 +0000
(
00:37
+0000)
64 bits, fixing a variety of problems.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96421
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
b/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
index 1a35a4941c223d12e3d383e88953cae285109b03..734a545555f92df556dc3647e3de21b50bec9276 100644
(file)
--- a/
lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
+++ b/
lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
@@
-73,7
+73,7
@@
void X86ATTInstPrinter::printOperand(const MCInst *MI, unsigned OpNo) {
O << '$' << Op.getImm();
if (CommentStream && (Op.getImm() > 255 || Op.getImm() < -256))
- *CommentStream << format("imm = 0x%
X\n",
Op.getImm());
+ *CommentStream << format("imm = 0x%
llX\n", (long long)
Op.getImm());
} else {
assert(Op.isExpr() && "unknown operand kind in printOperand");