Lines Matching refs:instr
188 struct instruction *instr, int n);
278 instrs: instrs '\n' instr
279 | instr
282 instr: bytes ':' bitfieldopt kID bitfieldopt optargs
770 struct instruction *instr, int n)
787 if (instr->operands[n].str != NULL)
792 instr->operands[n].str = runp->str;
835 if (instr->operands[n].off1 == 0)
836 instr->operands[n].off1 = bitoff;
837 else if (instr->operands[n].off2 == 0)
838 instr->operands[n].off2 = bitoff;
839 else if (instr->operands[n].off3 == 0)
840 instr->operands[n].off3 = bitoff;
848 instr->modrm = 1;
858 instr->operands[n].fct = fct;
1190 struct instruction *instr;
1191 for (instr = instructions; instr != NULL; instr = instr->next)
1194 if (instr->mnemonic == (void *) -1l)
1197 fprintf (outfile, " .mnemonic = MNE_%s,", instr->mnemonic);
1198 fprintf (outfile, " .rep = %d,", instr->rep);
1199 fprintf (outfile, " .repe = %d,", instr->repe);
1200 fprintf (outfile, " .suffix = %d,", instr->suffix);
1201 fprintf (outfile, " .modrm = %d,", instr->modrm);
1206 if (instr->operands[i].fct != NULL)
1208 struct argstring search = { .str = instr->operands[i].fct };
1217 if (instr->operands[i].str != NULL)
1219 struct argstring search = { .str = instr->operands[i].str };
1229 MAX (0, instr->operands[i].off1 - minoff[i][0]));
1233 MAX (0, instr->operands[i].off2 - minoff[i][1]));
1237 MAX (0, instr->operands[i].off3 - minoff[i][2]));
1246 for (instr = instructions; instr != NULL; instr = instr->next, ++cnt)
1251 struct bitvalue *b = instr->bytes;
1279 b = instr->bytes;