From: Dan Gohman Date: Wed, 17 Feb 2010 00:37:20 +0000 (+0000) Subject: Make the operand and format specifier match, and print all X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=36b01cb8856545214945bfbe8c1ffe6741f895a5;p=oota-llvm.git Make the operand and format specifier match, and print all 64 bits, fixing a variety of problems. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96421 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp index 1a35a4941c2..734a545555f 100644 --- 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");