Lines Matching refs:Imm
101 uint16_t Imm = MI->getOperand(OpNo).getImm(); in printOffset() local
102 if (Imm != 0) { in printOffset()
307 void AMDGPUInstPrinter::printImmediate32(uint32_t Imm, raw_ostream &O) { in printImmediate32() argument
308 int32_t SImm = static_cast<int32_t>(Imm); in printImmediate32()
314 if (Imm == FloatToBits(0.0f)) in printImmediate32()
316 else if (Imm == FloatToBits(1.0f)) in printImmediate32()
318 else if (Imm == FloatToBits(-1.0f)) in printImmediate32()
320 else if (Imm == FloatToBits(0.5f)) in printImmediate32()
322 else if (Imm == FloatToBits(-0.5f)) in printImmediate32()
324 else if (Imm == FloatToBits(2.0f)) in printImmediate32()
326 else if (Imm == FloatToBits(-2.0f)) in printImmediate32()
328 else if (Imm == FloatToBits(4.0f)) in printImmediate32()
330 else if (Imm == FloatToBits(-4.0f)) in printImmediate32()
333 O << formatHex(static_cast<uint64_t>(Imm)); in printImmediate32()
336 void AMDGPUInstPrinter::printImmediate64(uint64_t Imm, raw_ostream &O) { in printImmediate64() argument
337 int64_t SImm = static_cast<int64_t>(Imm); in printImmediate64()
343 if (Imm == DoubleToBits(0.0)) in printImmediate64()
345 else if (Imm == DoubleToBits(1.0)) in printImmediate64()
347 else if (Imm == DoubleToBits(-1.0)) in printImmediate64()
349 else if (Imm == DoubleToBits(0.5)) in printImmediate64()
351 else if (Imm == DoubleToBits(-0.5)) in printImmediate64()
353 else if (Imm == DoubleToBits(2.0)) in printImmediate64()
355 else if (Imm == DoubleToBits(-2.0)) in printImmediate64()
357 else if (Imm == DoubleToBits(4.0)) in printImmediate64()
359 else if (Imm == DoubleToBits(-4.0)) in printImmediate64()
362 assert(isUInt<32>(Imm)); in printImmediate64()
366 O << formatHex(static_cast<uint64_t>(Imm)); in printImmediate64()
453 unsigned Imm = MI->getOperand(OpNo).getImm(); in printDPPCtrl() local
454 if (Imm <= 0x0ff) { in printDPPCtrl()
456 O << formatDec(Imm & 0x3) << ','; in printDPPCtrl()
457 O << formatDec((Imm & 0xc) >> 2) << ','; in printDPPCtrl()
458 O << formatDec((Imm & 0x30) >> 4) << ','; in printDPPCtrl()
459 O << formatDec((Imm & 0xc0) >> 6) << ']'; in printDPPCtrl()
460 } else if ((Imm >= 0x101) && (Imm <= 0x10f)) { in printDPPCtrl()
463 } else if ((Imm >= 0x111) && (Imm <= 0x11f)) { in printDPPCtrl()
466 } else if ((Imm >= 0x121) && (Imm <= 0x12f)) { in printDPPCtrl()
469 } else if (Imm == 0x130) { in printDPPCtrl()
471 } else if (Imm == 0x134) { in printDPPCtrl()
473 } else if (Imm == 0x138) { in printDPPCtrl()
475 } else if (Imm == 0x13c) { in printDPPCtrl()
477 } else if (Imm == 0x140) { in printDPPCtrl()
479 } else if (Imm == 0x141) { in printDPPCtrl()
481 } else if (Imm == 0x142) { in printDPPCtrl()
483 } else if (Imm == 0x143) { in printDPPCtrl()
504 unsigned Imm = MI->getOperand(OpNo).getImm(); in printBoundCtrl() local
505 if (Imm) { in printBoundCtrl()
512 unsigned Imm = MI->getOperand(OpNo).getImm(); in printSDWASel() local
513 switch (Imm) { in printSDWASel()
546 unsigned Imm = MI->getOperand(OpNo).getImm(); in printSDWADstUnused() local
547 switch (Imm) { in printSDWADstUnused()
557 unsigned Imm = MI->getOperand(OpNum).getImm(); in printInterpSlot() local
559 if (Imm == 2) { in printInterpSlot()
561 } else if (Imm == 1) { in printInterpSlot()
563 } else if (Imm == 0) { in printInterpSlot()
615 int Imm = MI->getOperand(OpNo).getImm(); in printOModSI() local
616 if (Imm == SIOutMods::MUL2) in printOModSI()
618 else if (Imm == SIOutMods::MUL4) in printOModSI()
620 else if (Imm == SIOutMods::DIV2) in printOModSI()
629 int64_t Imm = Op.getImm(); in printLiteral() local
630 O << Imm << '(' << BitsToFloat(Imm) << ')'; in printLiteral()