Lines Matching refs:table
835 output_cpu_flags (FILE *table, bitfield *flags, unsigned int size,
840 fprintf (table, "%s{ { ", indent);
845 fprintf (table, "%d, ", flags[i].value);
847 fprintf (table, "%d,", flags[i].value);
852 fprintf (table, " \\\n %s", indent);
854 fprintf (table, "\n %s", indent);
858 fprintf (table, "%d } }%s\n", flags[i].value, comma);
862 process_i386_cpu_flag (FILE *table, char *flag, int macro,
922 output_cpu_flags (table, flags, ARRAY_SIZE (flags), macro,
927 output_opcode_modifier (FILE *table, bitfield *modifier, unsigned int size)
931 fprintf (table, " { ");
936 fprintf (table, "%d, ", modifier[i].value);
938 fprintf (table, "%d,", modifier[i].value);
940 fprintf (table, "\n ");
943 fprintf (table, "%d },\n", modifier[i].value);
947 process_i386_opcode_modifier (FILE *table, char *mod, int lineno)
966 output_opcode_modifier (table, modifiers, ARRAY_SIZE (modifiers));
970 output_operand_type (FILE *table, bitfield *types, unsigned int size,
975 fprintf (table, "{ { ");
980 fprintf (table, "%d, ", types[i].value);
982 fprintf (table, "%d,", types[i].value);
987 fprintf (table, " \\\n%s", indent);
989 fprintf (table, "\n%s", indent);
993 fprintf (table, "%d } }", types[i].value);
997 process_i386_operand_type (FILE *table, char *op, int macro,
1016 output_operand_type (table, types, ARRAY_SIZE (types), macro,
1021 output_i386_opcode (FILE *table, const char *name, char *str,
1089 fprintf (table, " { \"%s\", %s, %s, %s, %s,\n",
1093 process_i386_cpu_flag (table, cpu_flags, 0, ",", " ", lineno);
1095 process_i386_opcode_modifier (table, opcode_modifier, lineno);
1097 fprintf (table, " { ");
1104 process_i386_operand_type (table, "0", 0, "\t ", lineno);
1109 fprintf (table, ",\n ");
1111 process_i386_operand_type (table, operand_types[i], 0,
1114 fprintf (table, " } },\n");
1145 process_i386_opcodes (FILE *table)
1172 fprintf (table, "\n/* i386 opcode table. */\n\n");
1173 fprintf (table, "const insn_template i386_optab[] =\n{\n");
1209 /* Get the slot in hash table. */
1260 output_i386_opcode (table, name, str, last, lineno);
1266 fprintf (table, " { NULL, 0, 0, 0, 0,\n");
1268 process_i386_cpu_flag (table, "0", 0, ",", " ", -1);
1270 process_i386_opcode_modifier (table, "0", -1);
1272 fprintf (table, " { ");
1273 process_i386_operand_type (table, "0", 0, "\t ", -1);
1274 fprintf (table, " } }\n");
1276 fprintf (table, "};\n");
1280 process_i386_registers (FILE *table)
1295 fprintf (table, "\n/* i386 register table. */\n\n");
1296 fprintf (table, "const reg_entry i386_regtab[] =\n{\n");
1318 fprintf (table, "%s\n", p);
1340 fprintf (table, " { \"%s\",\n ", reg_name);
1342 process_i386_operand_type (table, reg_type, 0, "\t", lineno);
1350 fprintf (table, ",\n %s, %s, { %s, %s } },\n",
1356 fprintf (table, "};\n");
1358 fprintf (table, "\nconst unsigned int i386_regtab_size = ARRAY_SIZE (i386_regtab);\n");
1428 FILE *table;
1497 table = fopen ("i386-tbl.h", "w");
1498 if (table == NULL)
1502 process_copyright (table);
1504 process_i386_opcodes (table);
1505 process_i386_registers (table);
1508 fclose (table);