Fix typo checking MMIX operands.
authorNick Clifton <nickc@redhat.com>
Tue, 11 Aug 2015 08:43:16 +0000 (09:43 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 11 Aug 2015 08:43:16 +0000 (09:43 +0100)
PR gas/18677
* config/tc-mmix.c (md_assemble): Fix typo checking operands with
a numeric constant value.

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

index f8593d362d9eb7b9ca1769cc22d70fdc19f01226..fb462dc10f4a33d069f9430c54f4f357e8df1b17 100644 (file)
@@ -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.
 
index 971c5342772ba0c5382a46743a9398d49195900a..a02e027ddb6534108fa4836fc423e5de29a696ad 100644 (file)
@@ -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))))
          {