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

Function DecodeAddrMode6Operand

arch/ARM/ARMDisassembler.c:2494–2511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2492
2493
2494static DecodeStatus DecodeAddrMode6Operand(MCInst *Inst, unsigned Val,
2495 uint64_t Address, const void *Decoder)
2496{
2497 DecodeStatus S = MCDisassembler_Success;
2498
2499 unsigned Rm = fieldFromInstruction_4(Val, 0, 4);
2500 unsigned align = fieldFromInstruction_4(Val, 4, 2);
2501
2502 if (!Check(&S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder)))
2503 return MCDisassembler_Fail;
2504
2505 if (!align)
2506 MCOperand_CreateImm0(Inst, 0);
2507 else
2508 MCOperand_CreateImm0(Inst, 4 << align);
2509
2510 return S;
2511}
2512
2513static DecodeStatus DecodeVLDInstruction(MCInst *Inst, unsigned Insn,
2514 uint64_t Address, const void *Decoder)

Callers 2

DecodeVLDInstructionFunction · 0.85
DecodeVSTInstructionFunction · 0.85

Calls 3

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