Lines Matching defs:opcode
26 #include "opcode/s390.h"
32 /* Set up index table for first opcode byte. */
37 const struct s390_opcode *opcode;
42 for (opcode = s390_opcodes; opcode < opcode_end; opcode++)
44 opc_index[(int) opcode->opcode[0]] = opcode - s390_opcodes;
45 while ((opcode < opcode_end) &&
46 (opcode[1].opcode[0] == opcode->opcode[0]))
47 opcode++;
110 const struct s390_opcode *opcode;
149 /* Find the first match in the opcode table. */
151 for (opcode = s390_opcodes + opc_index[(int) buffer[0]];
152 (opcode < opcode_end) && (buffer[0] == opcode->opcode[0]);
153 opcode++)
159 if (!(opcode->modes & current_arch_mask))
161 /* Check signature of the opcode. */
162 if ((buffer[1] & opcode->mask[1]) != opcode->opcode[1]
163 || (buffer[2] & opcode->mask[2]) != opcode->opcode[2]
164 || (buffer[3] & opcode->mask[3]) != opcode->opcode[3]
165 || (buffer[4] & opcode->mask[4]) != opcode->opcode[4]
166 || (buffer[5] & opcode->mask[5]) != opcode->opcode[5])
170 if (opcode->operands[0] != 0)
171 (*info->fprintf_func) (info->stream, "%s\t", opcode->name);
173 (*info->fprintf_func) (info->stream, "%s", opcode->name);
177 for (opindex = opcode->operands; *opindex != 0; opindex++)