Lines Matching refs:Imm

271 static DecodeStatus decodeUImmOperand(MCInst &Inst, uint32_t Imm,  in decodeUImmOperand()  argument
274 assert(isUInt<N>(Imm) && "Invalid immediate"); in decodeUImmOperand()
275 Inst.addOperand(MCOperand::createImm(Imm)); in decodeUImmOperand()
280 static DecodeStatus decodeUImmNonZeroOperand(MCInst &Inst, uint32_t Imm, in decodeUImmNonZeroOperand() argument
283 if (Imm == 0) in decodeUImmNonZeroOperand()
285 return decodeUImmOperand<N>(Inst, Imm, Address, Decoder); in decodeUImmNonZeroOperand()
289 static DecodeStatus decodeSImmOperand(MCInst &Inst, uint32_t Imm, in decodeSImmOperand() argument
292 assert(isUInt<N>(Imm) && "Invalid immediate"); in decodeSImmOperand()
294 Inst.addOperand(MCOperand::createImm(SignExtend64<N>(Imm))); in decodeSImmOperand()
299 static DecodeStatus decodeSImmNonZeroOperand(MCInst &Inst, uint32_t Imm, in decodeSImmNonZeroOperand() argument
302 if (Imm == 0) in decodeSImmNonZeroOperand()
304 return decodeSImmOperand<N>(Inst, Imm, Address, Decoder); in decodeSImmNonZeroOperand()
308 static DecodeStatus decodeSImmOperandAndLsl1(MCInst &Inst, uint32_t Imm, in decodeSImmOperandAndLsl1() argument
311 assert(isUInt<N>(Imm) && "Invalid immediate"); in decodeSImmOperandAndLsl1()
315 Inst.addOperand(MCOperand::createImm(SignExtend64<N>(Imm << 1))); in decodeSImmOperandAndLsl1()
319 static DecodeStatus decodeCLUIImmOperand(MCInst &Inst, uint32_t Imm, in decodeCLUIImmOperand() argument
322 assert(isUInt<6>(Imm) && "Invalid immediate"); in decodeCLUIImmOperand()
323 if (Imm > 31) { in decodeCLUIImmOperand()
324 Imm = (SignExtend64<6>(Imm) & 0xfffff); in decodeCLUIImmOperand()
326 Inst.addOperand(MCOperand::createImm(Imm)); in decodeCLUIImmOperand()
330 static DecodeStatus decodeFRMArg(MCInst &Inst, uint32_t Imm, int64_t Address, in decodeFRMArg() argument
332 assert(isUInt<3>(Imm) && "Invalid immediate"); in decodeFRMArg()
333 if (!llvm::RISCVFPRndMode::isValidRoundingMode(Imm)) in decodeFRMArg()
336 Inst.addOperand(MCOperand::createImm(Imm)); in decodeFRMArg()
364 static DecodeStatus decodeZcmpRlist(MCInst &Inst, unsigned Imm,
370 static DecodeStatus decodeZcmpSpimm(MCInst &Inst, unsigned Imm,
473 static DecodeStatus decodeZcmpRlist(MCInst &Inst, unsigned Imm, in decodeZcmpRlist() argument
475 if (Imm <= 3) in decodeZcmpRlist()
477 Inst.addOperand(MCOperand::createImm(Imm)); in decodeZcmpRlist()
490 static DecodeStatus decodeZcmpSpimm(MCInst &Inst, unsigned Imm, in decodeZcmpSpimm() argument
492 Inst.addOperand(MCOperand::createImm(Imm)); in decodeZcmpSpimm()