Lines Matching full:imm
181 static DecodeStatus decodeUImmOperand(MCInst &Inst, uint64_t Imm) {
182 if (!isUInt<N>(Imm))
184 Inst.addOperand(MCOperand::createImm(Imm));
189 static DecodeStatus decodeSImmOperand(MCInst &Inst, uint64_t Imm) {
190 if (!isUInt<N>(Imm))
192 Inst.addOperand(MCOperand::createImm(SignExtend64<N>(Imm)));
196 static DecodeStatus decodeU1ImmOperand(MCInst &Inst, uint64_t Imm,
199 return decodeUImmOperand<1>(Inst, Imm);
202 static DecodeStatus decodeU2ImmOperand(MCInst &Inst, uint64_t Imm,
205 return decodeUImmOperand<2>(Inst, Imm);
208 static DecodeStatus decodeU3ImmOperand(MCInst &Inst, uint64_t Imm,
211 return decodeUImmOperand<3>(Inst, Imm);
214 static DecodeStatus decodeU4ImmOperand(MCInst &Inst, uint64_t Imm,
217 return decodeUImmOperand<4>(Inst, Imm);
220 static DecodeStatus decodeU8ImmOperand(MCInst &Inst, uint64_t Imm,
223 return decodeUImmOperand<8>(Inst, Imm);
226 static DecodeStatus decodeU12ImmOperand(MCInst &Inst, uint64_t Imm,
229 return decodeUImmOperand<12>(Inst, Imm);
232 static DecodeStatus decodeU16ImmOperand(MCInst &Inst, uint64_t Imm,
235 return decodeUImmOperand<16>(Inst, Imm);
238 static DecodeStatus decodeU32ImmOperand(MCInst &Inst, uint64_t Imm,
241 return decodeUImmOperand<32>(Inst, Imm);
244 static DecodeStatus decodeS8ImmOperand(MCInst &Inst, uint64_t Imm,
247 return decodeSImmOperand<8>(Inst, Imm);
250 static DecodeStatus decodeS16ImmOperand(MCInst &Inst, uint64_t Imm,
253 return decodeSImmOperand<16>(Inst, Imm);
256 static DecodeStatus decodeS20ImmOperand(MCInst &Inst, uint64_t Imm,
259 return decodeSImmOperand<20>(Inst, Imm);
262 static DecodeStatus decodeS32ImmOperand(MCInst &Inst, uint64_t Imm,
265 return decodeSImmOperand<32>(Inst, Imm);
269 static DecodeStatus decodeLenOperand(MCInst &Inst, uint64_t Imm,
272 if (!isUInt<N>(Imm))
274 Inst.addOperand(MCOperand::createImm(Imm + 1));
279 static DecodeStatus decodePCDBLOperand(MCInst &Inst, uint64_t Imm,
282 assert(isUInt<N>(Imm) && "Invalid PC-relative offset");
283 uint64_t Value = SignExtend64<N>(Imm) * 2 + Address;
292 static DecodeStatus decodePC12DBLBranchOperand(MCInst &Inst, uint64_t Imm,
295 return decodePCDBLOperand<12>(Inst, Imm, Address, true, Decoder);
298 static DecodeStatus decodePC16DBLBranchOperand(MCInst &Inst, uint64_t Imm,
301 return decodePCDBLOperand<16>(Inst, Imm, Address, true, Decoder);
304 static DecodeStatus decodePC24DBLBranchOperand(MCInst &Inst, uint64_t Imm,
307 return decodePCDBLOperand<24>(Inst, Imm, Address, true, Decoder);
310 static DecodeStatus decodePC32DBLBranchOperand(MCInst &Inst, uint64_t Imm,
313 return decodePCDBLOperand<32>(Inst, Imm, Address, true, Decoder);
316 static DecodeStatus decodePC32DBLOperand(MCInst &Inst, uint64_t Imm,
319 return decodePCDBLOperand<32>(Inst, Imm, Address, false, Decoder);