From 21056c79a4c7b131f9db81388b85599d4a474e7b Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 23 Sep 1998 17:56:40 +0000 Subject: [PATCH] PR 17438 - fix parsing of MVTSYS and MVFSYS insns. --- gas/ChangeLog | 6 ++++++ gas/config/tc-d30v.c | 20 +++++++++++--------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 4bb9bd7f39e..18a3231636a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +Wed Sep 23 10:54:29 1998 Nick Clifton + + * config/tc-d30v.c (reg_name_search): Only warn if a name matches + both a register name and symbol name. + (find_format): Allow correct parsing of MVTSYS and MVFSYS insns. + Tue Sep 22 17:49:16 1998 Nick Clifton * config/tc-d30v.c (write_2_short): Implement EITHER_BUT_PREFER_MU diff --git a/gas/config/tc-d30v.c b/gas/config/tc-d30v.c index f61ff5b5c6b..1fdd45bf3c3 100644 --- a/gas/config/tc-d30v.c +++ b/gas/config/tc-d30v.c @@ -168,13 +168,6 @@ reg_name_search (name) low = 0; high = reg_name_cnt () - 1; - if (symbol_find (name) != NULL) - { - if (warn_register_name_conflicts) - as_warn ("Register name %s conflicts with symbol of the same name", - name); - } - do { middle = (low + high) / 2; @@ -183,8 +176,17 @@ reg_name_search (name) high = middle - 1; else if (cmp > 0) low = middle + 1; - else - return pre_defined_registers[middle].value; + else + { + if (symbol_find (name) != NULL) + { + if (warn_register_name_conflicts) + as_warn ("Register name %s conflicts with symbol of the same name", + name); + } + + return pre_defined_registers[middle].value; + } } while (low <= high); -- 2.30.2