Lines Matching refs:MI
56 void PPCInstPrinter::printInst(const MCInst *MI, raw_ostream &O, in printInst() argument
59 if (MI->getOpcode() == PPC::RLWINM) { in printInst()
60 unsigned char SH = MI->getOperand(2).getImm(); in printInst()
61 unsigned char MB = MI->getOperand(3).getImm(); in printInst()
62 unsigned char ME = MI->getOperand(4).getImm(); in printInst()
72 printOperand(MI, 0, O); in printInst()
74 printOperand(MI, 1, O); in printInst()
82 if ((MI->getOpcode() == PPC::OR || MI->getOpcode() == PPC::OR8) && in printInst()
83 MI->getOperand(1).getReg() == MI->getOperand(2).getReg()) { in printInst()
85 printOperand(MI, 0, O); in printInst()
87 printOperand(MI, 1, O); in printInst()
92 if (MI->getOpcode() == PPC::RLDICR) { in printInst()
93 unsigned char SH = MI->getOperand(2).getImm(); in printInst()
94 unsigned char ME = MI->getOperand(3).getImm(); in printInst()
98 printOperand(MI, 0, O); in printInst()
100 printOperand(MI, 1, O); in printInst()
115 if (MI->getOpcode() == PPC::DCBT || MI->getOpcode() == PPC::DCBTST) { in printInst()
116 unsigned char TH = MI->getOperand(0).getImm(); in printInst()
118 if (MI->getOpcode() == PPC::DCBTST) in printInst()
128 printOperand(MI, 1, O); in printInst()
130 printOperand(MI, 2, O); in printInst()
139 if (!printAliasInstr(MI, O)) in printInst()
140 printInstruction(MI, O); in printInst()
145 void PPCInstPrinter::printPredicateOperand(const MCInst *MI, unsigned OpNo, in printPredicateOperand() argument
148 unsigned Code = MI->getOperand(OpNo).getImm(); in printPredicateOperand()
239 printOperand(MI, OpNo+1, O); in printPredicateOperand()
242 void PPCInstPrinter::printU1ImmOperand(const MCInst *MI, unsigned OpNo, in printU1ImmOperand() argument
244 unsigned int Value = MI->getOperand(OpNo).getImm(); in printU1ImmOperand()
249 void PPCInstPrinter::printU2ImmOperand(const MCInst *MI, unsigned OpNo, in printU2ImmOperand() argument
251 unsigned int Value = MI->getOperand(OpNo).getImm(); in printU2ImmOperand()
256 void PPCInstPrinter::printU3ImmOperand(const MCInst *MI, unsigned OpNo, in printU3ImmOperand() argument
258 unsigned int Value = MI->getOperand(OpNo).getImm(); in printU3ImmOperand()
263 void PPCInstPrinter::printU4ImmOperand(const MCInst *MI, unsigned OpNo, in printU4ImmOperand() argument
265 unsigned int Value = MI->getOperand(OpNo).getImm(); in printU4ImmOperand()
270 void PPCInstPrinter::printS5ImmOperand(const MCInst *MI, unsigned OpNo, in printS5ImmOperand() argument
272 int Value = MI->getOperand(OpNo).getImm(); in printS5ImmOperand()
277 void PPCInstPrinter::printU5ImmOperand(const MCInst *MI, unsigned OpNo, in printU5ImmOperand() argument
279 unsigned int Value = MI->getOperand(OpNo).getImm(); in printU5ImmOperand()
284 void PPCInstPrinter::printU6ImmOperand(const MCInst *MI, unsigned OpNo, in printU6ImmOperand() argument
286 unsigned int Value = MI->getOperand(OpNo).getImm(); in printU6ImmOperand()
291 void PPCInstPrinter::printU7ImmOperand(const MCInst *MI, unsigned OpNo, in printU7ImmOperand() argument
293 unsigned int Value = MI->getOperand(OpNo).getImm(); in printU7ImmOperand()
298 void PPCInstPrinter::printU8ImmOperand(const MCInst *MI, unsigned OpNo, in printU8ImmOperand() argument
300 unsigned int Value = MI->getOperand(OpNo).getImm(); in printU8ImmOperand()
305 void PPCInstPrinter::printU10ImmOperand(const MCInst *MI, unsigned OpNo, in printU10ImmOperand() argument
307 unsigned short Value = MI->getOperand(OpNo).getImm(); in printU10ImmOperand()
312 void PPCInstPrinter::printU12ImmOperand(const MCInst *MI, unsigned OpNo, in printU12ImmOperand() argument
314 unsigned short Value = MI->getOperand(OpNo).getImm(); in printU12ImmOperand()
319 void PPCInstPrinter::printS16ImmOperand(const MCInst *MI, unsigned OpNo, in printS16ImmOperand() argument
321 if (MI->getOperand(OpNo).isImm()) in printS16ImmOperand()
322 O << (short)MI->getOperand(OpNo).getImm(); in printS16ImmOperand()
324 printOperand(MI, OpNo, O); in printS16ImmOperand()
327 void PPCInstPrinter::printU16ImmOperand(const MCInst *MI, unsigned OpNo, in printU16ImmOperand() argument
329 if (MI->getOperand(OpNo).isImm()) in printU16ImmOperand()
330 O << (unsigned short)MI->getOperand(OpNo).getImm(); in printU16ImmOperand()
332 printOperand(MI, OpNo, O); in printU16ImmOperand()
335 void PPCInstPrinter::printBranchOperand(const MCInst *MI, unsigned OpNo, in printBranchOperand() argument
337 if (!MI->getOperand(OpNo).isImm()) in printBranchOperand()
338 return printOperand(MI, OpNo, O); in printBranchOperand()
343 printAbsBranchOperand(MI, OpNo, O); in printBranchOperand()
346 void PPCInstPrinter::printAbsBranchOperand(const MCInst *MI, unsigned OpNo, in printAbsBranchOperand() argument
348 if (!MI->getOperand(OpNo).isImm()) in printAbsBranchOperand()
349 return printOperand(MI, OpNo, O); in printAbsBranchOperand()
351 O << SignExtend32<32>((unsigned)MI->getOperand(OpNo).getImm() << 2); in printAbsBranchOperand()
355 void PPCInstPrinter::printcrbitm(const MCInst *MI, unsigned OpNo, in printcrbitm() argument
357 unsigned CCReg = MI->getOperand(OpNo).getReg(); in printcrbitm()
373 void PPCInstPrinter::printMemRegImm(const MCInst *MI, unsigned OpNo, in printMemRegImm() argument
375 printS16ImmOperand(MI, OpNo, O); in printMemRegImm()
377 if (MI->getOperand(OpNo+1).getReg() == PPC::R0) in printMemRegImm()
380 printOperand(MI, OpNo+1, O); in printMemRegImm()
384 void PPCInstPrinter::printMemRegReg(const MCInst *MI, unsigned OpNo, in printMemRegReg() argument
389 if (MI->getOperand(OpNo).getReg() == PPC::R0) in printMemRegReg()
392 printOperand(MI, OpNo, O); in printMemRegReg()
394 printOperand(MI, OpNo+1, O); in printMemRegReg()
397 void PPCInstPrinter::printTLSCall(const MCInst *MI, unsigned OpNo, in printTLSCall() argument
401 const MCOperand &Op = MI->getOperand(OpNo); in printTLSCall()
405 printOperand(MI, OpNo+1, O); in printTLSCall()
432 void PPCInstPrinter::printOperand(const MCInst *MI, unsigned OpNo, in printOperand() argument
434 const MCOperand &Op = MI->getOperand(OpNo); in printOperand()