mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-06 18:46:18 +00:00
clean up; NFCI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269962 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
17e3d064b5
commit
7d1364e974
@ -166,15 +166,14 @@ void X86ATTInstPrinter::printOperand(const MCInst *MI, unsigned OpNo,
|
||||
printRegName(O, Op.getReg());
|
||||
} else if (Op.isImm()) {
|
||||
// Print X86 immediates as signed values.
|
||||
O << markup("<imm:") << '$' << formatImm((int64_t)Op.getImm())
|
||||
<< markup(">");
|
||||
int64_t Imm = Op.getImm();
|
||||
O << markup("<imm:") << '$' << formatImm(Imm) << markup(">");
|
||||
|
||||
// If there are no instruction-specific comments, add a comment clarifying
|
||||
// the hex value of the immediate operand when it isn't in the range
|
||||
// [-256,255].
|
||||
if (CommentStream && !HasCustomInstComment &&
|
||||
(Op.getImm() > 255 || Op.getImm() < -256))
|
||||
*CommentStream << format("imm = 0x%" PRIX64 "\n", (uint64_t)Op.getImm());
|
||||
if (CommentStream && !HasCustomInstComment && (Imm > 255 || Imm < -256))
|
||||
*CommentStream << format("imm = 0x%" PRIX64 "\n", (uint64_t)Imm);
|
||||
|
||||
} else {
|
||||
assert(Op.isExpr() && "unknown operand kind in printOperand");
|
||||
|
Loading…
x
Reference in New Issue
Block a user