Fix typo checking number of operands.
authorNick Clifton <nickc@redhat.com>
Tue, 11 Aug 2015 08:40:02 +0000 (09:40 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 11 Aug 2015 08:40:02 +0000 (09:40 +0100)
PR gas/18678
* config/tc-tic4x.c (tic4x_insn_check): Fix typo.

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

index 19579776d6337b651afcee0e1feb93d7434e3957..f8593d362d9eb7b9ca1769cc22d70fdc19f01226 100644 (file)
@@ -1,5 +1,8 @@
 2015-08-11  Nick Clifton  <nickc@redhat.com>
 
+       PR gas/18678
+       * config/tc-tic4x.c (tic4x_insn_check): Fix typo.
+
        PR gas/18679
        * config/xtensa-relax.c (same_operand_name): Fix typo.
 
index 6dab1ac38982856b18d8f39a49ee0e2edacf7ed4..b1ed451ba40134a129795d641c8e694e6939a785 100644 (file)
@@ -2354,7 +2354,7 @@ tic4x_insn_check (tic4x_insn_t *tinsn)
            || !strcmp (tinsn->name, "ldf1_ldf2")
            || !strcmp (tinsn->name, "ldf2_ldf1") )
     {
-      if (tinsn->num_operands < 4 && tinsn->num_operands > 5 )
+      if (tinsn->num_operands < 4 || tinsn->num_operands > 5)
         as_fatal ("Illegal internal %s insn definition", tinsn->name);
       
       if (tinsn->operands[1].mode == M_REGISTER