llvm.org GIT mirror llvm / 7d1364e
clean up; NFCI git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269962 91177308-0d34-0410-b5e6-96231b3b80d8 Sanjay Patel 4 years ago
1 changed file(s) with 4 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
165165 printRegName(O, Op.getReg());
166166 } else if (Op.isImm()) {
167167 // Print X86 immediates as signed values.
168 O << markup("
169 << markup(">");
168 int64_t Imm = Op.getImm();
169 O << markup("");
170170
171171 // If there are no instruction-specific comments, add a comment clarifying
172172 // the hex value of the immediate operand when it isn't in the range
173173 // [-256,255].
174 if (CommentStream && !HasCustomInstComment &&
175 (Op.getImm() > 255 || Op.getImm() < -256))
176 *CommentStream << format("imm = 0x%" PRIX64 "\n", (uint64_t)Op.getImm());
174 if (CommentStream && !HasCustomInstComment && (Imm > 255 || Imm < -256))
175 *CommentStream << format("imm = 0x%" PRIX64 "\n", (uint64_t)Imm);
177176
178177 } else {
179178 assert(Op.isExpr() && "unknown operand kind in printOperand");