Lines Matching refs:Op
49 static void printMemReference(MCInst *MI, unsigned Op, SStream *O);
164 static void printSSECC(MCInst *MI, unsigned Op, SStream *OS)
166 int64_t Imm = MCOperand_getImm(MCInst_getOperand(MI, Op)) & 7;
188 static void printAVXCC(MCInst *MI, unsigned Op, SStream *O)
190 int64_t Imm = MCOperand_getImm(MCInst_getOperand(MI, Op)) & 0x1f;
228 static void printRoundingControl(MCInst *MI, unsigned Op, SStream *O)
230 int64_t Imm = MCOperand_getImm(MCInst_getOperand(MI, Op)) & 0x3;
247 MCOperand *Op = MCInst_getOperand(MI, OpNo);
248 if (MCOperand_isReg(Op)) {
249 printRegName(O, MCOperand_getReg(Op));
250 } else if (MCOperand_isImm(Op)) {
252 int64_t imm = MCOperand_getImm(Op);
267 static void printSrcIdx(MCInst *MI, unsigned Op, SStream *O)
282 SegReg = MCInst_getOperand(MI, Op+1);
287 _printOperand(MI, Op+1, O);
298 printOperand(MI, Op, O);
304 static void printDstIdx(MCInst *MI, unsigned Op, SStream *O)
327 printOperand(MI, Op, O);
381 static void printMemOffset(MCInst *MI, unsigned Op, SStream *O)
383 MCOperand *DispSpec = MCInst_getOperand(MI, Op);
384 MCOperand *SegReg = MCInst_getOperand(MI, Op+1);
400 _printOperand(MI, Op + 1, O);
455 MCOperand *Op = MCInst_getOperand(MI, OpNo);
456 if (MCOperand_isImm(Op)) {
457 int64_t imm = MCOperand_getImm(Op) + MI->flat_insn->size + MI->address;
497 MCOperand *Op = MCInst_getOperand(MI, OpNo);
499 if (MCOperand_isReg(Op)) {
500 Op);
512 } else if (MCOperand_isImm(Op)) {
514 int64_t imm = MCOperand_getImm(Op);
672 static void printMemReference(MCInst *MI, unsigned Op, SStream *O)
674 MCOperand *BaseReg = MCInst_getOperand(MI, Op + X86_AddrBaseReg);
675 MCOperand *IndexReg = MCInst_getOperand(MI, Op + X86_AddrIndexReg);
676 MCOperand *DispSpec = MCInst_getOperand(MI, Op + X86_AddrDisp);
677 MCOperand *SegReg = MCInst_getOperand(MI, Op + X86_AddrSegmentReg);
694 _printOperand(MI, Op + X86_AddrSegmentReg, O);
740 _printOperand(MI, Op + X86_AddrBaseReg, O);
744 _printOperand(MI, Op + X86_AddrIndexReg, O);
745 ScaleVal = MCOperand_getImm(MCInst_getOperand(MI, Op + X86_AddrScaleAmt));
813 // if op_count > 1, then this operand's size is taken from the destination op
827 // some instructions need to supply immediate 1 in the first op
895 // shift all the ops right to leave 1st slot for this new register op
904 // special instruction needs to supply register op
905 // first op can be embedded in the asm by llvm.
909 // shift all the ops right to leave 1st slot for this new register op