From 12995ba3c0f8737c3ae0ae3cf028ae88e19577d1 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 17 Feb 2010 00:37:20 +0000 Subject: [PATCH] Make the operand and format specifier match, and print all 64 bits, fixing a variety of problems. llvm-svn: 96421 --- llvm/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp b/llvm/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp index 1a35a4941c22..734a545555f9 100644 --- a/llvm/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp +++ b/llvm/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");