Lines Matching full:outfile
283 extern FILE *outfile;
2791 fprintf (outfile, "%s\n \"%s",
2815 fprintf (outfile, " FCT_%s,\n", (*(struct argstring **) nodep)->str);
2833 fprintf (outfile, "#define MNEMONIC_BITS %zu\n", best_mnemonic_bits);
2835 fprintf (outfile, "#define MNEMONIC_BITS %ld\n",
2838 fprintf (outfile, "#define SUFFIX_BITS %d\n", nbitsuf);
2841 fprintf (outfile, "#define FCT%d_BITS %d\n", i + 1, nbitfct[i]);
2843 fprintf (outfile, "#define STR%d_BITS %d\n", i + 1, nbitstr[i]);
2844 fprintf (outfile, "#define OFF%d_1_BITS %d\n", i + 1, nbitoff[i][0]);
2845 fprintf (outfile, "#define OFF%d_1_BIAS %d\n", i + 1, minoff[i][0]);
2848 fprintf (outfile, "#define OFF%d_2_BITS %d\n", i + 1, nbitoff[i][1]);
2849 fprintf (outfile, "#define OFF%d_2_BIAS %d\n", i + 1, minoff[i][1]);
2853 fprintf (outfile, "#define OFF%d_3_BITS %d\n", i + 1, nbitoff[i][2]);
2854 fprintf (outfile, "#define OFF%d_3_BIAS %d\n", i + 1, minoff[i][2]);
2858 fputs ("\n#include <i386_data.h>\n\n", outfile);
2864 fprintf (outfile, "#define suffix_%s %d\n", #suf, APPEND (suffix_, suf))
2874 fputc_unlocked ('\n', outfile);
2880 fprintf (outfile, "static const opfct_t op%d_fct[] =\n{\n NULL,\n",
2883 fputs ("};\n", outfile);
2890 fprintf (outfile, "static const char op%d_str[] =", i + 1);
2892 fputs ("\";\n", outfile);
2894 fprintf (outfile, "static const uint8_t op%d_str_idx[] = {\n",
2897 fputs ("};\n", outfile);
2902 fputs ("static const struct instr_enc instrtab[] =\n{\n", outfile);
2906 fputs (" {", outfile);
2908 fputs (" .mnemonic = MNE_INVALID,", outfile);
2910 fprintf (outfile, " .mnemonic = MNE_%s,", instr->mnemonic);
2911 fprintf (outfile, " .rep = %d,", instr->rep);
2912 fprintf (outfile, " .repe = %d,", instr->repe);
2913 fprintf (outfile, " .suffix = %d,", instr->suffix);
2914 fprintf (outfile, " .modrm = %d,", instr->modrm);
2927 fprintf (outfile, " .fct%d = %d,", i + 1, idx);
2939 fprintf (outfile, " .str%d = %d,", i + 1, idx);
2941 fprintf (outfile, " .off%d_1 = %d,", i + 1,
2945 fprintf (outfile, " .off%d_2 = %d,", i + 1,
2949 fprintf (outfile, " .off%d_3 = %d,", i + 1,
2953 fputs (" },\n", outfile);
2955 fputs ("};\n", outfile);
2957 fputs ("static const uint8_t match_data[] =\n{\n", outfile);
2992 fprintf (outfile, " %#zx,", nbytes | (leadingbytes << 4));
3010 fprintf (outfile, " %#" PRIx8 ",", byte);
3014 fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",",
3028 fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",",
3040 fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",", mask, byte);
3049 fputc_unlocked ('\n', outfile);
3051 fputs ("};\n", outfile);
3335 fputs ("static const char mnemonic_table[] =\n\"", outfile);
3339 fputs ("\"\n\"", outfile);
3341 fprintf (outfile, "\\%03o", best_table[i]);
3343 fputc (best_table[i], outfile);
3345 fputs ("\";\n", outfile);
3348 fprintf (outfile,
3353 fputs ("#define NO_PREFIX\n", outfile);
3356 fprintf (outfile, "static const char suffix[%zu] = \"%s\";\n",
3359 fputs ("#define NO_SUFFIX\n", outfile);
3390 fprintf (outfile, "#define MNE_%s %#zx\n",