aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-sh.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-sh.c')
-rw-r--r--gas/config/tc-sh.c14
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]))
{