From 03223580a722ebafe8c7bb69404b0de4a3211583 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 31 Jul 2002 09:17:52 +0000 Subject: [PATCH] Fix range check for immediate operand. --- gas/ChangeLog | 5 +++++ gas/config/tc-v850.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 4a4fad50e03..094b036be96 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-07-31 Momchil Velikov + + * config/tc-v850.c (md_assemble): Fix range check for immediate + operand. + 2002-07-30 Chris Demetriou * config/tc-mips.c (mips_cpu_info_table): Clean up entries related diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c index 11abc665413..eaadaafb209 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"); } -- 2.30.2