10 #define DEBUG_TYPE "arm-disassembler"
48 void advanceITState() {
53 bool instrInITBlock() {
54 return !ITStates.empty();
58 bool instrLastInITBlock() {
59 return ITStates.size() == 1;
65 void setITState(
char Firstcond,
char Mask) {
67 unsigned CondBit0 = Firstcond & 1;
68 unsigned NumTZ = countTrailingZeros<uint8_t>(Mask);
69 unsigned char CCBits =
static_cast<unsigned char>(Firstcond & 0xf);
70 assert(NumTZ <= 3 &&
"Invalid IT mask!");
72 for (
unsigned Pos = NumTZ+1; Pos <= 3; ++Pos) {
73 bool T = ((Mask >> Pos) & 1) == CondBit0;
75 ITStates.push_back(CCBits);
77 ITStates.push_back(CCBits ^ 1);
79 ITStates.push_back(CCBits);
83 std::vector<unsigned char> ITStates;
118 ~ThumbDisassembler() {
130 mutable ITStatus ITBlock;
132 void UpdateThumbVFPPredicate(
MCInst&)
const;
155 uint64_t Address,
const void *Decoder);
157 unsigned RegNo, uint64_t Address,
158 const void *Decoder);
160 unsigned RegNo, uint64_t Address,
161 const void *Decoder);
163 uint64_t Address,
const void *Decoder);
165 uint64_t Address,
const void *Decoder);
167 uint64_t Address,
const void *Decoder);
169 uint64_t Address,
const void *Decoder);
171 uint64_t Address,
const void *Decoder);
173 uint64_t Address,
const void *Decoder);
175 uint64_t Address,
const void *Decoder);
179 const void *Decoder);
181 uint64_t Address,
const void *Decoder);
183 uint64_t Address,
const void *Decoder);
185 unsigned RegNo, uint64_t Address,
186 const void *Decoder);
189 uint64_t Address,
const void *Decoder);
191 uint64_t Address,
const void *Decoder);
193 uint64_t Address,
const void *Decoder);
195 uint64_t Address,
const void *Decoder);
197 uint64_t Address,
const void *Decoder);
199 uint64_t Address,
const void *Decoder);
202 uint64_t Address,
const void *Decoder);
204 uint64_t Address,
const void *Decoder);
208 const void *Decoder);
210 uint64_t Address,
const void *Decoder);
212 uint64_t Address,
const void *Decoder);
214 uint64_t Address,
const void *Decoder);
216 uint64_t Address,
const void *Decoder);
221 const void *Decoder);
223 uint64_t Address,
const void *Decoder);
225 uint64_t Address,
const void *Decoder);
227 uint64_t Address,
const void *Decoder);
229 uint64_t Address,
const void *Decoder);
231 uint64_t Address,
const void *Decoder);
233 uint64_t Address,
const void *Decoder);
235 uint64_t Address,
const void *Decoder);
237 uint64_t Address,
const void *Decoder);
239 uint64_t Address,
const void *Decoder);
241 uint64_t Address,
const void *Decoder);
243 uint64_t Address,
const void *Decoder);
245 uint64_t Address,
const void *Decoder);
247 uint64_t Address,
const void *Decoder);
249 uint64_t Address,
const void *Decoder);
251 uint64_t Address,
const void *Decoder);
253 uint64_t Address,
const void *Decoder);
255 uint64_t Address,
const void *Decoder);
257 uint64_t Address,
const void *Decoder);
259 uint64_t Address,
const void *Decoder);
261 uint64_t Address,
const void *Decoder);
263 uint64_t Address,
const void *Decoder);
265 uint64_t Address,
const void *Decoder);
267 uint64_t Address,
const void *Decoder);
269 uint64_t Address,
const void *Decoder);
271 uint64_t Address,
const void *Decoder);
273 uint64_t Address,
const void *Decoder);
275 uint64_t Address,
const void *Decoder);
277 uint64_t Address,
const void *Decoder);
279 uint64_t Address,
const void *Decoder);
281 uint64_t Address,
const void *Decoder);
283 uint64_t Address,
const void *Decoder);
285 uint64_t Address,
const void *Decoder);
287 uint64_t Address,
const void *Decoder);
289 uint64_t Address,
const void *Decoder);
291 uint64_t Address,
const void *Decoder);
293 uint64_t Address,
const void *Decoder);
295 uint64_t Address,
const void *Decoder);
297 uint64_t Address,
const void *Decoder);
299 uint64_t Address,
const void *Decoder);
301 uint64_t Address,
const void *Decoder);
303 uint64_t Address,
const void *Decoder);
305 uint64_t Address,
const void *Decoder);
307 uint64_t Address,
const void *Decoder);
309 uint64_t Address,
const void *Decoder);
311 uint64_t Address,
const void *Decoder);
313 uint64_t Address,
const void *Decoder);
315 uint64_t Address,
const void *Decoder);
317 uint64_t Address,
const void *Decoder);
319 uint64_t Address,
const void *Decoder);
321 uint64_t Address,
const void *Decoder);
323 uint64_t Address,
const void *Decoder);
325 uint64_t Address,
const void *Decoder);
329 uint64_t Address,
const void *Decoder);
331 uint64_t Address,
const void *Decoder);
333 uint64_t Address,
const void *Decoder);
335 uint64_t Address,
const void *Decoder);
337 uint64_t Address,
const void *Decoder);
339 uint64_t Address,
const void *Decoder);
341 uint64_t Address,
const void *Decoder);
343 uint64_t Address,
const void *Decoder);
345 uint64_t Address,
const void *Decoder);
347 uint64_t Address,
const void *Decoder);
349 uint64_t Address,
const void* Decoder);
351 uint64_t Address,
const void* Decoder);
353 uint64_t Address,
const void* Decoder);
355 uint64_t Address,
const void* Decoder);
357 uint64_t Address,
const void *Decoder);
359 uint64_t Address,
const void *Decoder);
361 uint64_t Address,
const void *Decoder);
363 uint64_t Address,
const void *Decoder);
365 uint64_t Address,
const void *Decoder);
367 uint64_t Address,
const void *Decoder);
369 uint64_t Address,
const void *Decoder);
371 uint64_t Address,
const void *Decoder);
373 uint64_t Address,
const void *Decoder);
375 uint64_t Address,
const void *Decoder);
377 uint64_t Address,
const void *Decoder);
379 uint64_t Address,
const void *Decoder);
381 uint64_t Address,
const void *Decoder);
383 uint64_t Address,
const void *Decoder);
385 uint64_t Address,
const void *Decoder);
387 uint64_t Address,
const void *Decoder);
389 uint64_t Address,
const void *Decoder);
391 uint64_t Address,
const void *Decoder);
393 uint64_t Address,
const void *Decoder);
395 uint64_t Address,
const void *Decoder);
397 uint64_t Address,
const void *Decoder);
399 uint64_t Address,
const void *Decoder);
402 uint64_t Address,
const void *Decoder);
404 uint64_t Address,
const void *Decoder);
405 #include "ARMGenDisassemblerTables.inc"
408 return new ARMDisassembler(STI);
412 return new ThumbDisassembler(STI);
424 assert(!(STI.getFeatureBits() & ARM::ModeThumb) &&
425 "Asked to disassemble an ARM instruction but Subtarget is in Thumb mode!");
428 if (Region.
readBytes(Address, 4, bytes) == -1) {
434 uint32_t insn = (bytes[3] << 24) |
538 MCInst &MI,
const void *Decoder) {
555 const void *Decoder) {
568 for (
unsigned i = 0; i < NumOps; ++i, ++
I) {
569 if (I == MI.
end())
break;
570 if (OpInfo[i].isOptionalDef() && OpInfo[i].
RegClass == ARM::CCRRegClassID) {
571 if (i > 0 && OpInfo[i-1].isPredicate())
continue;
585 ThumbDisassembler::AddThumbPredicate(
MCInst &MI)
const {
603 if (ITBlock.instrInITBlock())
614 if (ITBlock.instrInITBlock() && !ITBlock.instrLastInITBlock())
624 CC = ITBlock.getITCC();
627 if (ITBlock.instrInITBlock())
628 ITBlock.advanceITState();
633 for (
unsigned i = 0; i < NumOps; ++i, ++
I) {
634 if (I == MI.
end())
break;
635 if (OpInfo[i].isPredicate()) {
661 void ThumbDisassembler::UpdateThumbVFPPredicate(
MCInst &MI)
const {
663 CC = ITBlock.getITCC();
664 if (ITBlock.instrInITBlock())
665 ITBlock.advanceITState();
670 for (
unsigned i = 0; i < NumOps; ++i, ++
I) {
671 if (OpInfo[i].isPredicate() ) {
677 I->setReg(ARM::CPSR);
692 assert((STI.getFeatureBits() & ARM::ModeThumb) &&
693 "Asked to disassemble in Thumb mode but Subtarget is in ARM mode!");
696 if (Region.
readBytes(Address, 2, bytes) == -1) {
701 uint16_t insn16 = (bytes[1] << 8) | bytes[0];
706 Check(result, AddThumbPredicate(MI));
715 bool InITBlock = ITBlock.instrInITBlock();
716 Check(result, AddThumbPredicate(MI));
729 if (MI.
getOpcode() == ARM::t2IT && ITBlock.instrInITBlock())
732 Check(result, AddThumbPredicate(MI));
741 ITBlock.setITState(Firstcond, Mask);
748 if (Region.
readBytes(Address, 4, bytes) == -1) {
753 uint32_t insn32 = (bytes[3] << 8) |
762 bool InITBlock = ITBlock.instrInITBlock();
763 Check(result, AddThumbPredicate(MI));
773 Check(result, AddThumbPredicate(MI));
777 if (fieldFromInstruction(insn32, 28, 4) == 0xE) {
782 UpdateThumbVFPPredicate(MI);
794 if (fieldFromInstruction(insn32, 28, 4) == 0xE) {
800 Check(result, AddThumbPredicate(MI));
805 if (fieldFromInstruction(insn32, 24, 8) == 0xF9) {
807 uint32_t NEONLdStInsn = insn32;
808 NEONLdStInsn &= 0xF0FFFFFF;
809 NEONLdStInsn |= 0x04000000;
814 Check(result, AddThumbPredicate(MI));
819 if (fieldFromInstruction(insn32, 24, 4) == 0xF) {
821 uint32_t NEONDataInsn = insn32;
822 NEONDataInsn &= 0xF0FFFFFF;
823 NEONDataInsn |= (NEONDataInsn & 0x10000000) >> 4;
824 NEONDataInsn |= 0x12000000;
829 Check(result, AddThumbPredicate(MI));
834 uint32_t NEONCryptoInsn = insn32;
835 NEONCryptoInsn &= 0xF0FFFFFF;
836 NEONCryptoInsn |= (NEONCryptoInsn & 0x10000000) >> 4;
837 NEONCryptoInsn |= 0x12000000;
846 uint32_t NEONv8Insn = insn32;
847 NEONv8Insn &= 0xF3FFFFFF;
870 ARM::R0, ARM::R1,
ARM::R2, ARM::R3,
872 ARM::R8, ARM::R9, ARM::R10, ARM::R11,
873 ARM::R12, ARM::SP, ARM::LR, ARM::PC
877 uint64_t Address,
const void *Decoder) {
888 uint64_t Address,
const void *Decoder) {
901 uint64_t Address,
const void *Decoder) {
915 uint64_t Address,
const void *Decoder) {
922 ARM::R0_R1, ARM::R2_R3, ARM::R4_R5, ARM::R6_R7,
923 ARM::R8_R9, ARM::R10_R11, ARM::R12_SP
927 uint64_t Address,
const void *Decoder) {
933 if ((RegNo & 1) || RegNo == 0xe)
942 uint64_t Address,
const void *Decoder) {
972 uint64_t Address,
const void *Decoder) {
974 if (RegNo == 13 || RegNo == 15)
981 ARM::S0, ARM::S1, ARM::S2, ARM::S3,
982 ARM::S4, ARM::S5, ARM::S6, ARM::S7,
983 ARM::S8, ARM::S9, ARM::S10, ARM::S11,
984 ARM::S12, ARM::S13, ARM::S14, ARM::S15,
985 ARM::S16, ARM::S17, ARM::S18, ARM::S19,
986 ARM::S20, ARM::S21, ARM::S22, ARM::S23,
987 ARM::S24, ARM::S25, ARM::S26, ARM::S27,
988 ARM::S28, ARM::S29, ARM::S30, ARM::S31
992 uint64_t Address,
const void *Decoder) {
1002 ARM::D0, ARM::D1, ARM::D2, ARM::D3,
1003 ARM::D4, ARM::D5, ARM::D6, ARM::D7,
1005 ARM::D12, ARM::D13, ARM::D14, ARM::D15,
1006 ARM::D16, ARM::D17, ARM::D18, ARM::D19,
1007 ARM::D20, ARM::D21, ARM::D22, ARM::D23,
1008 ARM::D24, ARM::D25, ARM::D26, ARM::D27,
1009 ARM::D28, ARM::D29, ARM::D30, ARM::D31
1013 uint64_t Address,
const void *Decoder) {
1023 uint64_t Address,
const void *Decoder) {
1031 uint64_t Address,
const void *Decoder) {
1038 ARM::Q0, ARM::Q1, ARM::Q2, ARM::Q3,
1039 ARM::Q4, ARM::Q5, ARM::Q6, ARM::Q7,
1040 ARM::Q8, ARM::Q9, ARM::Q10, ARM::Q11,
1041 ARM::Q12, ARM::Q13, ARM::Q14, ARM::Q15
1046 uint64_t Address,
const void *Decoder) {
1047 if (RegNo > 31 || (RegNo & 1) != 0)
1057 ARM::Q0, ARM::D1_D2, ARM::Q1, ARM::D3_D4, ARM::Q2, ARM::D5_D6,
1058 ARM::Q3, ARM::D7_D8, ARM::Q4, ARM::D9_D10, ARM::Q5, ARM::D11_D12,
1059 ARM::Q6, ARM::D13_D14, ARM::Q7, ARM::D15_D16, ARM::Q8, ARM::D17_D18,
1060 ARM::Q9, ARM::D19_D20, ARM::Q10, ARM::D21_D22, ARM::Q11, ARM::D23_D24,
1061 ARM::Q12, ARM::D25_D26, ARM::Q13, ARM::D27_D28, ARM::Q14, ARM::D29_D30,
1066 uint64_t Address,
const void *Decoder) {
1076 ARM::D0_D2, ARM::D1_D3, ARM::D2_D4, ARM::D3_D5,
1077 ARM::D4_D6, ARM::D5_D7, ARM::D6_D8, ARM::D7_D9,
1078 ARM::D8_D10, ARM::D9_D11, ARM::D10_D12, ARM::D11_D13,
1079 ARM::D12_D14, ARM::D13_D15, ARM::D14_D16, ARM::D15_D17,
1080 ARM::D16_D18, ARM::D17_D19, ARM::D18_D20, ARM::D19_D21,
1081 ARM::D20_D22, ARM::D21_D23, ARM::D22_D24, ARM::D23_D25,
1082 ARM::D24_D26, ARM::D25_D27, ARM::D26_D28, ARM::D27_D29,
1083 ARM::D28_D30, ARM::D29_D31
1089 const void *Decoder) {
1099 uint64_t Address,
const void *Decoder) {
1102 if (Inst.
getOpcode() == ARM::tBcc && Val == 0xE)
1113 uint64_t Address,
const void *Decoder) {
1122 uint64_t Address,
const void *Decoder) {
1123 uint32_t imm = Val & 0xFF;
1124 uint32_t rot = (Val & 0xF00) >> 7;
1125 uint32_t rot_imm = (imm >> rot) | (imm << ((32-rot) & 0x1F));
1131 uint64_t Address,
const void *Decoder) {
1134 unsigned Rm = fieldFromInstruction(Val, 0, 4);
1135 unsigned type = fieldFromInstruction(Val, 5, 2);
1136 unsigned imm = fieldFromInstruction(Val, 7, 5);
1161 unsigned Op = Shift | (imm << 3);
1168 uint64_t Address,
const void *Decoder) {
1171 unsigned Rm = fieldFromInstruction(Val, 0, 4);
1172 unsigned type = fieldFromInstruction(Val, 5, 2);
1173 unsigned Rs = fieldFromInstruction(Val, 8, 4);
1203 uint64_t Address,
const void *Decoder) {
1206 bool NeedDisjointWriteback =
false;
1207 unsigned WritebackReg = 0;
1211 case ARM::LDMIA_UPD:
1212 case ARM::LDMDB_UPD:
1213 case ARM::LDMIB_UPD:
1214 case ARM::LDMDA_UPD:
1215 case ARM::t2LDMIA_UPD:
1216 case ARM::t2LDMDB_UPD:
1217 case ARM::t2STMIA_UPD:
1218 case ARM::t2STMDB_UPD:
1219 NeedDisjointWriteback =
true;
1226 for (
unsigned i = 0; i < 16; ++i) {
1227 if (Val & (1 << i)) {
1231 if (NeedDisjointWriteback && WritebackReg == Inst.
end()[-1].getReg())
1240 uint64_t Address,
const void *Decoder) {
1243 unsigned Vd = fieldFromInstruction(Val, 8, 5);
1244 unsigned regs = fieldFromInstruction(Val, 0, 8);
1247 if (regs == 0 || (Vd + regs) > 32) {
1248 regs = Vd + regs > 32 ? 32 - Vd : regs;
1249 regs = std::max( 1u, regs);
1255 for (
unsigned i = 0; i < (regs - 1); ++i) {
1264 uint64_t Address,
const void *Decoder) {
1267 unsigned Vd = fieldFromInstruction(Val, 8, 5);
1268 unsigned regs = fieldFromInstruction(Val, 1, 7);
1271 if (regs == 0 || regs > 16 || (Vd + regs) > 32) {
1272 regs = Vd + regs > 32 ? 32 - Vd : regs;
1273 regs = std::max( 1u, regs);
1274 regs = std::min(16u, regs);
1280 for (
unsigned i = 0; i < (regs - 1); ++i) {
1289 uint64_t Address,
const void *Decoder) {
1295 unsigned msb = fieldFromInstruction(Val, 5, 5);
1296 unsigned lsb = fieldFromInstruction(Val, 0, 5);
1307 uint32_t msb_mask = 0xFFFFFFFF;
1308 if (msb != 31) msb_mask = (1U << (msb+1)) - 1;
1309 uint32_t lsb_mask = (1U << lsb) - 1;
1316 uint64_t Address,
const void *Decoder) {
1319 unsigned pred = fieldFromInstruction(Insn, 28, 4);
1320 unsigned CRd = fieldFromInstruction(Insn, 12, 4);
1321 unsigned coproc = fieldFromInstruction(Insn, 8, 4);
1322 unsigned imm = fieldFromInstruction(Insn, 0, 8);
1323 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
1324 unsigned U = fieldFromInstruction(Insn, 23, 1);
1327 case ARM::LDC_OFFSET:
1330 case ARM::LDC_OPTION:
1331 case ARM::LDCL_OFFSET:
1333 case ARM::LDCL_POST:
1334 case ARM::LDCL_OPTION:
1335 case ARM::STC_OFFSET:
1338 case ARM::STC_OPTION:
1339 case ARM::STCL_OFFSET:
1341 case ARM::STCL_POST:
1342 case ARM::STCL_OPTION:
1343 case ARM::t2LDC_OFFSET:
1344 case ARM::t2LDC_PRE:
1345 case ARM::t2LDC_POST:
1346 case ARM::t2LDC_OPTION:
1347 case ARM::t2LDCL_OFFSET:
1348 case ARM::t2LDCL_PRE:
1349 case ARM::t2LDCL_POST:
1350 case ARM::t2LDCL_OPTION:
1351 case ARM::t2STC_OFFSET:
1352 case ARM::t2STC_PRE:
1353 case ARM::t2STC_POST:
1354 case ARM::t2STC_OPTION:
1355 case ARM::t2STCL_OFFSET:
1356 case ARM::t2STCL_PRE:
1357 case ARM::t2STCL_POST:
1358 case ARM::t2STCL_OPTION:
1359 if (coproc == 0xA || coproc == 0xB)
1366 uint64_t featureBits = ((
const MCDisassembler*)Decoder)->getSubtargetInfo()
1368 if ((featureBits & ARM::HasV8Ops) && (coproc != 14))
1377 case ARM::t2LDC2_OFFSET:
1378 case ARM::t2LDC2L_OFFSET:
1379 case ARM::t2LDC2_PRE:
1380 case ARM::t2LDC2L_PRE:
1381 case ARM::t2STC2_OFFSET:
1382 case ARM::t2STC2L_OFFSET:
1383 case ARM::t2STC2_PRE:
1384 case ARM::t2STC2L_PRE:
1385 case ARM::LDC2_OFFSET:
1386 case ARM::LDC2L_OFFSET:
1388 case ARM::LDC2L_PRE:
1389 case ARM::STC2_OFFSET:
1390 case ARM::STC2L_OFFSET:
1392 case ARM::STC2L_PRE:
1393 case ARM::t2LDC_OFFSET:
1394 case ARM::t2LDCL_OFFSET:
1395 case ARM::t2LDC_PRE:
1396 case ARM::t2LDCL_PRE:
1397 case ARM::t2STC_OFFSET:
1398 case ARM::t2STCL_OFFSET:
1399 case ARM::t2STC_PRE:
1400 case ARM::t2STCL_PRE:
1401 case ARM::LDC_OFFSET:
1402 case ARM::LDCL_OFFSET:
1405 case ARM::STC_OFFSET:
1406 case ARM::STCL_OFFSET:
1412 case ARM::t2LDC2_POST:
1413 case ARM::t2LDC2L_POST:
1414 case ARM::t2STC2_POST:
1415 case ARM::t2STC2L_POST:
1416 case ARM::LDC2_POST:
1417 case ARM::LDC2L_POST:
1418 case ARM::STC2_POST:
1419 case ARM::STC2L_POST:
1420 case ARM::t2LDC_POST:
1421 case ARM::t2LDCL_POST:
1422 case ARM::t2STC_POST:
1423 case ARM::t2STCL_POST:
1425 case ARM::LDCL_POST:
1427 case ARM::STCL_POST:
1438 case ARM::LDC_OFFSET:
1441 case ARM::LDC_OPTION:
1442 case ARM::LDCL_OFFSET:
1444 case ARM::LDCL_POST:
1445 case ARM::LDCL_OPTION:
1446 case ARM::STC_OFFSET:
1449 case ARM::STC_OPTION:
1450 case ARM::STCL_OFFSET:
1452 case ARM::STCL_POST:
1453 case ARM::STCL_OPTION:
1466 uint64_t Address,
const void *Decoder) {
1469 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
1470 unsigned Rt = fieldFromInstruction(Insn, 12, 4);
1471 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
1472 unsigned imm = fieldFromInstruction(Insn, 0, 12);
1473 unsigned pred = fieldFromInstruction(Insn, 28, 4);
1474 unsigned reg = fieldFromInstruction(Insn, 25, 1);
1475 unsigned P = fieldFromInstruction(Insn, 24, 1);
1476 unsigned W = fieldFromInstruction(Insn, 21, 1);
1480 case ARM::STR_POST_IMM:
1481 case ARM::STR_POST_REG:
1482 case ARM::STRB_POST_IMM:
1483 case ARM::STRB_POST_REG:
1484 case ARM::STRT_POST_REG:
1485 case ARM::STRT_POST_IMM:
1486 case ARM::STRBT_POST_REG:
1487 case ARM::STRBT_POST_IMM:
1500 case ARM::LDR_POST_IMM:
1501 case ARM::LDR_POST_REG:
1502 case ARM::LDRB_POST_IMM:
1503 case ARM::LDRB_POST_REG:
1504 case ARM::LDRBT_POST_REG:
1505 case ARM::LDRBT_POST_IMM:
1506 case ARM::LDRT_POST_REG:
1507 case ARM::LDRT_POST_IMM:
1519 if (!fieldFromInstruction(Insn, 23, 1))
1522 bool writeback = (P == 0) || (W == 1);
1523 unsigned idx_mode = 0;
1526 else if (!P && writeback)
1529 if (writeback && (Rn == 15 || Rn == Rt))
1536 switch( fieldFromInstruction(Insn, 5, 2)) {
1552 unsigned amt = fieldFromInstruction(Insn, 7, 5);
1571 uint64_t Address,
const void *Decoder) {
1574 unsigned Rn = fieldFromInstruction(Val, 13, 4);
1575 unsigned Rm = fieldFromInstruction(Val, 0, 4);
1576 unsigned type = fieldFromInstruction(Val, 5, 2);
1577 unsigned imm = fieldFromInstruction(Val, 7, 5);
1578 unsigned U = fieldFromInstruction(Val, 12, 1);
1615 uint64_t Address,
const void *Decoder) {
1618 unsigned Rt = fieldFromInstruction(Insn, 12, 4);
1619 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
1620 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
1621 unsigned type = fieldFromInstruction(Insn, 22, 1);
1622 unsigned imm = fieldFromInstruction(Insn, 8, 4);
1623 unsigned U = ((~fieldFromInstruction(Insn, 23, 1)) & 1) << 8;
1624 unsigned pred = fieldFromInstruction(Insn, 28, 4);
1625 unsigned W = fieldFromInstruction(Insn, 21, 1);
1626 unsigned P = fieldFromInstruction(Insn, 24, 1);
1627 unsigned Rt2 = Rt + 1;
1629 bool writeback = (W == 1) | (P == 0);
1635 case ARM::STRD_POST:
1638 case ARM::LDRD_POST:
1647 case ARM::STRD_POST:
1648 if (P == 0 && W == 1)
1651 if (writeback && (Rn == 15 || Rn == Rt || Rn == Rt2))
1653 if (type && Rm == 15)
1657 if (!type && fieldFromInstruction(Insn, 8, 4))
1662 case ARM::STRH_POST:
1665 if (writeback && (Rn == 15 || Rn == Rt))
1667 if (!type && Rm == 15)
1672 case ARM::LDRD_POST:
1673 if (type && Rn == 15){
1678 if (P == 0 && W == 1)
1680 if (!type && (Rt2 == 15 || Rm == 15 || Rm == Rt || Rm == Rt2))
1682 if (!type && writeback && Rn == 15)
1684 if (writeback && (Rn == Rt || Rn == Rt2))
1689 case ARM::LDRH_POST:
1690 if (type && Rn == 15){
1697 if (!type && Rm == 15)
1699 if (!type && writeback && (Rn == 15 || Rn == Rt))
1703 case ARM::LDRSH_PRE:
1704 case ARM::LDRSH_POST:
1706 case ARM::LDRSB_PRE:
1707 case ARM::LDRSB_POST:
1708 if (type && Rn == 15){
1713 if (type && (Rt == 15 || (writeback && Rn == Rt)))
1715 if (!type && (Rt == 15 || Rm == 15))
1717 if (!type && writeback && (Rn == 15 || Rn == Rt))
1734 case ARM::STRD_POST:
1737 case ARM::STRH_POST:
1751 case ARM::STRD_POST:
1754 case ARM::LDRD_POST:
1767 case ARM::LDRD_POST:
1770 case ARM::LDRH_POST:
1772 case ARM::LDRSH_PRE:
1773 case ARM::LDRSH_POST:
1775 case ARM::LDRSB_PRE:
1776 case ARM::LDRSB_POST:
1806 uint64_t Address,
const void *Decoder) {
1809 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
1810 unsigned mode = fieldFromInstruction(Insn, 23, 2);
1835 uint64_t Address,
const void *Decoder) {
1838 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
1839 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
1840 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
1841 unsigned pred = fieldFromInstruction(Insn, 28, 4);
1859 uint64_t Address,
const void *Decoder) {
1862 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
1863 unsigned pred = fieldFromInstruction(Insn, 28, 4);
1864 unsigned reglist = fieldFromInstruction(Insn, 0, 16);
1872 case ARM::LDMDA_UPD:
1878 case ARM::LDMDB_UPD:
1884 case ARM::LDMIA_UPD:
1890 case ARM::LDMIB_UPD:
1896 case ARM::STMDA_UPD:
1902 case ARM::STMDB_UPD:
1908 case ARM::STMIA_UPD:
1914 case ARM::STMIB_UPD:
1922 if (fieldFromInstruction(Insn, 20, 1) == 0) {
1924 if (!(fieldFromInstruction(Insn, 22, 1) == 1 &&
1925 fieldFromInstruction(Insn, 20, 1) == 0))
1949 uint64_t Address,
const void *Decoder) {
1950 unsigned imod = fieldFromInstruction(Insn, 18, 2);
1951 unsigned M = fieldFromInstruction(Insn, 17, 1);
1952 unsigned iflags = fieldFromInstruction(Insn, 6, 3);
1953 unsigned mode = fieldFromInstruction(Insn, 0, 5);
1959 if (fieldFromInstruction(Insn, 5, 1) != 0 ||
1960 fieldFromInstruction(Insn, 16, 1) != 0 ||
1961 fieldFromInstruction(Insn, 20, 8) != 0x10)
1976 }
else if (imod && !M) {
1981 }
else if (!imod && M) {
1996 uint64_t Address,
const void *Decoder) {
1997 unsigned imod = fieldFromInstruction(Insn, 9, 2);
1998 unsigned M = fieldFromInstruction(Insn, 8, 1);
1999 unsigned iflags = fieldFromInstruction(Insn, 5, 3);
2000 unsigned mode = fieldFromInstruction(Insn, 0, 5);
2016 }
else if (imod && !M) {
2021 }
else if (!imod && M) {
2027 int imm = fieldFromInstruction(Insn, 0, 8);
2038 uint64_t Address,
const void *Decoder) {
2041 unsigned Rd = fieldFromInstruction(Insn, 8, 4);
2044 imm |= (fieldFromInstruction(Insn, 0, 8) << 0);
2045 imm |= (fieldFromInstruction(Insn, 12, 3) << 8);
2046 imm |= (fieldFromInstruction(Insn, 16, 4) << 12);
2047 imm |= (fieldFromInstruction(Insn, 26, 1) << 11);
2062 uint64_t Address,
const void *Decoder) {
2065 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
2066 unsigned pred = fieldFromInstruction(Insn, 28, 4);
2069 imm |= (fieldFromInstruction(Insn, 0, 12) << 0);
2070 imm |= (fieldFromInstruction(Insn, 16, 4) << 12);
2089 uint64_t Address,
const void *Decoder) {
2092 unsigned Rd = fieldFromInstruction(Insn, 16, 4);
2093 unsigned Rn = fieldFromInstruction(Insn, 0, 4);
2094 unsigned Rm = fieldFromInstruction(Insn, 8, 4);
2095 unsigned Ra = fieldFromInstruction(Insn, 12, 4);
2096 unsigned pred = fieldFromInstruction(Insn, 28, 4);
2117 uint64_t Address,
const void *Decoder) {
2120 unsigned add = fieldFromInstruction(Val, 12, 1);
2121 unsigned imm = fieldFromInstruction(Val, 0, 12);
2122 unsigned Rn = fieldFromInstruction(Val, 13, 4);
2127 if (!add) imm *= -1;
2128 if (imm == 0 && !add) imm = INT32_MIN;
2137 uint64_t Address,
const void *Decoder) {
2140 unsigned Rn = fieldFromInstruction(Val, 9, 4);
2141 unsigned U = fieldFromInstruction(Val, 8, 1);
2142 unsigned imm = fieldFromInstruction(Val, 0, 8);
2156 uint64_t Address,
const void *Decoder) {
2162 uint64_t Address,
const void *Decoder) {
2171 unsigned S = fieldFromInstruction(Insn, 26, 1);
2172 unsigned J1 = fieldFromInstruction(Insn, 13, 1);
2173 unsigned J2 = fieldFromInstruction(Insn, 11, 1);
2174 unsigned I1 = !(J1 ^ S);
2175 unsigned I2 = !(J2 ^ S);
2176 unsigned imm10 = fieldFromInstruction(Insn, 16, 10);
2177 unsigned imm11 = fieldFromInstruction(Insn, 0, 11);
2178 unsigned tmp = (S << 23) | (I1 << 22) | (I2 << 21) | (imm10 << 11) | imm11;
2179 int imm32 = SignExtend32<25>(tmp << 1);
2181 true, 4, Inst, Decoder))
2189 uint64_t Address,
const void *Decoder) {
2192 unsigned pred = fieldFromInstruction(Insn, 28, 4);
2193 unsigned imm = fieldFromInstruction(Insn, 0, 24) << 2;
2197 imm |= fieldFromInstruction(Insn, 24, 1) << 1;
2199 true, 4, Inst, Decoder))
2205 true, 4, Inst, Decoder))
2215 uint64_t Address,
const void *Decoder) {
2218 unsigned Rm = fieldFromInstruction(Val, 0, 4);
2219 unsigned align = fieldFromInstruction(Val, 4, 2);
2232 uint64_t Address,
const void *Decoder) {
2235 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
2236 Rd |= fieldFromInstruction(Insn, 22, 1) << 4;
2237 unsigned wb = fieldFromInstruction(Insn, 16, 4);
2238 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
2239 Rn |= fieldFromInstruction(Insn, 4, 2) << 4;
2240 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
2244 case ARM::VLD1q16:
case ARM::VLD1q32:
case ARM::VLD1q64:
case ARM::VLD1q8:
2245 case ARM::VLD1q16wb_fixed:
case ARM::VLD1q16wb_register:
2246 case ARM::VLD1q32wb_fixed:
case ARM::VLD1q32wb_register:
2247 case ARM::VLD1q64wb_fixed:
case ARM::VLD1q64wb_register:
2248 case ARM::VLD1q8wb_fixed:
case ARM::VLD1q8wb_register:
2249 case ARM::VLD2d16:
case ARM::VLD2d32:
case ARM::VLD2d8:
2250 case ARM::VLD2d16wb_fixed:
case ARM::VLD2d16wb_register:
2251 case ARM::VLD2d32wb_fixed:
case ARM::VLD2d32wb_register:
2252 case ARM::VLD2d8wb_fixed:
case ARM::VLD2d8wb_register:
2259 case ARM::VLD2b16wb_fixed:
2260 case ARM::VLD2b16wb_register:
2261 case ARM::VLD2b32wb_fixed:
2262 case ARM::VLD2b32wb_register:
2263 case ARM::VLD2b8wb_fixed:
2264 case ARM::VLD2b8wb_register:
2278 case ARM::VLD3d8_UPD:
2279 case ARM::VLD3d16_UPD:
2280 case ARM::VLD3d32_UPD:
2284 case ARM::VLD4d8_UPD:
2285 case ARM::VLD4d16_UPD:
2286 case ARM::VLD4d32_UPD:
2293 case ARM::VLD3q8_UPD:
2294 case ARM::VLD3q16_UPD:
2295 case ARM::VLD3q32_UPD:
2299 case ARM::VLD4q8_UPD:
2300 case ARM::VLD4q16_UPD:
2301 case ARM::VLD4q32_UPD:
2313 case ARM::VLD3d8_UPD:
2314 case ARM::VLD3d16_UPD:
2315 case ARM::VLD3d32_UPD:
2319 case ARM::VLD4d8_UPD:
2320 case ARM::VLD4d16_UPD:
2321 case ARM::VLD4d32_UPD:
2328 case ARM::VLD3q8_UPD:
2329 case ARM::VLD3q16_UPD:
2330 case ARM::VLD3q32_UPD:
2334 case ARM::VLD4q8_UPD:
2335 case ARM::VLD4q16_UPD:
2336 case ARM::VLD4q32_UPD:
2349 case ARM::VLD4d8_UPD:
2350 case ARM::VLD4d16_UPD:
2351 case ARM::VLD4d32_UPD:
2358 case ARM::VLD4q8_UPD:
2359 case ARM::VLD4q16_UPD:
2360 case ARM::VLD4q32_UPD:
2370 case ARM::VLD1d8wb_fixed:
2371 case ARM::VLD1d16wb_fixed:
2372 case ARM::VLD1d32wb_fixed:
2373 case ARM::VLD1d64wb_fixed:
2374 case ARM::VLD1d8wb_register:
2375 case ARM::VLD1d16wb_register:
2376 case ARM::VLD1d32wb_register:
2377 case ARM::VLD1d64wb_register:
2378 case ARM::VLD1q8wb_fixed:
2379 case ARM::VLD1q16wb_fixed:
2380 case ARM::VLD1q32wb_fixed:
2381 case ARM::VLD1q64wb_fixed:
2382 case ARM::VLD1q8wb_register:
2383 case ARM::VLD1q16wb_register:
2384 case ARM::VLD1q32wb_register:
2385 case ARM::VLD1q64wb_register:
2386 case ARM::VLD1d8Twb_fixed:
2387 case ARM::VLD1d8Twb_register:
2388 case ARM::VLD1d16Twb_fixed:
2389 case ARM::VLD1d16Twb_register:
2390 case ARM::VLD1d32Twb_fixed:
2391 case ARM::VLD1d32Twb_register:
2392 case ARM::VLD1d64Twb_fixed:
2393 case ARM::VLD1d64Twb_register:
2394 case ARM::VLD1d8Qwb_fixed:
2395 case ARM::VLD1d8Qwb_register:
2396 case ARM::VLD1d16Qwb_fixed:
2397 case ARM::VLD1d16Qwb_register:
2398 case ARM::VLD1d32Qwb_fixed:
2399 case ARM::VLD1d32Qwb_register:
2400 case ARM::VLD1d64Qwb_fixed:
2401 case ARM::VLD1d64Qwb_register:
2402 case ARM::VLD2d8wb_fixed:
2403 case ARM::VLD2d16wb_fixed:
2404 case ARM::VLD2d32wb_fixed:
2405 case ARM::VLD2q8wb_fixed:
2406 case ARM::VLD2q16wb_fixed:
2407 case ARM::VLD2q32wb_fixed:
2408 case ARM::VLD2d8wb_register:
2409 case ARM::VLD2d16wb_register:
2410 case ARM::VLD2d32wb_register:
2411 case ARM::VLD2q8wb_register:
2412 case ARM::VLD2q16wb_register:
2413 case ARM::VLD2q32wb_register:
2414 case ARM::VLD2b8wb_fixed:
2415 case ARM::VLD2b16wb_fixed:
2416 case ARM::VLD2b32wb_fixed:
2417 case ARM::VLD2b8wb_register:
2418 case ARM::VLD2b16wb_register:
2419 case ARM::VLD2b32wb_register:
2422 case ARM::VLD3d8_UPD:
2423 case ARM::VLD3d16_UPD:
2424 case ARM::VLD3d32_UPD:
2425 case ARM::VLD3q8_UPD:
2426 case ARM::VLD3q16_UPD:
2427 case ARM::VLD3q32_UPD:
2428 case ARM::VLD4d8_UPD:
2429 case ARM::VLD4d16_UPD:
2430 case ARM::VLD4d32_UPD:
2431 case ARM::VLD4q8_UPD:
2432 case ARM::VLD4q16_UPD:
2433 case ARM::VLD4q32_UPD:
2459 case ARM::VLD1d8wb_fixed:
2460 case ARM::VLD1d16wb_fixed:
2461 case ARM::VLD1d32wb_fixed:
2462 case ARM::VLD1d64wb_fixed:
2463 case ARM::VLD1d8Twb_fixed:
2464 case ARM::VLD1d16Twb_fixed:
2465 case ARM::VLD1d32Twb_fixed:
2466 case ARM::VLD1d64Twb_fixed:
2467 case ARM::VLD1d8Qwb_fixed:
2468 case ARM::VLD1d16Qwb_fixed:
2469 case ARM::VLD1d32Qwb_fixed:
2470 case ARM::VLD1d64Qwb_fixed:
2471 case ARM::VLD1d8wb_register:
2472 case ARM::VLD1d16wb_register:
2473 case ARM::VLD1d32wb_register:
2474 case ARM::VLD1d64wb_register:
2475 case ARM::VLD1q8wb_fixed:
2476 case ARM::VLD1q16wb_fixed:
2477 case ARM::VLD1q32wb_fixed:
2478 case ARM::VLD1q64wb_fixed:
2479 case ARM::VLD1q8wb_register:
2480 case ARM::VLD1q16wb_register:
2481 case ARM::VLD1q32wb_register:
2482 case ARM::VLD1q64wb_register:
2486 if (Rm != 0xD && Rm != 0xF &&
2490 case ARM::VLD2d8wb_fixed:
2491 case ARM::VLD2d16wb_fixed:
2492 case ARM::VLD2d32wb_fixed:
2493 case ARM::VLD2b8wb_fixed:
2494 case ARM::VLD2b16wb_fixed:
2495 case ARM::VLD2b32wb_fixed:
2496 case ARM::VLD2q8wb_fixed:
2497 case ARM::VLD2q16wb_fixed:
2498 case ARM::VLD2q32wb_fixed:
2506 uint64_t Address,
const void *Decoder) {
2507 unsigned type = fieldFromInstruction(Insn, 8, 4);
2508 unsigned align = fieldFromInstruction(Insn, 4, 2);
2513 unsigned load = fieldFromInstruction(Insn, 21, 1);
2519 uint64_t Address,
const void *Decoder) {
2520 unsigned size = fieldFromInstruction(Insn, 6, 2);
2523 unsigned type = fieldFromInstruction(Insn, 8, 4);
2524 unsigned align = fieldFromInstruction(Insn, 4, 2);
2528 unsigned load = fieldFromInstruction(Insn, 21, 1);
2534 uint64_t Address,
const void *Decoder) {
2535 unsigned size = fieldFromInstruction(Insn, 6, 2);
2538 unsigned align = fieldFromInstruction(Insn, 4, 2);
2541 unsigned load = fieldFromInstruction(Insn, 21, 1);
2547 uint64_t Address,
const void *Decoder) {
2548 unsigned size = fieldFromInstruction(Insn, 6, 2);
2551 unsigned load = fieldFromInstruction(Insn, 21, 1);
2557 uint64_t Address,
const void *Decoder) {
2560 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
2561 Rd |= fieldFromInstruction(Insn, 22, 1) << 4;
2562 unsigned wb = fieldFromInstruction(Insn, 16, 4);
2563 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
2564 Rn |= fieldFromInstruction(Insn, 4, 2) << 4;
2565 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
2569 case ARM::VST1d8wb_fixed:
2570 case ARM::VST1d16wb_fixed:
2571 case ARM::VST1d32wb_fixed:
2572 case ARM::VST1d64wb_fixed:
2573 case ARM::VST1d8wb_register:
2574 case ARM::VST1d16wb_register:
2575 case ARM::VST1d32wb_register:
2576 case ARM::VST1d64wb_register:
2577 case ARM::VST1q8wb_fixed:
2578 case ARM::VST1q16wb_fixed:
2579 case ARM::VST1q32wb_fixed:
2580 case ARM::VST1q64wb_fixed:
2581 case ARM::VST1q8wb_register:
2582 case ARM::VST1q16wb_register:
2583 case ARM::VST1q32wb_register:
2584 case ARM::VST1q64wb_register:
2585 case ARM::VST1d8Twb_fixed:
2586 case ARM::VST1d16Twb_fixed:
2587 case ARM::VST1d32Twb_fixed:
2588 case ARM::VST1d64Twb_fixed:
2589 case ARM::VST1d8Twb_register:
2590 case ARM::VST1d16Twb_register:
2591 case ARM::VST1d32Twb_register:
2592 case ARM::VST1d64Twb_register:
2593 case ARM::VST1d8Qwb_fixed:
2594 case ARM::VST1d16Qwb_fixed:
2595 case ARM::VST1d32Qwb_fixed:
2596 case ARM::VST1d64Qwb_fixed:
2597 case ARM::VST1d8Qwb_register:
2598 case ARM::VST1d16Qwb_register:
2599 case ARM::VST1d32Qwb_register:
2600 case ARM::VST1d64Qwb_register:
2601 case ARM::VST2d8wb_fixed:
2602 case ARM::VST2d16wb_fixed:
2603 case ARM::VST2d32wb_fixed:
2604 case ARM::VST2d8wb_register:
2605 case ARM::VST2d16wb_register:
2606 case ARM::VST2d32wb_register:
2607 case ARM::VST2q8wb_fixed:
2608 case ARM::VST2q16wb_fixed:
2609 case ARM::VST2q32wb_fixed:
2610 case ARM::VST2q8wb_register:
2611 case ARM::VST2q16wb_register:
2612 case ARM::VST2q32wb_register:
2613 case ARM::VST2b8wb_fixed:
2614 case ARM::VST2b16wb_fixed:
2615 case ARM::VST2b32wb_fixed:
2616 case ARM::VST2b8wb_register:
2617 case ARM::VST2b16wb_register:
2618 case ARM::VST2b32wb_register:
2623 case ARM::VST3d8_UPD:
2624 case ARM::VST3d16_UPD:
2625 case ARM::VST3d32_UPD:
2626 case ARM::VST3q8_UPD:
2627 case ARM::VST3q16_UPD:
2628 case ARM::VST3q32_UPD:
2629 case ARM::VST4d8_UPD:
2630 case ARM::VST4d16_UPD:
2631 case ARM::VST4d32_UPD:
2632 case ARM::VST4q8_UPD:
2633 case ARM::VST4q16_UPD:
2634 case ARM::VST4q32_UPD:
2651 else if (Rm != 0xF) {
2656 case ARM::VST1d8wb_fixed:
2657 case ARM::VST1d16wb_fixed:
2658 case ARM::VST1d32wb_fixed:
2659 case ARM::VST1d64wb_fixed:
2660 case ARM::VST1q8wb_fixed:
2661 case ARM::VST1q16wb_fixed:
2662 case ARM::VST1q32wb_fixed:
2663 case ARM::VST1q64wb_fixed:
2664 case ARM::VST1d8Twb_fixed:
2665 case ARM::VST1d16Twb_fixed:
2666 case ARM::VST1d32Twb_fixed:
2667 case ARM::VST1d64Twb_fixed:
2668 case ARM::VST1d8Qwb_fixed:
2669 case ARM::VST1d16Qwb_fixed:
2670 case ARM::VST1d32Qwb_fixed:
2671 case ARM::VST1d64Qwb_fixed:
2672 case ARM::VST2d8wb_fixed:
2673 case ARM::VST2d16wb_fixed:
2674 case ARM::VST2d32wb_fixed:
2675 case ARM::VST2q8wb_fixed:
2676 case ARM::VST2q16wb_fixed:
2677 case ARM::VST2q32wb_fixed:
2678 case ARM::VST2b8wb_fixed:
2679 case ARM::VST2b16wb_fixed:
2680 case ARM::VST2b32wb_fixed:
2691 case ARM::VST1q16wb_fixed:
2692 case ARM::VST1q16wb_register:
2693 case ARM::VST1q32wb_fixed:
2694 case ARM::VST1q32wb_register:
2695 case ARM::VST1q64wb_fixed:
2696 case ARM::VST1q64wb_register:
2697 case ARM::VST1q8wb_fixed:
2698 case ARM::VST1q8wb_register:
2702 case ARM::VST2d16wb_fixed:
2703 case ARM::VST2d16wb_register:
2704 case ARM::VST2d32wb_fixed:
2705 case ARM::VST2d32wb_register:
2706 case ARM::VST2d8wb_fixed:
2707 case ARM::VST2d8wb_register:
2714 case ARM::VST2b16wb_fixed:
2715 case ARM::VST2b16wb_register:
2716 case ARM::VST2b32wb_fixed:
2717 case ARM::VST2b32wb_register:
2718 case ARM::VST2b8wb_fixed:
2719 case ARM::VST2b8wb_register:
2733 case ARM::VST3d8_UPD:
2734 case ARM::VST3d16_UPD:
2735 case ARM::VST3d32_UPD:
2739 case ARM::VST4d8_UPD:
2740 case ARM::VST4d16_UPD:
2741 case ARM::VST4d32_UPD:
2748 case ARM::VST3q8_UPD:
2749 case ARM::VST3q16_UPD:
2750 case ARM::VST3q32_UPD:
2754 case ARM::VST4q8_UPD:
2755 case ARM::VST4q16_UPD:
2756 case ARM::VST4q32_UPD:
2769 case ARM::VST3d8_UPD:
2770 case ARM::VST3d16_UPD:
2771 case ARM::VST3d32_UPD:
2775 case ARM::VST4d8_UPD:
2776 case ARM::VST4d16_UPD:
2777 case ARM::VST4d32_UPD:
2784 case ARM::VST3q8_UPD:
2785 case ARM::VST3q16_UPD:
2786 case ARM::VST3q32_UPD:
2790 case ARM::VST4q8_UPD:
2791 case ARM::VST4q16_UPD:
2792 case ARM::VST4q32_UPD:
2805 case ARM::VST4d8_UPD:
2806 case ARM::VST4d16_UPD:
2807 case ARM::VST4d32_UPD:
2814 case ARM::VST4q8_UPD:
2815 case ARM::VST4q16_UPD:
2816 case ARM::VST4q32_UPD:
2828 uint64_t Address,
const void *Decoder) {
2831 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
2832 Rd |= fieldFromInstruction(Insn, 22, 1) << 4;
2833 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
2834 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
2835 unsigned align = fieldFromInstruction(Insn, 4, 1);
2836 unsigned size = fieldFromInstruction(Insn, 6, 2);
2838 if (size == 0 && align == 1)
2840 align *= (1 << size);
2843 case ARM::VLD1DUPq16:
case ARM::VLD1DUPq32:
case ARM::VLD1DUPq8:
2844 case ARM::VLD1DUPq16wb_fixed:
case ARM::VLD1DUPq16wb_register:
2845 case ARM::VLD1DUPq32wb_fixed:
case ARM::VLD1DUPq32wb_register:
2846 case ARM::VLD1DUPq8wb_fixed:
case ARM::VLD1DUPq8wb_register:
2867 if (Rm != 0xD && Rm != 0xF &&
2875 uint64_t Address,
const void *Decoder) {
2878 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
2879 Rd |= fieldFromInstruction(Insn, 22, 1) << 4;
2880 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
2881 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
2882 unsigned align = fieldFromInstruction(Insn, 4, 1);
2883 unsigned size = 1 << fieldFromInstruction(Insn, 6, 2);
2887 case ARM::VLD2DUPd16:
case ARM::VLD2DUPd32:
case ARM::VLD2DUPd8:
2888 case ARM::VLD2DUPd16wb_fixed:
case ARM::VLD2DUPd16wb_register:
2889 case ARM::VLD2DUPd32wb_fixed:
case ARM::VLD2DUPd32wb_register:
2890 case ARM::VLD2DUPd8wb_fixed:
case ARM::VLD2DUPd8wb_register:
2894 case ARM::VLD2DUPd16x2:
case ARM::VLD2DUPd32x2:
case ARM::VLD2DUPd8x2:
2895 case ARM::VLD2DUPd16x2wb_fixed:
case ARM::VLD2DUPd16x2wb_register:
2896 case ARM::VLD2DUPd32x2wb_fixed:
case ARM::VLD2DUPd32x2wb_register:
2897 case ARM::VLD2DUPd8x2wb_fixed:
case ARM::VLD2DUPd8x2wb_register:
2914 if (Rm != 0xD && Rm != 0xF) {
2923 uint64_t Address,
const void *Decoder) {
2926 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
2927 Rd |= fieldFromInstruction(Insn, 22, 1) << 4;
2928 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
2929 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
2930 unsigned inc = fieldFromInstruction(Insn, 5, 1) + 1;
2949 else if (Rm != 0xF) {
2958 uint64_t Address,
const void *Decoder) {
2961 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
2962 Rd |= fieldFromInstruction(Insn, 22, 1) << 4;
2963 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
2964 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
2965 unsigned size = fieldFromInstruction(Insn, 6, 2);
2966 unsigned inc = fieldFromInstruction(Insn, 5, 1) + 1;
2967 unsigned align = fieldFromInstruction(Insn, 4, 1);
3003 else if (Rm != 0xF) {
3013 uint64_t Address,
const void *Decoder) {
3016 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
3017 Rd |= fieldFromInstruction(Insn, 22, 1) << 4;
3018 unsigned imm = fieldFromInstruction(Insn, 0, 4);
3019 imm |= fieldFromInstruction(Insn, 16, 3) << 4;
3020 imm |= fieldFromInstruction(Insn, 24, 1) << 7;
3021 imm |= fieldFromInstruction(Insn, 8, 4) << 8;
3022 imm |= fieldFromInstruction(Insn, 5, 1) << 12;
3023 unsigned Q = fieldFromInstruction(Insn, 6, 1);
3036 case ARM::VORRiv4i16:
3037 case ARM::VORRiv2i32:
3038 case ARM::VBICiv4i16:
3039 case ARM::VBICiv2i32:
3043 case ARM::VORRiv8i16:
3044 case ARM::VORRiv4i32:
3045 case ARM::VBICiv8i16:
3046 case ARM::VBICiv4i32:
3058 uint64_t Address,
const void *Decoder) {
3061 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
3062 Rd |= fieldFromInstruction(Insn, 22, 1) << 4;
3063 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
3064 Rm |= fieldFromInstruction(Insn, 5, 1) << 4;
3065 unsigned size = fieldFromInstruction(Insn, 18, 2);
3077 uint64_t Address,
const void *Decoder) {
3083 uint64_t Address,
const void *Decoder) {
3089 uint64_t Address,
const void *Decoder) {
3095 uint64_t Address,
const void *Decoder) {
3101 uint64_t Address,
const void *Decoder) {
3104 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
3105 Rd |= fieldFromInstruction(Insn, 22, 1) << 4;
3106 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
3107 Rn |= fieldFromInstruction(Insn, 7, 1) << 4;
3108 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
3109 Rm |= fieldFromInstruction(Insn, 5, 1) << 4;
3110 unsigned op = fieldFromInstruction(Insn, 6, 1);
3137 uint64_t Address,
const void *Decoder) {
3140 unsigned dst = fieldFromInstruction(Insn, 8, 3);
3141 unsigned imm = fieldFromInstruction(Insn, 0, 8);
3161 uint64_t Address,
const void *Decoder) {
3163 true, 2, Inst, Decoder))
3169 uint64_t Address,
const void *Decoder) {
3171 true, 4, Inst, Decoder))
3177 uint64_t Address,
const void *Decoder) {
3179 true, 2, Inst, Decoder))
3185 uint64_t Address,
const void *Decoder) {
3188 unsigned Rn = fieldFromInstruction(Val, 0, 3);
3189 unsigned Rm = fieldFromInstruction(Val, 3, 3);
3200 uint64_t Address,
const void *Decoder) {
3203 unsigned Rn = fieldFromInstruction(Val, 0, 3);
3204 unsigned imm = fieldFromInstruction(Val, 3, 5);
3214 uint64_t Address,
const void *Decoder) {
3215 unsigned imm = Val << 2;
3224 uint64_t Address,
const void *Decoder) {
3232 uint64_t Address,
const void *Decoder) {
3235 unsigned Rn = fieldFromInstruction(Val, 6, 4);
3236 unsigned Rm = fieldFromInstruction(Val, 2, 4);
3237 unsigned imm = fieldFromInstruction(Val, 0, 2);
3260 uint64_t Address,
const void *Decoder) {
3263 unsigned Rt = fieldFromInstruction(Insn, 12, 4);
3264 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
3321 unsigned addrmode = fieldFromInstruction(Insn, 4, 2);
3322 addrmode |= fieldFromInstruction(Insn, 0, 4) << 2;
3323 addrmode |= fieldFromInstruction(Insn, 16, 4) << 6;
3331 uint64_t Address,
const void* Decoder) {
3334 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
3335 unsigned Rt = fieldFromInstruction(Insn, 12, 4);
3336 unsigned U = fieldFromInstruction(Insn, 9, 1);
3337 unsigned imm = fieldFromInstruction(Insn, 0, 8);
3349 case ARM::t2LDRSBi8:
3355 case ARM::t2LDRSHi8:
3372 case ARM::t2LDRSHi8:
3395 uint64_t Address,
const void* Decoder) {
3398 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
3399 unsigned Rt = fieldFromInstruction(Insn, 12, 4);
3400 unsigned imm = fieldFromInstruction(Insn, 0, 12);
3408 case ARM::t2LDRHi12:
3411 case ARM::t2LDRSHi12:
3414 case ARM::t2LDRBi12:
3417 case ARM::t2LDRSBi12:
3434 case ARM::t2LDRSHi12:
3436 case ARM::t2LDRHi12:
3446 case ARM::t2PLDWi12:
3460 uint64_t Address,
const void* Decoder) {
3463 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
3464 unsigned Rt = fieldFromInstruction(Insn, 12, 4);
3465 unsigned imm = fieldFromInstruction(Insn, 0, 8);
3499 uint64_t Address,
const void* Decoder) {
3502 unsigned Rt = fieldFromInstruction(Insn, 12, 4);
3503 unsigned U = fieldFromInstruction(Insn, 23, 1);
3504 int imm = fieldFromInstruction(Insn, 0, 12);
3508 case ARM::t2LDRBpci:
3509 case ARM::t2LDRHpci:
3512 case ARM::t2LDRSBpci:
3515 case ARM::t2LDRSHpci:
3544 uint64_t Address,
const void *Decoder) {
3548 int imm = Val & 0xFF;
3550 if (!(Val & 0x100)) imm *= -1;
3558 uint64_t Address,
const void *Decoder) {
3561 unsigned Rn = fieldFromInstruction(Val, 9, 4);
3562 unsigned imm = fieldFromInstruction(Val, 0, 9);
3573 uint64_t Address,
const void *Decoder) {
3576 unsigned Rn = fieldFromInstruction(Val, 8, 4);
3577 unsigned imm = fieldFromInstruction(Val, 0, 8);
3588 uint64_t Address,
const void *Decoder) {
3589 int imm = Val & 0xFF;
3592 else if (!(Val & 0x100))
3601 uint64_t Address,
const void *Decoder) {
3604 unsigned Rn = fieldFromInstruction(Val, 9, 4);
3605 unsigned imm = fieldFromInstruction(Val, 0, 9);
3647 uint64_t Address,
const void *Decoder) {
3650 unsigned Rt = fieldFromInstruction(Insn, 12, 4);
3651 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
3652 unsigned addr = fieldFromInstruction(Insn, 0, 8);
3653 addr |= fieldFromInstruction(Insn, 9, 1) << 8;
3655 unsigned load = fieldFromInstruction(Insn, 20, 1);
3659 case ARM::t2LDR_PRE:
3660 case ARM::t2LDR_POST:
3663 case ARM::t2LDRB_PRE:
3664 case ARM::t2LDRB_POST:
3667 case ARM::t2LDRH_PRE:
3668 case ARM::t2LDRH_POST:
3671 case ARM::t2LDRSB_PRE:
3672 case ARM::t2LDRSB_POST:
3678 case ARM::t2LDRSH_PRE:
3679 case ARM::t2LDRSH_POST:
3708 uint64_t Address,
const void *Decoder) {
3711 unsigned Rn = fieldFromInstruction(Val, 13, 4);
3712 unsigned imm = fieldFromInstruction(Val, 0, 12);
3717 case ARM::t2STRBi12:
3718 case ARM::t2STRHi12:
3734 uint64_t Address,
const void *Decoder) {
3735 unsigned imm = fieldFromInstruction(Insn, 0, 7);
3745 uint64_t Address,
const void *Decoder) {
3749 unsigned Rdm = fieldFromInstruction(Insn, 0, 3);
3750 Rdm |= fieldFromInstruction(Insn, 7, 1) << 3;
3757 }
else if (Inst.
getOpcode() == ARM::tADDspr) {
3758 unsigned Rm = fieldFromInstruction(Insn, 3, 4);
3770 uint64_t Address,
const void *Decoder) {
3771 unsigned imod = fieldFromInstruction(Insn, 4, 1) | 0x2;
3772 unsigned flags = fieldFromInstruction(Insn, 0, 3);
3781 uint64_t Address,
const void *Decoder) {
3783 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
3784 unsigned add = fieldFromInstruction(Insn, 4, 1);
3794 uint64_t Address,
const void *Decoder) {
3802 unsigned S = (Val >> 23) & 1;
3803 unsigned J1 = (Val >> 22) & 1;
3804 unsigned J2 = (Val >> 21) & 1;
3805 unsigned I1 = !(J1 ^ S);
3806 unsigned I2 = !(J2 ^ S);
3807 unsigned tmp = (Val & ~0x600000) | (I1 << 22) | (I2 << 21);
3808 int imm32 = SignExtend32<25>(tmp << 1);
3811 (Address & ~2u) + imm32 + 4,
3812 true, 4, Inst, Decoder))
3818 uint64_t Address,
const void *Decoder) {
3819 if (Val == 0xA || Val == 0xB)
3822 uint64_t featureBits = ((
const MCDisassembler*)Decoder)->getSubtargetInfo()
3824 if ((featureBits & ARM::HasV8Ops) && !(Val == 14 || Val == 15))
3833 uint64_t Address,
const void *Decoder) {
3836 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
3837 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
3849 uint64_t Address,
const void *Decoder) {
3852 unsigned pred = fieldFromInstruction(Insn, 22, 4);
3853 if (pred == 0xE || pred == 0xF) {
3854 unsigned opc = fieldFromInstruction(Insn, 4, 28);
3869 unsigned imm = fieldFromInstruction(Insn, 0, 4);
3873 unsigned brtarget = fieldFromInstruction(Insn, 0, 11) << 1;
3874 brtarget |= fieldFromInstruction(Insn, 11, 1) << 19;
3875 brtarget |= fieldFromInstruction(Insn, 13, 1) << 18;
3876 brtarget |= fieldFromInstruction(Insn, 16, 6) << 12;
3877 brtarget |= fieldFromInstruction(Insn, 26, 1) << 20;
3891 uint64_t Address,
const void *Decoder) {
3892 unsigned ctrl = fieldFromInstruction(Val, 10, 2);
3894 unsigned byte = fieldFromInstruction(Val, 8, 2);
3895 unsigned imm = fieldFromInstruction(Val, 0, 8);
3912 unsigned unrot = fieldFromInstruction(Val, 0, 7) | 0x80;
3913 unsigned rot = fieldFromInstruction(Val, 7, 5);
3914 unsigned imm = (unrot >> rot) | (unrot << ((32-rot)&31));
3923 uint64_t Address,
const void *Decoder){
3925 true, 2, Inst, Decoder))
3931 uint64_t Address,
const void *Decoder){
3939 unsigned S = (Val >> 23) & 1;
3940 unsigned J1 = (Val >> 22) & 1;
3941 unsigned J2 = (Val >> 21) & 1;
3942 unsigned I1 = !(J1 ^ S);
3943 unsigned I2 = !(J2 ^ S);
3944 unsigned tmp = (Val & ~0x600000) | (I1 << 22) | (I2 << 21);
3945 int imm32 = SignExtend32<25>(tmp << 1);
3948 true, 4, Inst, Decoder))
3954 uint64_t Address,
const void *Decoder) {
3963 uint64_t Address,
const void *Decoder) {
3972 uint64_t Address,
const void *Decoder) {
3979 uint64_t Address,
const void *Decoder) {
3982 unsigned Rt = fieldFromInstruction(Insn, 12, 4);
3983 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
3984 unsigned pred = fieldFromInstruction(Insn, 28, 4);
4000 uint64_t Address,
const void *Decoder){
4003 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
4004 unsigned Rt = fieldFromInstruction(Insn, 0, 4);
4005 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
4006 unsigned pred = fieldFromInstruction(Insn, 28, 4);
4011 if (Rn == 0xF || Rd == Rn || Rd == Rt || Rd == Rt+1)
4025 uint64_t Address,
const void *Decoder) {
4028 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
4029 unsigned Rt = fieldFromInstruction(Insn, 12, 4);
4030 unsigned imm = fieldFromInstruction(Insn, 0, 12);
4031 imm |= fieldFromInstruction(Insn, 16, 4) << 13;
4032 imm |= fieldFromInstruction(Insn, 23, 1) << 12;
4033 unsigned pred = fieldFromInstruction(Insn, 28, 4);
4050 uint64_t Address,
const void *Decoder) {
4053 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
4054 unsigned Rt = fieldFromInstruction(Insn, 12, 4);
4055 unsigned imm = fieldFromInstruction(Insn, 0, 12);
4056 imm |= fieldFromInstruction(Insn, 16, 4) << 13;
4057 imm |= fieldFromInstruction(Insn, 23, 1) << 12;
4058 unsigned pred = fieldFromInstruction(Insn, 28, 4);
4059 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
4078 uint64_t Address,
const void *Decoder) {
4081 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
4082 unsigned Rt = fieldFromInstruction(Insn, 12, 4);
4083 unsigned imm = fieldFromInstruction(Insn, 0, 12);
4084 imm |= fieldFromInstruction(Insn, 16, 4) << 13;
4085 imm |= fieldFromInstruction(Insn, 23, 1) << 12;
4086 unsigned pred = fieldFromInstruction(Insn, 28, 4);
4103 uint64_t Address,
const void *Decoder) {
4106 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
4107 unsigned Rt = fieldFromInstruction(Insn, 12, 4);
4108 unsigned imm = fieldFromInstruction(Insn, 0, 12);
4109 imm |= fieldFromInstruction(Insn, 16, 4) << 13;
4110 imm |= fieldFromInstruction(Insn, 23, 1) << 12;
4111 unsigned pred = fieldFromInstruction(Insn, 28, 4);
4128 uint64_t Address,
const void *Decoder) {
4131 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
4132 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
4133 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
4134 Rd |= fieldFromInstruction(Insn, 22, 1) << 4;
4135 unsigned size = fieldFromInstruction(Insn, 10, 2);
4143 if (fieldFromInstruction(Insn, 4, 1))
4145 index = fieldFromInstruction(Insn, 5, 3);
4148 if (fieldFromInstruction(Insn, 5, 1))
4150 index = fieldFromInstruction(Insn, 6, 2);
4151 if (fieldFromInstruction(Insn, 4, 1))
4155 if (fieldFromInstruction(Insn, 6, 1))
4157 index = fieldFromInstruction(Insn, 7, 1);
4159 switch (fieldFromInstruction(Insn, 4, 2)) {
4195 uint64_t Address,
const void *Decoder) {
4198 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
4199 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
4200 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
4201 Rd |= fieldFromInstruction(Insn, 22, 1) << 4;
4202 unsigned size = fieldFromInstruction(Insn, 10, 2);
4210 if (fieldFromInstruction(Insn, 4, 1))
4212 index = fieldFromInstruction(Insn, 5, 3);
4215 if (fieldFromInstruction(Insn, 5, 1))
4217 index = fieldFromInstruction(Insn, 6, 2);
4218 if (fieldFromInstruction(Insn, 4, 1))
4222 if (fieldFromInstruction(Insn, 6, 1))
4224 index = fieldFromInstruction(Insn, 7, 1);
4226 switch (fieldFromInstruction(Insn, 4, 2)) {
4261 uint64_t Address,
const void *Decoder) {
4264 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
4265 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
4266 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
4267 Rd |= fieldFromInstruction(Insn, 22, 1) << 4;
4268 unsigned size = fieldFromInstruction(Insn, 10, 2);
4277 index = fieldFromInstruction(Insn, 5, 3);
4278 if (fieldFromInstruction(Insn, 4, 1))
4282 index = fieldFromInstruction(Insn, 6, 2);
4283 if (fieldFromInstruction(Insn, 4, 1))
4285 if (fieldFromInstruction(Insn, 5, 1))
4289 if (fieldFromInstruction(Insn, 5, 1))
4291 index = fieldFromInstruction(Insn, 7, 1);
4292 if (fieldFromInstruction(Insn, 4, 1) != 0)
4294 if (fieldFromInstruction(Insn, 6, 1))
4328 uint64_t Address,
const void *Decoder) {
4331 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
4332 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
4333 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
4334 Rd |= fieldFromInstruction(Insn, 22, 1) << 4;
4335 unsigned size = fieldFromInstruction(Insn, 10, 2);
4344 index = fieldFromInstruction(Insn, 5, 3);
4345 if (fieldFromInstruction(Insn, 4, 1))
4349 index = fieldFromInstruction(Insn, 6, 2);
4350 if (fieldFromInstruction(Insn, 4, 1))
4352 if (fieldFromInstruction(Insn, 5, 1))
4356 if (fieldFromInstruction(Insn, 5, 1))
4358 index = fieldFromInstruction(Insn, 7, 1);
4359 if (fieldFromInstruction(Insn, 4, 1) != 0)
4361 if (fieldFromInstruction(Insn, 6, 1))
4392 uint64_t Address,
const void *Decoder) {
4395 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
4396 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
4397 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
4398 Rd |= fieldFromInstruction(Insn, 22, 1) << 4;
4399 unsigned size = fieldFromInstruction(Insn, 10, 2);
4408 if (fieldFromInstruction(Insn, 4, 1))
4410 index = fieldFromInstruction(Insn, 5, 3);
4413 if (fieldFromInstruction(Insn, 4, 1))
4415 index = fieldFromInstruction(Insn, 6, 2);
4416 if (fieldFromInstruction(Insn, 5, 1))
4420 if (fieldFromInstruction(Insn, 4, 2))
4422 index = fieldFromInstruction(Insn, 7, 1);
4423 if (fieldFromInstruction(Insn, 6, 1))
4462 uint64_t Address,
const void *Decoder) {
4465 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
4466 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
4467 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
4468 Rd |= fieldFromInstruction(Insn, 22, 1) << 4;
4469 unsigned size = fieldFromInstruction(Insn, 10, 2);
4478 if (fieldFromInstruction(Insn, 4, 1))
4480 index = fieldFromInstruction(Insn, 5, 3);
4483 if (fieldFromInstruction(Insn, 4, 1))
4485 index = fieldFromInstruction(Insn, 6, 2);
4486 if (fieldFromInstruction(Insn, 5, 1))
4490 if (fieldFromInstruction(Insn, 4, 2))
4492 index = fieldFromInstruction(Insn, 7, 1);
4493 if (fieldFromInstruction(Insn, 6, 1))
4526 uint64_t Address,
const void *Decoder) {
4529 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
4530 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
4531 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
4532 Rd |= fieldFromInstruction(Insn, 22, 1) << 4;
4533 unsigned size = fieldFromInstruction(Insn, 10, 2);
4542 if (fieldFromInstruction(Insn, 4, 1))
4544 index = fieldFromInstruction(Insn, 5, 3);
4547 if (fieldFromInstruction(Insn, 4, 1))
4549 index = fieldFromInstruction(Insn, 6, 2);
4550 if (fieldFromInstruction(Insn, 5, 1))
4554 switch (fieldFromInstruction(Insn, 4, 2)) {
4560 align = 4 << fieldFromInstruction(Insn, 4, 2);
break;
4563 index = fieldFromInstruction(Insn, 7, 1);
4564 if (fieldFromInstruction(Insn, 6, 1))
4607 uint64_t Address,
const void *Decoder) {
4610 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
4611 unsigned Rm = fieldFromInstruction(Insn, 0, 4);
4612 unsigned Rd = fieldFromInstruction(Insn, 12, 4);
4613 Rd |= fieldFromInstruction(Insn, 22, 1) << 4;
4614 unsigned size = fieldFromInstruction(Insn, 10, 2);
4623 if (fieldFromInstruction(Insn, 4, 1))
4625 index = fieldFromInstruction(Insn, 5, 3);
4628 if (fieldFromInstruction(Insn, 4, 1))
4630 index = fieldFromInstruction(Insn, 6, 2);
4631 if (fieldFromInstruction(Insn, 5, 1))
4635 switch (fieldFromInstruction(Insn, 4, 2)) {
4641 align = 4 << fieldFromInstruction(Insn, 4, 2);
break;
4644 index = fieldFromInstruction(Insn, 7, 1);
4645 if (fieldFromInstruction(Insn, 6, 1))
4679 uint64_t Address,
const void *Decoder) {
4681 unsigned Rt = fieldFromInstruction(Insn, 12, 4);
4682 unsigned Rt2 = fieldFromInstruction(Insn, 16, 4);
4683 unsigned Rm = fieldFromInstruction(Insn, 5, 1);
4684 unsigned pred = fieldFromInstruction(Insn, 28, 4);
4685 Rm |= fieldFromInstruction(Insn, 0, 4) << 1;
4687 if (Rt == 0xF || Rt2 == 0xF || Rm == 0x1F)
4705 uint64_t Address,
const void *Decoder) {
4707 unsigned Rt = fieldFromInstruction(Insn, 12, 4);
4708 unsigned Rt2 = fieldFromInstruction(Insn, 16, 4);
4709 unsigned Rm = fieldFromInstruction(Insn, 5, 1);
4710 unsigned pred = fieldFromInstruction(Insn, 28, 4);
4711 Rm |= fieldFromInstruction(Insn, 0, 4) << 1;
4713 if (Rt == 0xF || Rt2 == 0xF || Rm == 0x1F)
4731 uint64_t Address,
const void *Decoder) {
4733 unsigned pred = fieldFromInstruction(Insn, 4, 4);
4734 unsigned mask = fieldFromInstruction(Insn, 0, 4);
4751 uint64_t Address,
const void *Decoder) {
4754 unsigned Rt = fieldFromInstruction(Insn, 12, 4);
4755 unsigned Rt2 = fieldFromInstruction(Insn, 8, 4);
4756 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
4757 unsigned addr = fieldFromInstruction(Insn, 0, 8);
4758 unsigned W = fieldFromInstruction(Insn, 21, 1);
4759 unsigned U = fieldFromInstruction(Insn, 23, 1);
4760 unsigned P = fieldFromInstruction(Insn, 24, 1);
4761 bool writeback = (W == 1) | (P == 0);
4763 addr |= (U << 8) | (Rn << 9);
4765 if (writeback && (Rn == Rt || Rn == Rt2))
4788 uint64_t Address,
const void *Decoder) {
4791 unsigned Rt = fieldFromInstruction(Insn, 12, 4);
4792 unsigned Rt2 = fieldFromInstruction(Insn, 8, 4);
4793 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
4794 unsigned addr = fieldFromInstruction(Insn, 0, 8);
4795 unsigned W = fieldFromInstruction(Insn, 21, 1);
4796 unsigned U = fieldFromInstruction(Insn, 23, 1);
4797 unsigned P = fieldFromInstruction(Insn, 24, 1);
4798 bool writeback = (W == 1) | (P == 0);
4800 addr |= (U << 8) | (Rn << 9);
4802 if (writeback && (Rn == Rt || Rn == Rt2))
4822 uint64_t Address,
const void *Decoder) {
4823 unsigned sign1 = fieldFromInstruction(Insn, 21, 1);
4824 unsigned sign2 = fieldFromInstruction(Insn, 23, 1);
4827 unsigned Val = fieldFromInstruction(Insn, 0, 8);
4828 Val |= fieldFromInstruction(Insn, 12, 3) << 8;
4829 Val |= fieldFromInstruction(Insn, 26, 1) << 11;
4838 const void *Decoder) {
4848 uint64_t Address,
const void *Decoder) {
4849 unsigned Rt = fieldFromInstruction(Insn, 12, 4);
4850 unsigned Rt2 = fieldFromInstruction(Insn, 0, 4);
4851 unsigned Rn = fieldFromInstruction(Insn, 16, 4);
4852 unsigned pred = fieldFromInstruction(Insn, 28, 4);
4859 if (Rt == Rn || Rn == Rt2)
4875 uint64_t Address,
const void *Decoder) {
4876 unsigned Vd = (fieldFromInstruction(Insn, 12, 4) << 0);
4877 Vd |= (fieldFromInstruction(Insn, 22, 1) << 4);
4878 unsigned Vm = (fieldFromInstruction(Insn, 0, 4) << 0);
4879 Vm |= (fieldFromInstruction(Insn, 5, 1) << 4);
4880 unsigned imm = fieldFromInstruction(Insn, 16, 6);
4881 unsigned cmode = fieldFromInstruction(Insn, 8, 4);
4882 unsigned op = fieldFromInstruction(Insn, 5, 1);
4887 if (!(imm & 0x38) && cmode == 0xF) {
4905 uint64_t Address,
const void *Decoder) {
4906 unsigned Vd = (fieldFromInstruction(Insn, 12, 4) << 0);
4907 Vd |= (fieldFromInstruction(Insn, 22, 1) << 4);
4908 unsigned Vm = (fieldFromInstruction(Insn, 0, 4) << 0);
4909 Vm |= (fieldFromInstruction(Insn, 5, 1) << 4);
4910 unsigned imm = fieldFromInstruction(Insn, 16, 6);
4911 unsigned cmode = fieldFromInstruction(Insn, 8, 4);
4912 unsigned op = fieldFromInstruction(Insn, 5, 1);
4917 if (!(imm & 0x38) && cmode == 0xF) {
4935 uint64_t Address,
const void *Decoder) {
4938 unsigned Rn = fieldFromInstruction(Val, 16, 4);
4939 unsigned Rt = fieldFromInstruction(Val, 12, 4);
4940 unsigned Rm = fieldFromInstruction(Val, 0, 4);
4941 Rm |= (fieldFromInstruction(Val, 23, 1) << 4);
4942 unsigned Cond = fieldFromInstruction(Val, 28, 4);
4944 if (fieldFromInstruction(Val, 8, 4) != 0 || Rn == Rt)
4962 uint64_t Address,
const void *Decoder) {
4966 unsigned CRm = fieldFromInstruction(Val, 0, 4);
4967 unsigned opc1 = fieldFromInstruction(Val, 4, 4);
4968 unsigned cop = fieldFromInstruction(Val, 8, 4);
4969 unsigned Rt = fieldFromInstruction(Val, 12, 4);
4970 unsigned Rt2 = fieldFromInstruction(Val, 16, 4);
4972 if ((cop & ~0x1) == 0xa)
static DecodeStatus DecodeVSTInstruction(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2LoadImm12(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2AddrModeSOReg(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeAddrMode3Instruction(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbBROperand(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static const uint16_t GPRPairDecoderTable[]
static DecodeStatus DecodeNEONModImmInstruction(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbAddrModePC(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static MCOperand CreateReg(unsigned Reg)
static DecodeStatus DecodeArmMOVTWInstruction(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLDST1Instruction(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeAddrModeImm12Operand(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeInstSyncBarrierOption(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLD1DupInstruction(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeSTRPreReg(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumb2BCCInstruction(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeSORegRegOperand(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeRegListOperand(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static unsigned getAM5Opc(AddrOpc Opc, unsigned char Offset)
getAM5Opc - This function encodes the addrmode5 opc field.
static DecodeStatus DecodeAddrMode7Operand(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeDPRRegListOperand(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeRFEInstruction(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2LDRDPreInstruction(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static const uint16_t GPRDecoderTable[]
static DecodeStatus DecodeVCVTQ(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static void RegisterMCDisassembler(Target &T, Target::MCDisassemblerCtorTy Fn)
static DecodeStatus DecodeShiftRight64Imm(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLD2LN(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeDPR_8RegisterClass(MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static MCDisassembler * createARMDisassembler(const Target &T, const MCSubtargetInfo &STI)
MCDisassembler::DecodeStatus DecodeStatus
static DecodeStatus DecodeVMOVSRR(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeBranchImmInstruction(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeDPairRegisterClass(MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeShiftRight8Imm(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
virtual int readBytes(uint64_t address, uint64_t size, uint8_t *buf) const
static DecodeStatus DecodeVLD1LN(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbBCCTargetOperand(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
#define llvm_unreachable(msg)
static DecodeStatus DecodeT2ShifterImmOperand(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodetGPRRegisterClass(MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2AddrModeImm0_1020s4(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2CPSInstruction(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static bool Check(DecodeStatus &Out, DecodeStatus In)
static const uint16_t DPairSpacedDecoderTable[]
const MCInstrDesc ARMInsts[]
static DecodeStatus DecodeCPSInstruction(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeTBLInstruction(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodePostIdxReg(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeDPR_VFP2RegisterClass(MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
unsigned getReg() const
getReg - Returns the register number.
static DecodeStatus DecodeVLD4LN(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2LoadT(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbAddrModeIS(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static bool add(uint64_t *dest, const uint64_t *x, const uint64_t *y, unsigned len)
General addition of 64-bit integer arrays.
static const uint16_t SPRDecoderTable[]
static DecodeStatus DecodeBitfieldMaskOperand(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
iterator insert(iterator I, const MCOperand &Op)
static DecodeStatus DecodeSwap(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbAddSpecialReg(MCInst &Inst, uint16_t Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbTableBranch(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
unsigned short NumOperands
static DecodeStatus DecodeLDRPreReg(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeCoprocessor(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeLDRPreImm(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static const uint16_t DPRDecoderTable[]
static DecodeStatus DecodeT2MOVTWInstruction(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecoderGPRRegisterClass(MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static unsigned getAM2Opc(AddrOpc Opc, unsigned Imm12, ShiftOpc SO, unsigned IdxMode=0)
static DecodeStatus DecodeT2LdStPre(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeCopMemInstruction(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static const uint16_t DPairDecoderTable[]
static DecodeStatus DecodeT2Imm8S4(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLD2DupInstruction(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2SOImm(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeSPRRegisterClass(MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
A single entry single exit Region.
static MCDisassembler * createThumbDisassembler(const Target &T, const MCSubtargetInfo &STI)
static const uint16_t QPRDecoderTable[]
static DecodeStatus DecodeT2LoadLabel(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeMRRC2(llvm::MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeSORegImmOperand(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVSHLMaxInstruction(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2AddrModeImm8(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2BInstruction(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbBLXOffset(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbCmpBROperand(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeGPRRegisterClass(MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLD3DupInstruction(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLDST3Instruction(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbAddSPReg(MCInst &Inst, uint16_t Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVST2LN(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodetcGPRRegisterClass(MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
bool tryAddingSymbolicOperand(MCInst &Inst, int64_t Value, uint64_t Address, bool IsBranch, uint64_t Offset, uint64_t InstSize) const
void setOpcode(unsigned Op)
static DecodeStatus DecodeAddrMode6Operand(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeDoubleRegStore(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeSOImmOperand(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbBLTargetOperand(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2LoadImm8(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeIT(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
Promote Memory to Register
static DecodeStatus DecodeT2BROperand(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeMemMultipleWritebackInstruction(MCInst &Inst, unsigned Insn, uint64_t Adddress, const void *Decoder)
static DecodeStatus DecodeQADDInstruction(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static void AddThumb1SBit(MCInst &MI, bool InITBlock)
void LLVMInitializeARMDisassembler()
static DecodeStatus DecodeDoubleRegLoad(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeAddrMode5Operand(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeSPRRegListOperand(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
unsigned getOpcode() const
static DecodeStatus DecodeSTRPreImm(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodePredicateOperand(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2Imm8(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeLDR(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLDInstruction(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static MCOperand CreateImm(int64_t Val)
static DecodeStatus DecodeT2AddrModeImm8s4(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVMOVRRS(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeDPairSpacedRegisterClass(MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbAddrModeRR(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVST1LN(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbAddrModeSP(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLDST4Instruction(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeCCOutOperand(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeGPRwithAPSRRegisterClass(MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeMSRMask(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVCVTD(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeGPRnopcRegisterClass(MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLD4DupInstruction(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static bool isBranch(unsigned Opcode)
static DecodeStatus DecodeVST4LN(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbAddSPImm(MCInst &Inst, uint16_t Val, uint64_t Address, const void *Decoder)
LLVM Value Representation.
static DecodeStatus DecodeT2LoadShift(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
const MCOperandInfo * OpInfo
static DecodeStatus DecodeSORegMemOperand(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2STRDPreInstruction(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeQPRRegisterClass(MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeDPRRegisterClass(MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
void addOperand(const MCOperand &Op)
static void tryAddingPcLoadReferenceComment(uint64_t Address, int Value, const void *Decoder)
static DecodeStatus DecodeVST3LN(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2Adr(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeShiftRight32Imm(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeGPRPairRegisterClass(MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbCPS(MCInst &Inst, uint16_t Insn, uint64_t Address, const void *Decoder)
void tryAddingPcLoadReferenceComment(int64_t Value, uint64_t Address) const
static DecodeStatus DecodeMemBarrierOption(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeShiftRight16Imm(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLD3LN(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeAddrMode2IdxInstruction(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2AddrModeImm12(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeSMLAInstruction(MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
const MCOperand & getOperand(unsigned i) const
static bool tryAddingSymbolicOperand(uint64_t Address, int32_t Value, bool isBranch, uint64_t InstSize, MCInst &MI, const void *Decoder)
static DecodeStatus DecodeVLDST2Instruction(MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
int decodeInstruction(struct InternalInstruction *insn, byteReader_t reader, const void *readerArg, dlog_t logger, void *loggerArg, const void *miiArg, uint64_t startLoc, DisassemblerMode mode)