Match r[0..7]_bank operands before normal operands.

This commit is contained in:
Nick Clifton 2000-03-16 01:18:13 +00:00
parent 310905c50e
commit 84f73d89c4
2 changed files with 12 additions and 7 deletions

View file

@ -1,3 +1,8 @@
2000-03-15 Jonathan Larmour <jlarmour@redhat.co.uk>
* config/tc-sh.c (parse_reg): Match r[0..7]_bank operands before
normal operands.
2000-03-15 Kazu Hirata <kazu@hxi.com>
* config/tc-h8300.c: Add ATTRIBUTE_UNUSED as appropriate.

View file

@ -265,6 +265,13 @@ parse_reg (src, mode, reg)
if (src[0] == 'r')
{
if (src[1] >= '0' && src[1] <= '7' && strncmp (&src[2], "_bank", 5) == 0
&& ! isalnum ((unsigned char) src[7]))
{
*mode = A_REG_B;
*reg = (src[1] - '0');
return 7;
}
if (src[1] == '1')
{
if (src[2] >= '0' && src[2] <= '5'
@ -282,13 +289,6 @@ parse_reg (src, mode, reg)
*reg = (src[1] - '0');
return 2;
}
if (src[1] >= '0' && src[1] <= '7' && strncmp(&src[2], "_bank", 5) == 0
&& ! isalnum ((unsigned char) src[7]))
{
*mode = A_REG_B;
*reg = (src[1] - '0');
return 7;
}
if (src[1] == 'e' && ! isalnum ((unsigned char) src[2]))
{