Lines Matching refs:Op
62 void X86ATTInstPrinter::printSSECC(const MCInst *MI, unsigned Op, in printSSECC() argument
64 int64_t Imm = MI->getOperand(Op).getImm() & 0xf; in printSSECC()
86 void X86ATTInstPrinter::printAVXCC(const MCInst *MI, unsigned Op, in printAVXCC() argument
88 int64_t Imm = MI->getOperand(Op).getImm() & 0x1f; in printAVXCC()
132 const MCOperand &Op = MI->getOperand(OpNo); in printPCRelImm() local
133 if (Op.isImm()) in printPCRelImm()
134 O << formatImm(Op.getImm()); in printPCRelImm()
136 assert(Op.isExpr() && "unknown pcrel immediate operand"); in printPCRelImm()
139 const MCConstantExpr *BranchTarget = dyn_cast<MCConstantExpr>(Op.getExpr()); in printPCRelImm()
147 O << *Op.getExpr(); in printPCRelImm()
154 const MCOperand &Op = MI->getOperand(OpNo); in printOperand() local
155 if (Op.isReg()) { in printOperand()
156 printRegName(O, Op.getReg()); in printOperand()
157 } else if (Op.isImm()) { in printOperand()
160 << '$' << formatImm((int64_t)Op.getImm()) in printOperand()
163 if (CommentStream && (Op.getImm() > 255 || Op.getImm() < -256)) in printOperand()
164 *CommentStream << format("imm = 0x%" PRIX64 "\n", (uint64_t)Op.getImm()); in printOperand()
167 assert(Op.isExpr() && "unknown operand kind in printOperand"); in printOperand()
169 << '$' << *Op.getExpr() in printOperand()
174 void X86ATTInstPrinter::printMemReference(const MCInst *MI, unsigned Op, in printMemReference() argument
176 const MCOperand &BaseReg = MI->getOperand(Op); in printMemReference()
177 const MCOperand &IndexReg = MI->getOperand(Op+2); in printMemReference()
178 const MCOperand &DispSpec = MI->getOperand(Op+3); in printMemReference()
179 const MCOperand &SegReg = MI->getOperand(Op+4); in printMemReference()
185 printOperand(MI, Op+4, O); in printMemReference()
201 printOperand(MI, Op, O); in printMemReference()
205 printOperand(MI, Op+2, O); in printMemReference()
206 unsigned ScaleVal = MI->getOperand(Op+1).getImm(); in printMemReference()