diff options
author | Svein Seldal <svein@dev.seldal.com> | 2002-11-25 09:01:30 +0000 |
---|---|---|
committer | Svein Seldal <svein@dev.seldal.com> | 2002-11-25 09:01:30 +0000 |
commit | da91385db36b15b4a525dd38c7540db2a7ee14f4 (patch) | |
tree | d4d2c7bc6825e608cd8dcb01db3072083e0778d1 | |
parent | 7d6a26a7dc968a6be160d59fe45219bd646b1a1c (diff) | |
download | fsf-binutils-gdb-da91385db36b15b4a525dd38c7540db2a7ee14f4.zip fsf-binutils-gdb-da91385db36b15b4a525dd38c7540db2a7ee14f4.tar.gz fsf-binutils-gdb-da91385db36b15b4a525dd38c7540db2a7ee14f4.tar.bz2 |
* gas/config/tc-tic4x.c (c4x_operands_match): Bugfix in direct
mode
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/config/tc-tic4x.c | 19 |
2 files changed, 8 insertions, 15 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 4e75d4a..e877a41 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com> + + * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode + 2002-11-21 Randolph Chung <randolph@tausq.org> * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols diff --git a/gas/config/tc-tic4x.c b/gas/config/tc-tic4x.c index 6136105..8e5f579 100644 --- a/gas/config/tc-tic4x.c +++ b/gas/config/tc-tic4x.c @@ -1877,21 +1877,10 @@ c4x_operands_match (inst, insn, check) if (operand->mode != M_DIRECT) break; if (exp->X_op == O_constant) - { - if(exp->X_add_number <= 65535) - { - /* Store only the 16 LSBs of the number. */ - INSERTS (opcode, exp->X_add_number, 15, 0); - continue; - } - else - { - if (!check) - as_bad ("Direct value of %ld is too large", - (long) exp->X_add_number); - ret = -1; - continue; - } + { + /* Store only the 16 LSBs of the number. */ + INSERTS (opcode, exp->X_add_number, 15, 0); + continue; } else if (exp->X_op == O_symbol) { |