diff options
author | Bob Wilson <bob.wilson@acm.org> | 2006-04-03 19:11:05 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2006-04-03 19:11:05 +0000 |
commit | a02728c81d3e01e3faa73f7583ee48680d0a4fa8 (patch) | |
tree | 16984a55e26a1368d0f3b3a7b6dd79569ca6e246 /gas | |
parent | 357d3800d1b44c9f090a6799240268840f270d36 (diff) | |
download | gdb-a02728c81d3e01e3faa73f7583ee48680d0a4fa8.zip gdb-a02728c81d3e01e3faa73f7583ee48680d0a4fa8.tar.gz gdb-a02728c81d3e01e3faa73f7583ee48680d0a4fa8.tar.bz2 |
* config/tc-xtensa.c (init_op_placement_info_table): Check for formats
of the same length but different numbers of slots.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-xtensa.c | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 0ae569d..9d08f29 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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. diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c index fd34e4b..d5531f6 100644 --- a/gas/config/tc-xtensa.c +++ b/gas/config/tc-xtensa.c @@ -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; |