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

Function DecoderGPRRegisterClass

arch/ARM/ARMDisassembler.c:1081–1092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1079}
1080
1081static DecodeStatus DecoderGPRRegisterClass(MCInst *Inst, unsigned RegNo,
1082 uint64_t Address, const void *Decoder)
1083{
1084 DecodeStatus S = MCDisassembler_Success;
1085
1086 if ((RegNo == 13 && !ARM_getFeatureBits(Inst->csh->mode, ARM_HasV8Ops)) || RegNo == 15)
1087 S = MCDisassembler_SoftFail;
1088
1089 Check(&S, DecodeGPRRegisterClass(Inst, RegNo, Address, Decoder));
1090
1091 return S;
1092}
1093
1094static const uint16_t SPRDecoderTable[] = {
1095 ARM_S0, ARM_S1, ARM_S2, ARM_S3,

Callers 7

DecodeSORegImmOperandFunction · 0.85
DecodeT2MOVTWInstructionFunction · 0.85
DecodeT2AddrModeSORegFunction · 0.85
DecodeT2LoadTFunction · 0.85
DecodeThumbTableBranchFunction · 0.85

Calls 3

ARM_getFeatureBitsFunction · 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…