Home | History | Annotate | Download | only in X86

Lines Matching refs:Op

48 static void printMemReference(MCInst *MI, unsigned Op, SStream *O);
186 static void printSSECC(MCInst *MI, unsigned Op, SStream *OS)
188 int64_t Imm = MCOperand_getImm(MCInst_getOperand(MI, Op)) & 7;
210 static void printAVXCC(MCInst *MI, unsigned Op, SStream *O)
212 int64_t Imm = MCOperand_getImm(MCInst_getOperand(MI, Op)) & 0x1f;
250 static void printRoundingControl(MCInst *MI, unsigned Op, SStream *O)
252 int64_t Imm = MCOperand_getImm(MCInst_getOperand(MI, Op)) & 0x3;
273 MCOperand *Op = MCInst_getOperand(MI, OpNo);
274 if (MCOperand_isReg(Op)) {
275 printRegName(O, MCOperand_getReg(Op));
276 } else if (MCOperand_isImm(Op)) {
277 int64_t imm = MCOperand_getImm(Op);
293 static void printSrcIdx(MCInst *MI, unsigned Op, SStream *O)
308 SegReg = MCInst_getOperand(MI, Op+1);
313 _printOperand(MI, Op+1, O);
322 printOperand(MI, Op, O);
327 static void printDstIdx(MCInst *MI, unsigned Op, SStream *O)
349 printOperand(MI, Op, O);
410 static void printMemOffset(MCInst *MI, unsigned Op, SStream *O)
412 MCOperand *DispSpec = MCInst_getOperand(MI, Op);
413 MCOperand *SegReg = MCInst_getOperand(MI, Op + 1);
429 _printOperand(MI, Op + 1, O);
510 // first op can be embedded in the asm by llvm.
513 // shift all the ops right to leave 1st slot for this new register op
542 MCOperand *Op = MCInst_getOperand(MI, OpNo);
543 if (MCOperand_isImm(Op)) {
544 int64_t imm = MCOperand_getImm(Op) + MI->flat_insn->size + MI->address;
574 // if op_count > 0, then this operand's size is taken from the destination op
591 MCOperand *Op = MCInst_getOperand(MI, OpNo);
593 if (MCOperand_isReg(Op)) {
594 unsigned int reg = MCOperand_getReg(Op);
610 } else if (MCOperand_isImm(Op)) {
611 int64_t imm = MCOperand_getImm(Op);
766 static void printMemReference(MCInst *MI, unsigned Op, SStream *O)
769 MCOperand *BaseReg = MCInst_getOperand(MI, Op + X86_AddrBaseReg);
770 uint64_t ScaleVal = MCOperand_getImm(MCInst_getOperand(MI, Op + X86_AddrScaleAmt));
771 MCOperand *IndexReg = MCInst_getOperand(MI, Op + X86_AddrIndexReg);
772 MCOperand *DispSpec = MCInst_getOperand(MI, Op + X86_AddrDisp);
773 MCOperand *SegReg = MCInst_getOperand(MI, Op + X86_AddrSegmentReg);
789 _printOperand(MI, Op + X86_AddrSegmentReg, O);
799 _printOperand(MI, Op + X86_AddrBaseReg, O);
805 _printOperand(MI, Op + X86_AddrIndexReg, O);