From f5d5226b3d7cd2d667e4f40bf3180cf10aa0fb6a Mon Sep 17 00:00:00 2001 From: Jie Zhang Date: Wed, 7 Jul 2010 16:31:41 +0000 Subject: [PATCH] genautomata.c (output_automata_list_min_issue_delay_code): Correctly decompress min_issue_delay. * genautomata.c (output_automata_list_min_issue_delay_code): Correctly decompress min_issue_delay. From-SVN: r161923 --- gcc/ChangeLog | 5 +++++ gcc/genautomata.c | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 934cacdd755..832cf30a5db 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-07-07 Jie Zhang + + * genautomata.c (output_automata_list_min_issue_delay_code): + Correctly decompress min_issue_delay. + 2010-07-07 Bernd Schmidt PR rtl-optimization/44404 diff --git a/gcc/genautomata.c b/gcc/genautomata.c index a268aa053da..91516f81335 100644 --- a/gcc/genautomata.c +++ b/gcc/genautomata.c @@ -7854,12 +7854,15 @@ output_automata_list_min_issue_delay_code (automata_list_el_t automata_list) { fprintf (output_file, ") / %d];\n", automaton->min_issue_delay_table_compression_factor); - fprintf (output_file, " %s = (%s >> (8 - (", + fprintf (output_file, " %s = (%s >> (8 - ((", TEMPORARY_VARIABLE_NAME, TEMPORARY_VARIABLE_NAME); output_translate_vect_name (output_file, automaton); + fprintf (output_file, " [%s] + ", INTERNAL_INSN_CODE_NAME); + fprintf (output_file, "%s->", CHIP_PARAMETER_NAME); + output_chip_member_name (output_file, automaton); + fprintf (output_file, " * %d)", automaton->insn_equiv_classes_num); fprintf - (output_file, " [%s] %% %d + 1) * %d)) & %d;\n", - INTERNAL_INSN_CODE_NAME, + (output_file, " %% %d + 1) * %d)) & %d;\n", automaton->min_issue_delay_table_compression_factor, 8 / automaton->min_issue_delay_table_compression_factor, (1 << (8 / automaton->min_issue_delay_table_compression_factor))