mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 04:00:07 +08:00
Fix range check for immediate operand.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2002-07-31 Momchil Velikov <velco@fadata.bg>
|
||||||
|
|
||||||
|
* config/tc-v850.c (md_assemble): Fix range check for immediate
|
||||||
|
operand.
|
||||||
|
|
||||||
2002-07-30 Chris Demetriou <cgd@broadcom.com>
|
2002-07-30 Chris Demetriou <cgd@broadcom.com>
|
||||||
|
|
||||||
* config/tc-mips.c (mips_cpu_info_table): Clean up entries related
|
* config/tc-mips.c (mips_cpu_info_table): Clean up entries related
|
||||||
|
@ -1961,7 +1961,7 @@ md_assemble (str)
|
|||||||
if (((insn & 0x07e0) == 0x0200)
|
if (((insn & 0x07e0) == 0x0200)
|
||||||
&& ex.X_op == O_constant
|
&& 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)))
|
|| ex.X_add_number > ((1 << (operand->bits - 1)) - 1)))
|
||||||
errmsg = _("immediate operand is too large");
|
errmsg = _("immediate operand is too large");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user