aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-msp430.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2014-11-03 11:15:53 +0000
committerNick Clifton <nickc@redhat.com>2014-11-03 11:15:53 +0000
commit99b4a5a08507a96f6d014553c9ac4c5e257f37a2 (patch)
tree939f0fa1151bdc21ef7e2b7311c94e218b16116e /gas/config/tc-msp430.c
parente82149ff2aa7f91090a440daa882b8c0c37840a9 (diff)
downloadgdb-99b4a5a08507a96f6d014553c9ac4c5e257f37a2.zip
gdb-99b4a5a08507a96f6d014553c9ac4c5e257f37a2.tar.gz
gdb-99b4a5a08507a96f6d014553c9ac4c5e257f37a2.tar.bz2
Fixes a snafu checking the size of 20-bit immedaite values.
* config/tc-msp430.c (msp430_srcoperand): Fix range test for 20-bit values.
Diffstat (limited to 'gas/config/tc-msp430.c')
-rw-r--r--gas/config/tc-msp430.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-msp430.c b/gas/config/tc-msp430.c
index 1398b8c..25ec0ee 100644
--- a/gas/config/tc-msp430.c
+++ b/gas/config/tc-msp430.c
@@ -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;