mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-02 23:04:09 +08:00
Fixes a snafu checking the size of 20-bit immedaite values.
* config/tc-msp430.c (msp430_srcoperand): Fix range test for 20-bit values.
This commit is contained in:
parent
e82149ff2a
commit
99b4a5a085
@ -1,3 +1,8 @@
|
||||
2014-11-03 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* config/tc-msp430.c (msp430_srcoperand): Fix range test for
|
||||
20-bit values.
|
||||
|
||||
2014-10-31 Andrew Pinski <apinski@cavium.com>
|
||||
Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
|
||||
|
||||
|
@ -1132,7 +1132,7 @@ msp430_srcoperand (struct msp430_operand_s * op,
|
||||
|
||||
if (allow_20bit_values)
|
||||
{
|
||||
if (op->exp.X_add_number > 0xfffff || op->exp.X_add_number < - (0x7ffff))
|
||||
if (op->exp.X_add_number > 0xfffff || op->exp.X_add_number < -524288)
|
||||
{
|
||||
as_bad (_("value 0x%x out of extended range."), x);
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user