Home | History | Annotate | Download | only in libcpu

Lines Matching full:outfile

310 extern FILE *outfile;
2683 fprintf (outfile, "%s\n \"%s",
2707 fprintf (outfile, " FCT_%s,\n", (*(struct argstring **) nodep)->str);
2725 fprintf (outfile, "#define MNEMONIC_BITS %zu\n", best_mnemonic_bits);
2727 fprintf (outfile, "#define MNEMONIC_BITS %ld\n",
2730 fprintf (outfile, "#define SUFFIX_BITS %d\n", nbitsuf);
2733 fprintf (outfile, "#define FCT%d_BITS %d\n", i + 1, nbitfct[i]);
2735 fprintf (outfile, "#define STR%d_BITS %d\n", i + 1, nbitstr[i]);
2736 fprintf (outfile, "#define OFF%d_1_BITS %d\n", i + 1, nbitoff[i][0]);
2737 fprintf (outfile, "#define OFF%d_1_BIAS %d\n", i + 1, minoff[i][0]);
2740 fprintf (outfile, "#define OFF%d_2_BITS %d\n", i + 1, nbitoff[i][1]);
2741 fprintf (outfile, "#define OFF%d_2_BIAS %d\n", i + 1, minoff[i][1]);
2745 fprintf (outfile, "#define OFF%d_3_BITS %d\n", i + 1, nbitoff[i][2]);
2746 fprintf (outfile, "#define OFF%d_3_BIAS %d\n", i + 1, minoff[i][2]);
2750 fputs ("\n#include <i386_data.h>\n\n", outfile);
2756 fprintf (outfile, "#define suffix_%s %d\n", #suf, APPEND (suffix_, suf))
2766 fputc_unlocked ('\n', outfile);
2772 fprintf (outfile, "static const opfct_t op%d_fct[] =\n{\n NULL,\n",
2775 fputs ("};\n", outfile);
2782 fprintf (outfile, "static const char op%d_str[] =", i + 1);
2784 fputs ("\";\n", outfile);
2786 fprintf (outfile, "static const uint8_t op%d_str_idx[] = {\n",
2789 fputs ("};\n", outfile);
2794 fputs ("static const struct instr_enc instrtab[] =\n{\n", outfile);
2798 fputs (" {", outfile);
2800 fputs (" .mnemonic = MNE_INVALID,", outfile);
2802 fprintf (outfile, " .mnemonic = MNE_%s,", instr->mnemonic);
2803 fprintf (outfile, " .rep = %d,", instr->rep);
2804 fprintf (outfile, " .repe = %d,", instr->repe);
2805 fprintf (outfile, " .suffix = %d,", instr->suffix);
2806 fprintf (outfile, " .modrm = %d,", instr->modrm);
2819 fprintf (outfile, " .fct%d = %d,", i + 1, idx);
2831 fprintf (outfile, " .str%d = %d,", i + 1, idx);
2833 fprintf (outfile, " .off%d_1 = %d,", i + 1,
2837 fprintf (outfile, " .off%d_2 = %d,", i + 1,
2841 fprintf (outfile, " .off%d_3 = %d,", i + 1,
2845 fputs (" },\n", outfile);
2847 fputs ("};\n", outfile);
2849 fputs ("static const uint8_t match_data[] =\n{\n", outfile);
2878 fprintf (outfile, " %#zx,", nbytes);
2893 fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",", mask, byte);
2904 fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",",
2916 fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",", mask, byte);
2925 fputc_unlocked ('\n', outfile);
2927 fputs ("};\n", outfile);
3211 fputs ("static const char mnemonic_table[] =\n\"", outfile);
3215 fputs ("\"\n\"", outfile);
3217 fprintf (outfile, "\\%03o", best_table[i]);
3219 fputc (best_table[i], outfile);
3221 fputs ("\";\n", outfile);
3224 fprintf (outfile,
3229 fputs ("#define NO_PREFIX\n", outfile);
3232 fprintf (outfile, "static const char suffix[%zu] = \"%s\";\n",
3235 fputs ("#define NO_SUFFIX\n", outfile);
3266 fprintf (outfile, "#define MNE_%s %#zx\n",