summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSvein Seldal <svein@dev.seldal.com>2002-11-25 09:01:30 +0000
committerSvein Seldal <svein@dev.seldal.com>2002-11-25 09:01:30 +0000
commitda91385db36b15b4a525dd38c7540db2a7ee14f4 (patch)
treed4d2c7bc6825e608cd8dcb01db3072083e0778d1
parent7d6a26a7dc968a6be160d59fe45219bd646b1a1c (diff)
downloadppe42-binutils-da91385db36b15b4a525dd38c7540db2a7ee14f4.tar.gz
ppe42-binutils-da91385db36b15b4a525dd38c7540db2a7ee14f4.zip
* gas/config/tc-tic4x.c (c4x_operands_match): Bugfix in direct
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 4e75d4ae8c..e877a41253 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 61361050b7..8e5f5795c0 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)
{
OpenPOWER on IntegriCloud