Lines Matching refs:outfile
207 extern FILE *outfile;
1081 fprintf (outfile, "%s\n \"%s",
1105 fprintf (outfile, " FCT_%s,\n", (*(struct argstring **) nodep)->str);
1123 fprintf (outfile, "#define MNEMONIC_BITS %zu\n", best_mnemonic_bits);
1125 fprintf (outfile, "#define MNEMONIC_BITS %ld\n",
1128 fprintf (outfile, "#define SUFFIX_BITS %d\n", nbitsuf);
1131 fprintf (outfile, "#define FCT%d_BITS %d\n", i + 1, nbitfct[i]);
1133 fprintf (outfile, "#define STR%d_BITS %d\n", i + 1, nbitstr[i]);
1134 fprintf (outfile, "#define OFF%d_1_BITS %d\n", i + 1, nbitoff[i][0]);
1135 fprintf (outfile, "#define OFF%d_1_BIAS %d\n", i + 1, minoff[i][0]);
1138 fprintf (outfile, "#define OFF%d_2_BITS %d\n", i + 1, nbitoff[i][1]);
1139 fprintf (outfile, "#define OFF%d_2_BIAS %d\n", i + 1, minoff[i][1]);
1143 fprintf (outfile, "#define OFF%d_3_BITS %d\n", i + 1, nbitoff[i][2]);
1144 fprintf (outfile, "#define OFF%d_3_BIAS %d\n", i + 1, minoff[i][2]);
1148 fputs ("\n#include <i386_data.h>\n\n", outfile);
1154 fprintf (outfile, "#define suffix_%s %d\n", #suf, APPEND (suffix_, suf))
1164 fputc_unlocked ('\n', outfile);
1170 fprintf (outfile, "static const opfct_t op%d_fct[] =\n{\n NULL,\n",
1173 fputs ("};\n", outfile);
1180 fprintf (outfile, "static const char op%d_str[] =", i + 1);
1182 fputs ("\";\n", outfile);
1184 fprintf (outfile, "static const uint8_t op%d_str_idx[] = {\n",
1187 fputs ("};\n", outfile);
1192 fputs ("static const struct instr_enc instrtab[] =\n{\n", outfile);
1196 fputs (" {", outfile);
1198 fputs (" .mnemonic = MNE_INVALID,", outfile);
1200 fprintf (outfile, " .mnemonic = MNE_%s,", instr->mnemonic);
1201 fprintf (outfile, " .rep = %d,", instr->rep);
1202 fprintf (outfile, " .repe = %d,", instr->repe);
1203 fprintf (outfile, " .suffix = %d,", instr->suffix);
1204 fprintf (outfile, " .modrm = %d,", instr->modrm);
1217 fprintf (outfile, " .fct%d = %d,", i + 1, idx);
1229 fprintf (outfile, " .str%d = %d,", i + 1, idx);
1231 fprintf (outfile, " .off%d_1 = %d,", i + 1,
1235 fprintf (outfile, " .off%d_2 = %d,", i + 1,
1239 fprintf (outfile, " .off%d_3 = %d,", i + 1,
1243 fputs (" },\n", outfile);
1245 fputs ("};\n", outfile);
1247 fputs ("static const uint8_t match_data[] =\n{\n", outfile);
1282 fprintf (outfile, " %#zx,", nbytes | (leadingbytes << 4));
1300 fprintf (outfile, " %#" PRIx8 ",", byte);
1304 fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",",
1318 fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",",
1330 fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",", mask, byte);
1339 fputc_unlocked ('\n', outfile);
1341 fputs ("};\n", outfile);
1625 fputs ("static const char mnemonic_table[] =\n\"", outfile);
1629 fputs ("\"\n\"", outfile);
1631 fprintf (outfile, "\\%03o", best_table[i]);
1633 fputc (best_table[i], outfile);
1635 fputs ("\";\n", outfile);
1638 fprintf (outfile,
1643 fputs ("#define NO_PREFIX\n", outfile);
1646 fprintf (outfile, "static const char suffix[%zu] = \"%s\";\n",
1649 fputs ("#define NO_SUFFIX\n", outfile);
1680 fprintf (outfile, "#define MNE_%s %#zx\n",