]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR 17438 - fix parsing of MVTSYS and MVFSYS insns.
authorNick Clifton <nickc@redhat.com>
Wed, 23 Sep 1998 17:56:40 +0000 (17:56 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 23 Sep 1998 17:56:40 +0000 (17:56 +0000)
gas/ChangeLog
gas/config/tc-d30v.c

index 4bb9bd7f39e5f04526bac583da81977b75445a07..18a3231636a3cdfc46a2355a9c63e042e4153bd1 100644 (file)
@@ -1,3 +1,9 @@
+Wed Sep 23 10:54:29 1998  Nick Clifton  <nickc@cygnus.com>
+
+       * 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  <nickc@cygnus.com>
 
        * config/tc-d30v.c (write_2_short): Implement EITHER_BUT_PREFER_MU
index f61ff5b5c6b052677203ee1639d8aad93cafd451..1fdd45bf3c330b76577d1e979796c222fb3c0905 100644 (file)
@@ -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);