Home | History | Annotate | Download | only in libcpu

Lines Matching full:outfile

206 extern FILE *outfile;
1079 fprintf (outfile, "%s\n \"%s",
1103 fprintf (outfile, " FCT_%s,\n", (*(struct argstring **) nodep)->str);
1121 fprintf (outfile, "#define MNEMONIC_BITS %zu\n", best_mnemonic_bits);
1123 fprintf (outfile, "#define MNEMONIC_BITS %ld\n",
1126 fprintf (outfile, "#define SUFFIX_BITS %d\n", nbitsuf);
1129 fprintf (outfile, "#define FCT%d_BITS %d\n", i + 1, nbitfct[i]);
1131 fprintf (outfile, "#define STR%d_BITS %d\n", i + 1, nbitstr[i]);
1132 fprintf (outfile, "#define OFF%d_1_BITS %d\n", i + 1, nbitoff[i][0]);
1133 fprintf (outfile, "#define OFF%d_1_BIAS %d\n", i + 1, minoff[i][0]);
1136 fprintf (outfile, "#define OFF%d_2_BITS %d\n", i + 1, nbitoff[i][1]);
1137 fprintf (outfile, "#define OFF%d_2_BIAS %d\n", i + 1, minoff[i][1]);
1141 fprintf (outfile, "#define OFF%d_3_BITS %d\n", i + 1, nbitoff[i][2]);
1142 fprintf (outfile, "#define OFF%d_3_BIAS %d\n", i + 1, minoff[i][2]);
1146 fputs ("\n#include <i386_data.h>\n\n", outfile);
1152 fprintf (outfile, "#define suffix_%s %d\n", #suf, APPEND (suffix_, suf))
1162 fputc_unlocked ('\n', outfile);
1168 fprintf (outfile, "static const opfct_t op%d_fct[] =\n{\n NULL,\n",
1171 fputs ("};\n", outfile);
1178 fprintf (outfile, "static const char op%d_str[] =", i + 1);
1180 fputs ("\";\n", outfile);
1182 fprintf (outfile, "static const uint8_t op%d_str_idx[] = {\n",
1185 fputs ("};\n", outfile);
1190 fputs ("static const struct instr_enc instrtab[] =\n{\n", outfile);
1194 fputs (" {", outfile);
1196 fputs (" .mnemonic = MNE_INVALID,", outfile);
1198 fprintf (outfile, " .mnemonic = MNE_%s,", instr->mnemonic);
1199 fprintf (outfile, " .rep = %d,", instr->rep);
1200 fprintf (outfile, " .repe = %d,", instr->repe);
1201 fprintf (outfile, " .suffix = %d,", instr->suffix);
1202 fprintf (outfile, " .modrm = %d,", instr->modrm);
1215 fprintf (outfile, " .fct%d = %d,", i + 1, idx);
1227 fprintf (outfile, " .str%d = %d,", i + 1, idx);
1229 fprintf (outfile, " .off%d_1 = %d,", i + 1,
1233 fprintf (outfile, " .off%d_2 = %d,", i + 1,
1237 fprintf (outfile, " .off%d_3 = %d,", i + 1,
1241 fputs (" },\n", outfile);
1243 fputs ("};\n", outfile);
1245 fputs ("static const uint8_t match_data[] =\n{\n", outfile);
1280 fprintf (outfile, " %#zx,", nbytes | (leadingbytes << 4));
1298 fprintf (outfile, " %#" PRIx8 ",", byte);
1302 fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",",
1316 fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",",
1328 fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",", mask, byte);
1337 fputc_unlocked ('\n', outfile);
1339 fputs ("};\n", outfile);
1623 fputs ("static const char mnemonic_table[] =\n\"", outfile);
1627 fputs ("\"\n\"", outfile);
1629 fprintf (outfile, "\\%03o", best_table[i]);
1631 fputc (best_table[i], outfile);
1633 fputs ("\";\n", outfile);
1636 fprintf (outfile,
1641 fputs ("#define NO_PREFIX\n", outfile);
1644 fprintf (outfile, "static const char suffix[%zu] = \"%s\";\n",
1647 fputs ("#define NO_SUFFIX\n", outfile);
1678 fprintf (outfile, "#define MNE_%s %#zx\n",