Lines Matching refs:inst2
433 unsigned short inst2; in thumb_get_next_pcs() local
434 if (proc_read_16(proc, pc + 2, &inst2) < 0) in thumb_get_next_pcs()
437 if ((inst1 & 0xf800) == 0xf000 && (inst2 & 0x8000) == 0x8000) { in thumb_get_next_pcs()
440 if ((inst2 & 0x1000) != 0 in thumb_get_next_pcs()
441 || (inst2 & 0xd001) == 0xc000) { in thumb_get_next_pcs()
445 const unsigned imm2 = BITS(inst2, 0, 10); in thumb_get_next_pcs()
446 const unsigned j1 = BIT(inst2, 13); in thumb_get_next_pcs()
447 const unsigned j2 = BIT(inst2, 11); in thumb_get_next_pcs()
456 if (BIT(inst2, 12) == 0) in thumb_get_next_pcs()
462 && (inst2 & 0xff00) == 0x3f00) { in thumb_get_next_pcs()
468 next -= inst2 & 0x00ff; in thumb_get_next_pcs()
472 } else if ((inst2 & 0xd000) == 0x8000 in thumb_get_next_pcs()
477 const unsigned imm2 = BITS(inst2, 0, 10); in thumb_get_next_pcs()
478 const unsigned j1 = BIT(inst2, 13); in thumb_get_next_pcs()
479 const unsigned j2 = BIT(inst2, 11); in thumb_get_next_pcs()
495 if (!BIT(inst2, 15)) in thumb_get_next_pcs()
497 offset = bitcount(inst2) * 4 - 4; in thumb_get_next_pcs()
500 if (!BIT(inst2, 15)) in thumb_get_next_pcs()
525 && (inst2 & 0xfff0) == 0x0f00) { in thumb_get_next_pcs()
527 const enum arm_register rn = BITS(inst2, 0, 3); in thumb_get_next_pcs()
534 && (inst2 & 0xf000) == 0xf000) { in thumb_get_next_pcs()
545 base += BITS(inst2, 0, 11); in thumb_get_next_pcs()
547 base -= BITS(inst2, 0, 11); in thumb_get_next_pcs()
549 base += BITS(inst2, 0, 11); in thumb_get_next_pcs()
550 } else if (BIT(inst2, 11)) { in thumb_get_next_pcs()
551 if (BIT(inst2, 10)) { in thumb_get_next_pcs()
552 if (BIT(inst2, 9)) in thumb_get_next_pcs()
553 base += BITS(inst2, 0, 7); in thumb_get_next_pcs()
555 base -= BITS(inst2, 0, 7); in thumb_get_next_pcs()
557 } else if ((inst2 & 0x0fc0) == 0x0000) { in thumb_get_next_pcs()
558 const int shift = BITS(inst2, 4, 5); in thumb_get_next_pcs()
559 const enum arm_register rm = BITS(inst2, 0, 3); in thumb_get_next_pcs()
578 && (inst2 & 0xfff0) == 0xf000) { in thumb_get_next_pcs()
581 const enum arm_register off_reg = BITS(inst2, 0, 3); in thumb_get_next_pcs()
604 && (inst2 & 0xfff0) == 0xf010) { in thumb_get_next_pcs()
607 const enum arm_register off_reg = BITS(inst2, 0, 3); in thumb_get_next_pcs()