aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2002-01-30 18:25:30 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2002-01-30 18:25:30 +0000
commit912a07db5247067be7e5e1c69cdeb0b542f17a63 (patch)
tree4c3cbd6076679cac18294c3e2abaaf13dc99bf06 /gas/config
parentb5f79c764c4d8fa336c92946eec8e2d8f4e9bffd (diff)
downloadgdb-912a07db5247067be7e5e1c69cdeb0b542f17a63.zip
gdb-912a07db5247067be7e5e1c69cdeb0b542f17a63.tar.gz
gdb-912a07db5247067be7e5e1c69cdeb0b542f17a63.tar.bz2
* config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
and mod.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-sh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c
index 7a15bd4..fa9869f 100644
--- a/gas/config/tc-sh.c
+++ b/gas/config/tc-sh.c
@@ -598,7 +598,7 @@ parse_reg (src, mode, reg)
}
}
- if (l0 == 'i' && l1 && ! IDENT_CHAR ((unsigned char) src[3]))
+ if (l0 == 'i' && l1 && ! IDENT_CHAR ((unsigned char) src[2]))
{
if (l1 == 's')
{
@@ -733,7 +733,7 @@ parse_reg (src, mode, reg)
}
}
if (l0 == 'm' && l1 == 'o' && TOLOWER (src[2]) == 'd'
- && ! IDENT_CHAR ((unsigned char) src[4]))
+ && ! IDENT_CHAR ((unsigned char) src[3]))
{
*mode = A_MOD;
return 3;