Lines Matching defs:opcode
26 #include "opcode/s390.h"
36 /* Set up index table for first opcode byte. */
42 const struct s390_opcode *opcode;
47 for (opcode = s390_opcodes; opcode < opcode_end; opcode++)
49 opc_index[(int) opcode->opcode[0]] = opcode - s390_opcodes;
50 while ((opcode < opcode_end) &&
51 (opcode[1].opcode[0] == opcode->opcode[0]))
52 opcode++;
119 const struct s390_opcode *opcode;
158 /* Find the first match in the opcode table. */
160 for (opcode = s390_opcodes + opc_index[(int) buffer[0]];
161 (opcode < opcode_end) && (buffer[0] == opcode->opcode[0]);
162 opcode++)
168 if (!(opcode->modes & current_arch_mask))
170 /* Check signature of the opcode. */
171 if ((buffer[1] & opcode->mask[1]) != opcode->opcode[1]
172 || (buffer[2] & opcode->mask[2]) != opcode->opcode[2]
173 || (buffer[3] & opcode->mask[3]) != opcode->opcode[3]
174 || (buffer[4] & opcode->mask[4]) != opcode->opcode[4]
175 || (buffer[5] & opcode->mask[5]) != opcode->opcode[5])
179 if (opcode->operands[0] != 0)
180 (*info->fprintf_func) (info->stream, "%s\t", opcode->name);
182 (*info->fprintf_func) (info->stream, "%s", opcode->name);
186 for (opindex = opcode->operands; *opindex != 0; opindex++)