From: Nick Clifton Date: Tue, 11 Aug 2015 08:43:16 +0000 (+0100) Subject: Fix typo checking MMIX operands. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d29b2a1ece30514431861472d784ae8722816a4c;p=binutils-gdb.git Fix typo checking MMIX operands. PR gas/18677 * config/tc-mmix.c (md_assemble): Fix typo checking operands with a numeric constant value. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index f8593d362d9..fb462dc10f4 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,9 @@ 2015-08-11 Nick Clifton + PR gas/18677 + * config/tc-mmix.c (md_assemble): Fix typo checking operands with + a numeric constant value. + PR gas/18678 * config/tc-tic4x.c (tic4x_insn_check): Fix typo. diff --git a/gas/config/tc-mmix.c b/gas/config/tc-mmix.c index 971c5342772..a02e027ddb6 100644 --- a/gas/config/tc-mmix.c +++ b/gas/config/tc-mmix.c @@ -1475,8 +1475,8 @@ md_assemble (char *str) && ((exp[1].X_op == O_register && exp[1].X_add_number < 512) || (exp[1].X_op == O_constant - && exp[1].X_add_number < 0 - && exp[1].X_add_number > 4) + && (exp[1].X_add_number < 0 + || exp[1].X_add_number > 4)) || (exp[1].X_op != O_register && exp[1].X_op != O_constant)))) {