Home | History | Annotate | Download | only in libcpu

Lines Matching full:outfile

205 extern FILE *outfile;
1078 fprintf (outfile, "%s\n \"%s",
1102 fprintf (outfile, " FCT_%s,\n", (*(struct argstring **) nodep)->str);
1120 fprintf (outfile, "#define MNEMONIC_BITS %zu\n", best_mnemonic_bits);
1122 fprintf (outfile, "#define MNEMONIC_BITS %ld\n",
1125 fprintf (outfile, "#define SUFFIX_BITS %d\n", nbitsuf);
1128 fprintf (outfile, "#define FCT%d_BITS %d\n", i + 1, nbitfct[i]);
1130 fprintf (outfile, "#define STR%d_BITS %d\n", i + 1, nbitstr[i]);
1131 fprintf (outfile, "#define OFF%d_1_BITS %d\n", i + 1, nbitoff[i][0]);
1132 fprintf (outfile, "#define OFF%d_1_BIAS %d\n", i + 1, minoff[i][0]);
1135 fprintf (outfile, "#define OFF%d_2_BITS %d\n", i + 1, nbitoff[i][1]);
1136 fprintf (outfile, "#define OFF%d_2_BIAS %d\n", i + 1, minoff[i][1]);
1140 fprintf (outfile, "#define OFF%d_3_BITS %d\n", i + 1, nbitoff[i][2]);
1141 fprintf (outfile, "#define OFF%d_3_BIAS %d\n", i + 1, minoff[i][2]);
1145 fputs ("\n#include <i386_data.h>\n\n", outfile);
1151 fprintf (outfile, "#define suffix_%s %d\n", #suf, APPEND (suffix_, suf))
1161 fputc_unlocked ('\n', outfile);
1167 fprintf (outfile, "static const opfct_t op%d_fct[] =\n{\n NULL,\n",
1170 fputs ("};\n", outfile);
1177 fprintf (outfile, "static const char op%d_str[] =", i + 1);
1179 fputs ("\";\n", outfile);
1181 fprintf (outfile, "static const uint8_t op%d_str_idx[] = {\n",
1184 fputs ("};\n", outfile);
1189 fputs ("static const struct instr_enc instrtab[] =\n{\n", outfile);
1193 fputs (" {", outfile);
1195 fputs (" .mnemonic = MNE_INVALID,", outfile);
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);
1214 fprintf (outfile, " .fct%d = %d,", i + 1, idx);
1226 fprintf (outfile, " .str%d = %d,", i + 1, idx);
1228 fprintf (outfile, " .off%d_1 = %d,", i + 1,
1232 fprintf (outfile, " .off%d_2 = %d,", i + 1,
1236 fprintf (outfile, " .off%d_3 = %d,", i + 1,
1240 fputs (" },\n", outfile);
1242 fputs ("};\n", outfile);
1244 fputs ("static const uint8_t match_data[] =\n{\n", outfile);
1273 fprintf (outfile, " %#zx,", nbytes);
1288 fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",", mask, byte);
1299 fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",",
1311 fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",", mask, byte);
1320 fputc_unlocked ('\n', outfile);
1322 fputs ("};\n", outfile);
1606 fputs ("static const char mnemonic_table[] =\n\"", outfile);
1610 fputs ("\"\n\"", outfile);
1612 fprintf (outfile, "\\%03o", best_table[i]);
1614 fputc (best_table[i], outfile);
1616 fputs ("\";\n", outfile);
1619 fprintf (outfile,
1624 fputs ("#define NO_PREFIX\n", outfile);
1627 fprintf (outfile, "static const char suffix[%zu] = \"%s\";\n",
1630 fputs ("#define NO_SUFFIX\n", outfile);
1661 fprintf (outfile, "#define MNE_%s %#zx\n",