OSDN Git Service

* gas/config/tc-tic4x.c (c4x_operands_match): Bugfix in direct
authorSvein Seldal <svein@dev.seldal.com>
Mon, 25 Nov 2002 09:01:30 +0000 (09:01 +0000)
committerSvein Seldal <svein@dev.seldal.com>
Mon, 25 Nov 2002 09:01:30 +0000 (09:01 +0000)
mode

gas/ChangeLog
gas/config/tc-tic4x.c

index 4e75d4a..e877a41 100644 (file)
@@ -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
index 6136105..8e5f579 100644 (file)
@@ -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)
            {