Lines Matching refs:outfile

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