Make the operand and format specifier match, and print all

64 bits, fixing a variety of problems.

llvm-svn: 96421
This commit is contained in:
Dan Gohman 2010-02-17 00:37:20 +00:00
parent 7244b0bb86
commit 12995ba3c0
1 changed files with 1 additions and 1 deletions

View File

@ -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");