diff options
author | Nick Clifton <nickc@redhat.com> | 2000-03-16 01:18:13 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2000-03-16 01:18:13 +0000 |
commit | 84f73d89c43a63f9528fbbe0eb3de65bfa7b185d (patch) | |
tree | 14902215e0a370fd259f86b71dcf90fbe8103303 /gas/config | |
parent | 310905c50ebba0e0a704dbd34d946294d083a8fb (diff) | |
download | gdb-84f73d89c43a63f9528fbbe0eb3de65bfa7b185d.zip gdb-84f73d89c43a63f9528fbbe0eb3de65bfa7b185d.tar.gz gdb-84f73d89c43a63f9528fbbe0eb3de65bfa7b185d.tar.bz2 |
Match r[0..7]_bank operands before normal operands.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-sh.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index 66dbb5b..7d9fb68 100644 --- a/gas/config/tc-sh.c +++ b/gas/config/tc-sh.c @@ -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])) { |