mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
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
This commit is contained in:
parent
e609a513f3
commit
36b01cb885
@ -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