• Home
  • Raw
  • Download

Lines Matching refs:outfile

209 extern FILE *outfile;
1082 fprintf (outfile, "%s\n \"%s", in print_op_str()
1106 fprintf (outfile, " FCT_%s,\n", (*(struct argstring **) nodep)->str); in print_op_fct()
1124 fprintf (outfile, "#define MNEMONIC_BITS %zu\n", best_mnemonic_bits); in instrtable_out()
1126 fprintf (outfile, "#define MNEMONIC_BITS %ld\n", in instrtable_out()
1129 fprintf (outfile, "#define SUFFIX_BITS %d\n", nbitsuf); in instrtable_out()
1132 fprintf (outfile, "#define FCT%d_BITS %d\n", i + 1, nbitfct[i]); in instrtable_out()
1134 fprintf (outfile, "#define STR%d_BITS %d\n", i + 1, nbitstr[i]); in instrtable_out()
1135 fprintf (outfile, "#define OFF%d_1_BITS %d\n", i + 1, nbitoff[i][0]); in instrtable_out()
1136 fprintf (outfile, "#define OFF%d_1_BIAS %d\n", i + 1, minoff[i][0]); in instrtable_out()
1139 fprintf (outfile, "#define OFF%d_2_BITS %d\n", i + 1, nbitoff[i][1]); in instrtable_out()
1140 fprintf (outfile, "#define OFF%d_2_BIAS %d\n", i + 1, minoff[i][1]); in instrtable_out()
1144 fprintf (outfile, "#define OFF%d_3_BITS %d\n", i + 1, nbitoff[i][2]); in instrtable_out()
1145 fprintf (outfile, "#define OFF%d_3_BIAS %d\n", i + 1, minoff[i][2]); in instrtable_out()
1149 fputs ("\n#include <i386_data.h>\n\n", outfile); in instrtable_out()
1155 fprintf (outfile, "#define suffix_%s %d\n", #suf, APPEND (suffix_, suf)) in instrtable_out()
1165 fputc_unlocked ('\n', outfile); in instrtable_out()
1171 fprintf (outfile, "static const opfct_t op%d_fct[] =\n{\n NULL,\n", in instrtable_out()
1174 fputs ("};\n", outfile); in instrtable_out()
1181 fprintf (outfile, "static const char op%d_str[] =", i + 1); in instrtable_out()
1183 fputs ("\";\n", outfile); in instrtable_out()
1185 fprintf (outfile, "static const uint8_t op%d_str_idx[] = {\n", in instrtable_out()
1188 fputs ("};\n", outfile); in instrtable_out()
1193 fputs ("static const struct instr_enc instrtab[] =\n{\n", outfile); in instrtable_out()
1197 fputs (" {", outfile); in instrtable_out()
1199 fputs (" .mnemonic = MNE_INVALID,", outfile); in instrtable_out()
1201 fprintf (outfile, " .mnemonic = MNE_%s,", instr->mnemonic); in instrtable_out()
1202 fprintf (outfile, " .rep = %d,", instr->rep); in instrtable_out()
1203 fprintf (outfile, " .repe = %d,", instr->repe); in instrtable_out()
1204 fprintf (outfile, " .suffix = %d,", instr->suffix); in instrtable_out()
1205 fprintf (outfile, " .modrm = %d,", instr->modrm); in instrtable_out()
1218 fprintf (outfile, " .fct%d = %d,", i + 1, idx); in instrtable_out()
1230 fprintf (outfile, " .str%d = %d,", i + 1, idx); in instrtable_out()
1232 fprintf (outfile, " .off%d_1 = %d,", i + 1, in instrtable_out()
1236 fprintf (outfile, " .off%d_2 = %d,", i + 1, in instrtable_out()
1240 fprintf (outfile, " .off%d_3 = %d,", i + 1, in instrtable_out()
1244 fputs (" },\n", outfile); in instrtable_out()
1246 fputs ("};\n", outfile); in instrtable_out()
1248 fputs ("static const uint8_t match_data[] =\n{\n", outfile); in instrtable_out()
1283 fprintf (outfile, " %#zx,", nbytes | (leadingbytes << 4)); in instrtable_out()
1301 fprintf (outfile, " %#" PRIx8 ",", byte); in instrtable_out()
1305 fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",", in instrtable_out()
1319 fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",", in instrtable_out()
1331 fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",", mask, byte); in instrtable_out()
1340 fputc_unlocked ('\n', outfile); in instrtable_out()
1342 fputs ("};\n", outfile); in instrtable_out()
1626 fputs ("static const char mnemonic_table[] =\n\"", outfile);
1630 fputs ("\"\n\"", outfile);
1632 fprintf (outfile, "\\%03o", best_table[i]);
1634 fputc (best_table[i], outfile);
1636 fputs ("\";\n", outfile);
1639 fprintf (outfile,
1644 fputs ("#define NO_PREFIX\n", outfile);
1647 fprintf (outfile, "static const char suffix[%zu] = \"%s\";\n",
1650 fputs ("#define NO_SUFFIX\n", outfile);
1681 fprintf (outfile, "#define MNE_%s %#zx\n",