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