* config/tc-d10v.c (get_operands): Emit OPERAND_PLUS for
authorAlexandre Oliva <aoliva@redhat.com>
Thu, 29 Nov 2001 18:23:11 +0000 (18:23 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Thu, 29 Nov 2001 18:23:11 +0000 (18:23 +0000)
prefix `+'.

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

index 0d2ddd41bc9bb47092b23cd7c23a376d3ae1e565..ff17c608e2c28e59ca9426725d9c936bba150f73 100644 (file)
@@ -1,5 +1,8 @@
 2001-11-29  Alexandre Oliva  <aoliva@redhat.com>
 
+       * config/tc-d10v.c (get_operands): Emit OPERAND_PLUS for
+       prefix `+'.
+
        * config/tc-d10v.c (find_opcode): Reject non-SP operand if
        flags requires SP.
 
index 284b2af984d77763819292f746b5b596eff07712..5074cddd0acbe1a106838e3a3aa9ec71b7d5ba4a 100644 (file)
@@ -457,6 +457,11 @@ get_operands (exp)
          else
            {
              exp[numops].X_add_number = OPERAND_ATSIGN;
+             if (*p == '+')
+               {
+                 exp[++numops].X_add_number = OPERAND_PLUS;
+                 ++p;
+               }
              post = postfix (p);
            }
          numops++;