mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
PR 17438 - fix parsing of MVTSYS and MVFSYS insns.
This commit is contained in:
@ -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>
|
Tue Sep 22 17:49:16 1998 Nick Clifton <nickc@cygnus.com>
|
||||||
|
|
||||||
* config/tc-d30v.c (write_2_short): Implement EITHER_BUT_PREFER_MU
|
* config/tc-d30v.c (write_2_short): Implement EITHER_BUT_PREFER_MU
|
||||||
|
@ -168,13 +168,6 @@ reg_name_search (name)
|
|||||||
low = 0;
|
low = 0;
|
||||||
high = reg_name_cnt () - 1;
|
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
|
do
|
||||||
{
|
{
|
||||||
middle = (low + high) / 2;
|
middle = (low + high) / 2;
|
||||||
@ -183,8 +176,17 @@ reg_name_search (name)
|
|||||||
high = middle - 1;
|
high = middle - 1;
|
||||||
else if (cmp > 0)
|
else if (cmp > 0)
|
||||||
low = middle + 1;
|
low = middle + 1;
|
||||||
else
|
else
|
||||||
return pre_defined_registers[middle].value;
|
{
|
||||||
|
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);
|
while (low <= high);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user