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 1f818d2e25
commit d35c563d80

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