| 172 | } |
| 173 | |
| 174 | static DecodeStatus DecodeBitpOperand(MCInst *Inst, unsigned Val, |
| 175 | uint64_t Address, const void *Decoder) |
| 176 | { |
| 177 | static const unsigned Values[] = { |
| 178 | 32 /*bpw*/, 1, 2, 3, 4, 5, 6, 7, 8, 16, 24, 32 |
| 179 | }; |
| 180 | |
| 181 | if (Val > 11) |
| 182 | return MCDisassembler_Fail; |
| 183 | |
| 184 | MCOperand_CreateImm0(Inst, Values[Val]); |
| 185 | return MCDisassembler_Success; |
| 186 | } |
| 187 | |
| 188 | static DecodeStatus DecodeNegImmOperand(MCInst *Inst, unsigned Val, |
| 189 | uint64_t Address, const void *Decoder) |
no test coverage detected
searching dependent graphs…