Lines Matching refs:instr
32 #define get_field_rd(buf, instr) get_field (buf, instr, RD_MASK, RD_LOW)
33 #define get_field_r1(buf, instr) get_field (buf, instr, RA_MASK, RA_LOW)
34 #define get_field_r2(buf, instr) get_field (buf, instr, RB_MASK, RB_LOW)
35 #define get_int_field_imm(instr) ((instr & IMM_MASK) >> IMM_LOW)
36 #define get_int_field_r1(instr) ((instr & RA_MASK) >> RA_LOW)
58 get_field (struct string_buf *buf, long instr, long mask, unsigned short low)
62 sprintf (p, "%s%d", register_prefix, (int)((instr & mask) >> low));
67 get_field_imm (struct string_buf *buf, long instr)
71 sprintf (p, "%d", (short)((instr & IMM_MASK) >> IMM_LOW));
76 get_field_imm5 (struct string_buf *buf, long instr)
80 sprintf (p, "%d", (short)((instr & IMM5_MASK) >> IMM_LOW));
85 get_field_imm5_mbar (struct string_buf *buf, long instr)
89 sprintf (p, "%d", (short)((instr & IMM5_MBAR_MASK) >> IMM_MBAR));
94 get_field_immw (struct string_buf *buf, long instr)
98 if (instr & 0x00004000)
99 sprintf (p, "%d", (short)(((instr & IMM5_WIDTH_MASK)
102 sprintf (p, "%d", (short)(((instr & IMM5_WIDTH_MASK) >>
103 IMM_WIDTH_LOW) - ((instr & IMM5_MASK) >>
109 get_field_rfsl (struct string_buf *buf, long instr)
114 (short)((instr & RFSL_MASK) >> IMM_LOW));
119 get_field_imm15 (struct string_buf *buf, long instr)
123 sprintf (p, "%d", (short)((instr & IMM15_MASK) >> IMM_LOW));
128 get_field_special (struct string_buf *buf, long instr,
134 switch ((((instr & IMM_MASK) >> IMM_LOW) ^ op->immval_mask))
182 if (((((instr & IMM_MASK) >> IMM_LOW) ^ op->immval_mask) & 0xE000)
186 (unsigned short)(((instr & IMM_MASK) >> IMM_LOW)
264 if (pop->instr == imm)
396 && op->instr != imm)
493 return op->instr;