diff options
author | Nick Clifton <nickc@redhat.com> | 2015-08-11 09:40:02 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-08-11 09:40:02 +0100 |
commit | 88fd0449a3f88c12c8930698a833f6c1c4478307 (patch) | |
tree | 0d3659c1d1a58fecbba74d72d985b54cda7028d8 /gas | |
parent | 2b29bb41d56d4e4ba495393f4f519718b73f92df (diff) | |
download | binutils-88fd0449a3f88c12c8930698a833f6c1c4478307.zip binutils-88fd0449a3f88c12c8930698a833f6c1c4478307.tar.gz binutils-88fd0449a3f88c12c8930698a833f6c1c4478307.tar.bz2 |
Fix typo checking number of operands.
PR gas/18678
* config/tc-tic4x.c (tic4x_insn_check): Fix typo.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 3 | ||||
-rw-r--r-- | gas/config/tc-tic4x.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 1957977..f8593d3 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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. diff --git a/gas/config/tc-tic4x.c b/gas/config/tc-tic4x.c index 6dab1ac..b1ed451 100644 --- a/gas/config/tc-tic4x.c +++ b/gas/config/tc-tic4x.c @@ -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 |