* config/tc-d10v.c (find_opcode): Reject non-SP operand if
authorAlexandre Oliva <aoliva@redhat.com>
Thu, 29 Nov 2001 18:04:12 +0000 (18:04 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Thu, 29 Nov 2001 18:04:12 +0000 (18:04 +0000)
flags requires SP.

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

index 2df90da091c23114fc291503a35dd6e1ace40ff9..0d2ddd41bc9bb47092b23cd7c23a376d3ae1e565 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-29  Alexandre Oliva  <aoliva@redhat.com>
+
+       * config/tc-d10v.c (find_opcode): Reject non-SP operand if
+       flags requires SP.
+
 2001-11-29 Arati Dikey <aratid@kpit.com>
 
        * tc-sh.c (parse_at): Removed case-sensitivity of index register
index 43fd89c89494707b0f0746e35a385c83b16caf2a..284b2af984d77763819292f746b5b596eff07712 100644 (file)
@@ -1276,7 +1276,8 @@ find_opcode (opcode, myops)
          if (X_op != O_register
              || (num & ~flags
                  & (OPERAND_GPR | OPERAND_ACC0 | OPERAND_ACC1
-                    | OPERAND_FFLAG | OPERAND_CFLAG | OPERAND_CONTROL)))
+                    | OPERAND_FFLAG | OPERAND_CFLAG | OPERAND_CONTROL))
+             || ((flags & OPERAND_SP) && ! (num & OPERAND_SP)))
            {
              as_bad (_("bad opcode or operands"));
              return 0;
@@ -1385,7 +1386,8 @@ find_opcode (opcode, myops)
                      || (num & ~flags
                          & (OPERAND_GPR | OPERAND_ACC0 | OPERAND_ACC1
                             | OPERAND_FFLAG | OPERAND_CFLAG
-                            | OPERAND_CONTROL)))
+                            | OPERAND_CONTROL))
+                     || ((flags & OPERAND_SP) && ! (num & OPERAND_SP)))
                    {
                      match = 0;
                      break;