aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-v850.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-07-31 09:17:52 +0000
committerNick Clifton <nickc@redhat.com>2002-07-31 09:17:52 +0000
commit03223580a722ebafe8c7bb69404b0de4a3211583 (patch)
tree056d356e9a4a1e98b0d0663a6df837bab773f96b /gas/config/tc-v850.c
parentc7a23324137fca4ca6cd569f8173a58409d90390 (diff)
downloadgdb-03223580a722ebafe8c7bb69404b0de4a3211583.zip
gdb-03223580a722ebafe8c7bb69404b0de4a3211583.tar.gz
gdb-03223580a722ebafe8c7bb69404b0de4a3211583.tar.bz2
Fix range check for immediate operand.
Diffstat (limited to 'gas/config/tc-v850.c')
-rw-r--r--gas/config/tc-v850.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c
index 11abc66..eaadaaf 100644
--- a/gas/config/tc-v850.c
+++ b/gas/config/tc-v850.c
@@ -1961,7 +1961,7 @@ md_assemble (str)
if (((insn & 0x07e0) == 0x0200)
&& ex.X_op == O_constant
&& (ex.X_add_number < (-(1 << (operand->bits - 1)))
- || ex.X_add_number > ((1 << operand->bits) - 1)))
+ || ex.X_add_number > ((1 << (operand->bits - 1)) - 1)))
errmsg = _("immediate operand is too large");
}