[binutils-gdb] Fix typo checking MMIX operands.
Nick Clifton
nickc@sourceware.org
Tue Aug 11 08:43:00 GMT 2015
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d29b2a1ece30514431861472d784ae8722816a4c
commit d29b2a1ece30514431861472d784ae8722816a4c
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Aug 11 09:43:16 2015 +0100
Fix typo checking MMIX operands.
PR gas/18677
* config/tc-mmix.c (md_assemble): Fix typo checking operands with
a numeric constant value.
Diff:
---
gas/ChangeLog | 4 ++++
gas/config/tc-mmix.c | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/gas/ChangeLog b/gas/ChangeLog
index f8593d3..fb462dc 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,9 @@
2015-08-11 Nick Clifton <nickc@redhat.com>
+ 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 971c534..a02e027 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))))
{
More information about the Binutils-cvs
mailing list