Lines Matching refs:Imm

65 static DecodeStatus decodeCondBrTarget(MCInst &Inst, unsigned Imm,  in decodeCondBrTarget()  argument
68 Inst.addOperand(MCOperand::createImm(SignExtend32<14>(Imm))); in decodeCondBrTarget()
72 static DecodeStatus decodeDirectBrTarget(MCInst &Inst, unsigned Imm, in decodeDirectBrTarget() argument
75 int32_t Offset = SignExtend32<24>(Imm); in decodeDirectBrTarget()
248 static DecodeStatus decodeUImmOperand(MCInst &Inst, uint64_t Imm, in decodeUImmOperand() argument
251 if (!isUInt<N>(Imm)) in decodeUImmOperand()
253 Inst.addOperand(MCOperand::createImm(Imm)); in decodeUImmOperand()
258 static DecodeStatus decodeSImmOperand(MCInst &Inst, uint64_t Imm, in decodeSImmOperand() argument
261 if (!isUInt<N>(Imm)) in decodeSImmOperand()
263 Inst.addOperand(MCOperand::createImm(SignExtend64<N>(Imm))); in decodeSImmOperand()
267 static DecodeStatus decodeImmZeroOperand(MCInst &Inst, uint64_t Imm, in decodeImmZeroOperand() argument
270 if (Imm != 0) in decodeImmZeroOperand()
272 Inst.addOperand(MCOperand::createImm(Imm)); in decodeImmZeroOperand()
285 static DecodeStatus decodeDispRIXOperand(MCInst &Inst, uint64_t Imm, in decodeDispRIXOperand() argument
289 Inst.addOperand(MCOperand::createImm(SignExtend64<16>(Imm << 2))); in decodeDispRIXOperand()
293 static DecodeStatus decodeDispRIHashOperand(MCInst &Inst, uint64_t Imm, in decodeDispRIHashOperand() argument
300 const int64_t Disp = SignExtend64<7>((Imm & 0x3F) + 64) * 8; in decodeDispRIHashOperand()
306 static DecodeStatus decodeDispRIX16Operand(MCInst &Inst, uint64_t Imm, in decodeDispRIX16Operand() argument
310 Inst.addOperand(MCOperand::createImm(SignExtend64<16>(Imm << 4))); in decodeDispRIX16Operand()
314 static DecodeStatus decodeDispSPE8Operand(MCInst &Inst, uint64_t Imm, in decodeDispSPE8Operand() argument
319 uint64_t Disp = Imm & 0x1F; in decodeDispSPE8Operand()
325 static DecodeStatus decodeDispSPE4Operand(MCInst &Inst, uint64_t Imm, in decodeDispSPE4Operand() argument
330 uint64_t Disp = Imm & 0x1F; in decodeDispSPE4Operand()
336 static DecodeStatus decodeDispSPE2Operand(MCInst &Inst, uint64_t Imm, in decodeDispSPE2Operand() argument
341 uint64_t Disp = Imm & 0x1F; in decodeDispSPE2Operand()
346 static DecodeStatus decodeCRBitMOperand(MCInst &Inst, uint64_t Imm, in decodeCRBitMOperand() argument
351 unsigned Zeros = llvm::countr_zero(Imm); in decodeCRBitMOperand()