* config/tc-xtensa.c (init_op_placement_info_table): Check for formats
authorBob Wilson <bob.wilson@acm.org>
Mon, 3 Apr 2006 19:11:05 +0000 (19:11 +0000)
committerBob Wilson <bob.wilson@acm.org>
Mon, 3 Apr 2006 19:11:05 +0000 (19:11 +0000)
of the same length but different numbers of slots.

gas/ChangeLog
gas/config/tc-xtensa.c

index 0ae569d..9d08f29 100644 (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.
index fd34e4b..d5531f6 100644 (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;