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

Function DecodeTSTInstruction

arch/ARM/ARMDisassembler.c:2329–2350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2327}
2328
2329static DecodeStatus DecodeTSTInstruction(MCInst *Inst, unsigned Insn,
2330 uint64_t Address, const void *Decoder)
2331{
2332 DecodeStatus S = MCDisassembler_Success;
2333 unsigned Pred = fieldFromInstruction_4(Insn, 28, 4);
2334 unsigned Rn = fieldFromInstruction_4(Insn, 16, 4);
2335 unsigned Rm = fieldFromInstruction_4(Insn, 0, 4);
2336
2337 if (Pred == 0xF)
2338 return DecodeSETPANInstruction(Inst, Insn, Address, Decoder);
2339
2340 if (!Check(&S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder)))
2341 return MCDisassembler_Fail;
2342
2343 if (!Check(&S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder)))
2344 return MCDisassembler_Fail;
2345
2346 if (!Check(&S, DecodePredicateOperand(Inst, Pred, Address, Decoder)))
2347 return MCDisassembler_Fail;
2348
2349 return S;
2350}
2351
2352static DecodeStatus DecodeSETPANInstruction(MCInst *Inst, unsigned Insn,
2353 uint64_t Address, const void *Decoder)

Callers

nothing calls this directly

Calls 4

DecodeSETPANInstructionFunction · 0.85
DecodePredicateOperandFunction · 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…