* config/tc-xtensa.c (init_op_placement_info_table): Check for formats

of the same length but different numbers of slots.
This commit is contained in:
Bob Wilson 2006-04-03 19:11:05 +00:00
parent 357d3800d1
commit a02728c81d
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-04-03 Sterling Augustine <sterling@tensilica.com>
* config/tc-xtensa.c (init_op_placement_info_table): Check for formats
of the same length but different numbers of slots.
2006-03-30 Andreas Schwab <schwab@suse.de>
* configure.in: Fix help string for --enable-targets option.

View File

@ -10852,8 +10852,11 @@ init_op_placement_info_table (void)
opi->issuef++;
set_bit (fmt, opi->formats);
set_bit (slot, opi->slots[fmt]);
/* opi->slot_count[fmt]++; */
if (fmt_length < opi->narrowest_size)
if (fmt_length < opi->narrowest_size
|| (fmt_length == opi->narrowest_size
&& (xtensa_format_num_slots (isa, fmt)
< xtensa_format_num_slots (isa,
opi->narrowest))))
{
opi->narrowest = fmt;
opi->narrowest_size = fmt_length;