aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2004-04-22 16:18:29 +0000
committerPaul Brook <paul@codesourcery.com>2004-04-22 16:18:29 +0000
commit06516a5e02e15ae3daa70b11b8f1e760ef3dabfe (patch)
treef0bf20a1318e8eedb322653923c028cd64ea501e /gas/config
parentfe2e161ad6d43a9f95c6ecbb0a1e57376632cf94 (diff)
downloadgdb-06516a5e02e15ae3daa70b11b8f1e760ef3dabfe.zip
gdb-06516a5e02e15ae3daa70b11b8f1e760ef3dabfe.tar.gz
gdb-06516a5e02e15ae3daa70b11b8f1e760ef3dabfe.tar.bz2
* config/tc-arm.c (mav_parse_offset): Value must be multiple of 4.
testsuite * maverick.c (off8s): Test full shifted operand range. (MCC2): Define. (MVDSPACC, MVACCDSP): Use it. * maverick.d, maverick.s: Regenerate.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-arm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 2092659..0269df3 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -10853,11 +10853,16 @@ mav_parse_offset (str, negative)
for (offset = 0; *p && ISDIGIT (*p); ++p)
offset = offset * 10 + *p - '0';
- if (offset > 0xff)
+ if (offset > 0x3fc)
{
inst.error = _("offset out of range");
return 0;
}
+ if (offset & 0x3)
+ {
+ inst.error = _("offset not a multiple of 4");
+ return 0;
+ }
*str = p;