MCPcopy Create free account
hub / github.com/capstone-engine/capstone / DecodeThumbTableBranch

Function DecodeThumbTableBranch

arch/ARM/ARMDisassembler.c:4245–4261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4243}
4244
4245static DecodeStatus DecodeThumbTableBranch(MCInst *Inst, unsigned Insn,
4246 uint64_t Address, const void *Decoder)
4247{
4248 DecodeStatus S = MCDisassembler_Success;
4249 unsigned Rn = fieldFromInstruction_4(Insn, 16, 4);
4250 unsigned Rm = fieldFromInstruction_4(Insn, 0, 4);
4251
4252 if (Rn == ARM_SP) S = MCDisassembler_SoftFail;
4253
4254 if (!Check(&S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder)))
4255 return MCDisassembler_Fail;
4256
4257 if (!Check(&S, DecoderGPRRegisterClass(Inst, Rm, Address, Decoder)))
4258 return MCDisassembler_Fail;
4259
4260 return S;
4261}
4262
4263static DecodeStatus DecodeThumb2BCCInstruction(MCInst *Inst, unsigned Insn,
4264 uint64_t Address, const void *Decoder)

Callers

nothing calls this directly

Calls 3

DecoderGPRRegisterClassFunction · 0.85
CheckFunction · 0.70
DecodeGPRRegisterClassFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…