Lines Matching refs:table
732 output_cpu_flags (FILE *table, bitfield *flags, unsigned int size,
737 fprintf (table, "%s{ { ", indent);
742 fprintf (table, "%d, ", flags[i].value);
744 fprintf (table, "%d,", flags[i].value);
749 fprintf (table, " \\\n %s", indent);
751 fprintf (table, "\n %s", indent);
755 fprintf (table, "%d } }%s\n", flags[i].value, comma);
759 process_i386_cpu_flag (FILE *table, char *flag, int macro,
819 output_cpu_flags (table, flags, ARRAY_SIZE (flags), macro,
824 output_opcode_modifier (FILE *table, bitfield *modifier, unsigned int size)
828 fprintf (table, " { ");
833 fprintf (table, "%d, ", modifier[i].value);
835 fprintf (table, "%d,", modifier[i].value);
837 fprintf (table, "\n ");
840 fprintf (table, "%d },\n", modifier[i].value);
844 process_i386_opcode_modifier (FILE *table, char *mod, int lineno)
863 output_opcode_modifier (table, modifiers, ARRAY_SIZE (modifiers));
867 output_operand_type (FILE *table, bitfield *types, unsigned int size,
872 fprintf (table, "{ { ");
877 fprintf (table, "%d, ", types[i].value);
879 fprintf (table, "%d,", types[i].value);
884 fprintf (table, " \\\n%s", indent);
886 fprintf (table, "\n%s", indent);
890 fprintf (table, "%d } }", types[i].value);
894 process_i386_operand_type (FILE *table, char *op, int macro,
913 output_operand_type (table, types, ARRAY_SIZE (types), macro,
918 output_i386_opcode (FILE *table, const char *name, char *str,
986 fprintf (table, " { \"%s\", %s, %s, %s, %s,\n",
990 process_i386_cpu_flag (table, cpu_flags, 0, ",", " ", lineno);
992 process_i386_opcode_modifier (table, opcode_modifier, lineno);
994 fprintf (table, " { ");
1001 process_i386_operand_type (table, "0", 0, "\t ", lineno);
1006 fprintf (table, ",\n ");
1008 process_i386_operand_type (table, operand_types[i], 0,
1011 fprintf (table, " } },\n");
1042 process_i386_opcodes (FILE *table)
1069 fprintf (table, "\n/* i386 opcode table. */\n\n");
1070 fprintf (table, "const insn_template i386_optab[] =\n{\n");
1106 /* Get the slot in hash table. */
1157 output_i386_opcode (table, name, str, last, lineno);
1163 fprintf (table, " { NULL, 0, 0, 0, 0,\n");
1165 process_i386_cpu_flag (table, "0", 0, ",", " ", -1);
1167 process_i386_opcode_modifier (table, "0", -1);
1169 fprintf (table, " { ");
1170 process_i386_operand_type (table, "0", 0, "\t ", -1);
1171 fprintf (table, " } }\n");
1173 fprintf (table, "};\n");
1177 process_i386_registers (FILE *table)
1192 fprintf (table, "\n/* i386 register table. */\n\n");
1193 fprintf (table, "const reg_entry i386_regtab[] =\n{\n");
1215 fprintf (table, "%s\n", p);
1237 fprintf (table, " { \"%s\",\n ", reg_name);
1239 process_i386_operand_type (table, reg_type, 0, "\t", lineno);
1247 table, ",\n %s, %s, { %s, %s } },\n",
1253 fprintf (table, "};\n");
1255 fprintf (table, "\nconst unsigned int i386_regtab_size = ARRAY_SIZE (i386_regtab);\n");
1324 FILE *table;
1381 table = fopen ("i386-tbl.h", "w");
1382 if (table == NULL)
1386 process_copyright (table);
1388 process_i386_opcodes (table);
1389 process_i386_registers (table);
1392 fclose (table);