Home | History | Annotate | Download | only in Disassembler

Lines Matching refs:Imm

154 static DecodeStatus decodeUImmOperand(MCInst &Inst, uint64_t Imm) {
155 if (!isUInt<N>(Imm))
157 Inst.addOperand(MCOperand::createImm(Imm));
162 static DecodeStatus decodeSImmOperand(MCInst &Inst, uint64_t Imm) {
163 if (!isUInt<N>(Imm))
165 Inst.addOperand(MCOperand::createImm(SignExtend64<N>(Imm)));
169 static DecodeStatus decodeAccessRegOperand(MCInst &Inst, uint64_t Imm,
172 return decodeUImmOperand<4>(Inst, Imm);
175 static DecodeStatus decodeU1ImmOperand(MCInst &Inst, uint64_t Imm,
177 return decodeUImmOperand<1>(Inst, Imm);
180 static DecodeStatus decodeU2ImmOperand(MCInst &Inst, uint64_t Imm,
182 return decodeUImmOperand<2>(Inst, Imm);
185 static DecodeStatus decodeU3ImmOperand(MCInst &Inst, uint64_t Imm,
187 return decodeUImmOperand<3>(Inst, Imm);
190 static DecodeStatus decodeU4ImmOperand(MCInst &Inst, uint64_t Imm,
192 return decodeUImmOperand<4>(Inst, Imm);
195 static DecodeStatus decodeU6ImmOperand(MCInst &Inst, uint64_t Imm,
197 return decodeUImmOperand<6>(Inst, Imm);
200 static DecodeStatus decodeU8ImmOperand(MCInst &Inst, uint64_t Imm,
202 return decodeUImmOperand<8>(Inst, Imm);
205 static DecodeStatus decodeU12ImmOperand(MCInst &Inst, uint64_t Imm,
207 return decodeUImmOperand<12>(Inst, Imm);
210 static DecodeStatus decodeU16ImmOperand(MCInst &Inst, uint64_t Imm,
212 return decodeUImmOperand<16>(Inst, Imm);
215 static DecodeStatus decodeU32ImmOperand(MCInst &Inst, uint64_t Imm,
217 return decodeUImmOperand<32>(Inst, Imm);
220 static DecodeStatus decodeS8ImmOperand(MCInst &Inst, uint64_t Imm,
222 return decodeSImmOperand<8>(Inst, Imm);
225 static DecodeStatus decodeS16ImmOperand(MCInst &Inst, uint64_t Imm,
227 return decodeSImmOperand<16>(Inst, Imm);
230 static DecodeStatus decodeS32ImmOperand(MCInst &Inst, uint64_t Imm,
232 return decodeSImmOperand<32>(Inst, Imm);
236 static DecodeStatus decodePCDBLOperand(MCInst &Inst, uint64_t Imm,
240 assert(isUInt<N>(Imm) && "Invalid PC-relative offset");
241 uint64_t Value = SignExtend64<N>(Imm) * 2 + Address;
250 static DecodeStatus decodePC16DBLBranchOperand(MCInst &Inst, uint64_t Imm,
253 return decodePCDBLOperand<16>(Inst, Imm, Address, true, Decoder);
256 static DecodeStatus decodePC32DBLBranchOperand(MCInst &Inst, uint64_t Imm,
259 return decodePCDBLOperand<32>(Inst, Imm, Address, true, Decoder);
262 static DecodeStatus decodePC32DBLOperand(MCInst &Inst, uint64_t Imm,
265 return decodePCDBLOperand<32>(Inst, Imm, Address, false, Decoder);