Lines Matching refs:Imm
182 static DecodeStatus decodeUImmOperand(MCInst &Inst, uint64_t Imm) {
183 if (!isUInt<N>(Imm))
185 Inst.addOperand(MCOperand::createImm(Imm));
190 static DecodeStatus decodeSImmOperand(MCInst &Inst, uint64_t Imm) {
191 if (!isUInt<N>(Imm))
193 Inst.addOperand(MCOperand::createImm(SignExtend64<N>(Imm)));
197 static DecodeStatus decodeU1ImmOperand(MCInst &Inst, uint64_t Imm,
200 return decodeUImmOperand<1>(Inst, Imm);
203 static DecodeStatus decodeU2ImmOperand(MCInst &Inst, uint64_t Imm,
206 return decodeUImmOperand<2>(Inst, Imm);
209 static DecodeStatus decodeU3ImmOperand(MCInst &Inst, uint64_t Imm,
212 return decodeUImmOperand<3>(Inst, Imm);
215 static DecodeStatus decodeU4ImmOperand(MCInst &Inst, uint64_t Imm,
218 return decodeUImmOperand<4>(Inst, Imm);
221 static DecodeStatus decodeU8ImmOperand(MCInst &Inst, uint64_t Imm,
224 return decodeUImmOperand<8>(Inst, Imm);
227 static DecodeStatus decodeU12ImmOperand(MCInst &Inst, uint64_t Imm,
230 return decodeUImmOperand<12>(Inst, Imm);
233 static DecodeStatus decodeU16ImmOperand(MCInst &Inst, uint64_t Imm,
236 return decodeUImmOperand<16>(Inst, Imm);
239 static DecodeStatus decodeU32ImmOperand(MCInst &Inst, uint64_t Imm,
242 return decodeUImmOperand<32>(Inst, Imm);
245 static DecodeStatus decodeS8ImmOperand(MCInst &Inst, uint64_t Imm,
248 return decodeSImmOperand<8>(Inst, Imm);
251 static DecodeStatus decodeS16ImmOperand(MCInst &Inst, uint64_t Imm,
254 return decodeSImmOperand<16>(Inst, Imm);
257 static DecodeStatus decodeS20ImmOperand(MCInst &Inst, uint64_t Imm,
260 return decodeSImmOperand<20>(Inst, Imm);
263 static DecodeStatus decodeS32ImmOperand(MCInst &Inst, uint64_t Imm,
266 return decodeSImmOperand<32>(Inst, Imm);
270 static DecodeStatus decodeLenOperand(MCInst &Inst, uint64_t Imm,
273 if (!isUInt<N>(Imm))
275 Inst.addOperand(MCOperand::createImm(Imm + 1));
280 static DecodeStatus decodePCDBLOperand(MCInst &Inst, uint64_t Imm,
283 assert(isUInt<N>(Imm) && "Invalid PC-relative offset");
284 uint64_t Value = SignExtend64<N>(Imm) * 2 + Address;
293 static DecodeStatus decodePC12DBLBranchOperand(MCInst &Inst, uint64_t Imm,
296 return decodePCDBLOperand<12>(Inst, Imm, Address, true, Decoder);
299 static DecodeStatus decodePC16DBLBranchOperand(MCInst &Inst, uint64_t Imm,
302 return decodePCDBLOperand<16>(Inst, Imm, Address, true, Decoder);
305 static DecodeStatus decodePC24DBLBranchOperand(MCInst &Inst, uint64_t Imm,
308 return decodePCDBLOperand<24>(Inst, Imm, Address, true, Decoder);
311 static DecodeStatus decodePC32DBLBranchOperand(MCInst &Inst, uint64_t Imm,
314 return decodePCDBLOperand<32>(Inst, Imm, Address, true, Decoder);
317 static DecodeStatus decodePC32DBLOperand(MCInst &Inst, uint64_t Imm,
320 return decodePCDBLOperand<32>(Inst, Imm, Address, false, Decoder);