aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-tic4x.c19
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)
{