Lines Matching refs:Op
72 void X86ATTInstPrinter::printSSEAVXCC(const MCInst *MI, unsigned Op, in printSSEAVXCC() argument
74 int64_t Imm = MI->getOperand(Op).getImm(); in printSSEAVXCC()
112 void X86ATTInstPrinter::printXOPCC(const MCInst *MI, unsigned Op, in printXOPCC() argument
114 int64_t Imm = MI->getOperand(Op).getImm(); in printXOPCC()
128 void X86ATTInstPrinter::printRoundingControl(const MCInst *MI, unsigned Op, in printRoundingControl() argument
130 int64_t Imm = MI->getOperand(Op).getImm() & 0x3; in printRoundingControl()
144 const MCOperand &Op = MI->getOperand(OpNo); in printPCRelImm() local
145 if (Op.isImm()) in printPCRelImm()
146 O << formatImm(Op.getImm()); in printPCRelImm()
148 assert(Op.isExpr() && "unknown pcrel immediate operand"); in printPCRelImm()
151 const MCConstantExpr *BranchTarget = dyn_cast<MCConstantExpr>(Op.getExpr()); in printPCRelImm()
157 Op.getExpr()->print(O, &MAI); in printPCRelImm()
164 const MCOperand &Op = MI->getOperand(OpNo); in printOperand() local
165 if (Op.isReg()) { in printOperand()
166 printRegName(O, Op.getReg()); in printOperand()
167 } else if (Op.isImm()) { in printOperand()
169 O << markup("<imm:") << '$' << formatImm((int64_t)Op.getImm()) in printOperand()
176 (Op.getImm() > 255 || Op.getImm() < -256)) in printOperand()
177 *CommentStream << format("imm = 0x%" PRIX64 "\n", (uint64_t)Op.getImm()); in printOperand()
180 assert(Op.isExpr() && "unknown operand kind in printOperand"); in printOperand()
182 Op.getExpr()->print(O, &MAI); in printOperand()
187 void X86ATTInstPrinter::printMemReference(const MCInst *MI, unsigned Op, in printMemReference() argument
189 const MCOperand &BaseReg = MI->getOperand(Op + X86::AddrBaseReg); in printMemReference()
190 const MCOperand &IndexReg = MI->getOperand(Op + X86::AddrIndexReg); in printMemReference()
191 const MCOperand &DispSpec = MI->getOperand(Op + X86::AddrDisp); in printMemReference()
192 const MCOperand &SegReg = MI->getOperand(Op + X86::AddrSegmentReg); in printMemReference()
198 printOperand(MI, Op + X86::AddrSegmentReg, O); in printMemReference()
214 printOperand(MI, Op + X86::AddrBaseReg, O); in printMemReference()
218 printOperand(MI, Op + X86::AddrIndexReg, O); in printMemReference()
219 unsigned ScaleVal = MI->getOperand(Op + X86::AddrScaleAmt).getImm(); in printMemReference()
231 void X86ATTInstPrinter::printSrcIdx(const MCInst *MI, unsigned Op, in printSrcIdx() argument
233 const MCOperand &SegReg = MI->getOperand(Op + 1); in printSrcIdx()
239 printOperand(MI, Op + 1, O); in printSrcIdx()
244 printOperand(MI, Op, O); in printSrcIdx()
250 void X86ATTInstPrinter::printDstIdx(const MCInst *MI, unsigned Op, in printDstIdx() argument
255 printOperand(MI, Op, O); in printDstIdx()
261 void X86ATTInstPrinter::printMemOffset(const MCInst *MI, unsigned Op, in printMemOffset() argument
263 const MCOperand &DispSpec = MI->getOperand(Op); in printMemOffset()
264 const MCOperand &SegReg = MI->getOperand(Op + 1); in printMemOffset()
270 printOperand(MI, Op + 1, O); in printMemOffset()
284 void X86ATTInstPrinter::printU8Imm(const MCInst *MI, unsigned Op, in printU8Imm() argument
286 O << markup("<imm:") << '$' << formatImm(MI->getOperand(Op).getImm() & 0xff) in printU8Imm()