mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-27 14:07:32 +00:00
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
1f818d2e25
commit
d35c563d80
@ -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
Block a user