Lines Matching refs:BITS
32 #include "bits.h"
115 /* Bits 0-23 are signed immediate value. */
143 * breakpoints at all. If the conditional bits of the
155 const unsigned cond = BITS(this_instr, 28, 31);
156 const unsigned opcode = BITS(this_instr, 24, 27);
178 if (BITS(this_instr, 12, 15) != ARM_REG_PC)
181 if (BITS(this_instr, 22, 25) == 0
182 && BITS(this_instr, 4, 7) == 9) { /* multiply */
190 if (BITS(this_instr, 4, 27) == 0x12fff1
191 || BITS(this_instr, 4, 27) == 0x12fff3) {
192 enum arm_register reg = BITS(this_instr, 0, 3);
204 (proc, BITS(this_instr, 16, 19), &operand1) < 0)
209 uint32_t immval = BITS(this_instr, 0, 7);
210 uint32_t rotate = 2 * BITS(this_instr, 8, 11);
221 switch (BITS(this_instr, 21, 24)) {
290 || BITS(this_instr, 12, 15) != ARM_REG_PC)
299 (proc, BITS(this_instr, 16, 19), &base) < 0)
312 offset = BITS(this_instr, 0, 11);
336 enum arm_register rn = BITS(this_instr, 16, 19);
345 = BITS(this_instr, 0, 14);
414 const unsigned offset = bitcount(BITS(inst1, 0, 7)) * 4;
424 const unsigned long cond = BITS(inst1, 8, 11);
445 const unsigned imm2 = BITS(inst2, 0, 10);
455 /* For BLX make sure to clear the low bits. */
476 const unsigned imm1 = BITS(inst1, 0, 5);
477 const unsigned imm2 = BITS(inst2, 0, 10);
485 if (BITS(inst1, 6, 9) == COND_ALWAYS)
491 const enum arm_register rn = BITS(inst1, 0, 3);
527 const enum arm_register rn = BITS(inst2, 0, 3);
536 const enum arm_register rn = BITS(inst1, 0, 3);
545 base += BITS(inst2, 0, 11);
547 base -= BITS(inst2, 0, 11);
549 base += BITS(inst2, 0, 11);
553 base += BITS(inst2, 0, 7);
555 base -= BITS(inst2, 0, 7);
558 const int shift = BITS(inst2, 4, 5);
559 const enum arm_register rm = BITS(inst2, 0, 3);
580 const enum arm_register tbl_reg = BITS(inst1, 0, 3);
581 const enum arm_register off_reg = BITS(inst2, 0, 3);
606 const enum arm_register tbl_reg = BITS(inst1, 0, 3);
607 const enum arm_register off_reg = BITS(inst2, 0, 3);