forked from OSchip/llvm-project
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:
parent
7244b0bb86
commit
12995ba3c0
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue