allow '/' in addition to '.' in dest spec
authorDoug Evans <dje@google.com>
Tue, 27 Jan 1998 18:12:33 +0000 (18:12 +0000)
committerDoug Evans <dje@google.com>
Tue, 27 Jan 1998 18:12:33 +0000 (18:12 +0000)
gas/config/tc-txvu.c
opcodes/txvu-opc.c

index de38477d0a55276c6af88434ba0a493c75eb3afc..fdbaeb23df45c4a3b34965c94104a16ce15cbd6e 100644 (file)
@@ -414,7 +414,7 @@ assemble_one_insn (cpu, opcode, operand_table, str, insn_buf)
              /* Pick the suffix out and parse it.  */
              /* ??? Hmmm ... there may not be any need to nul-terminate the
                 string, and it may in fact complicate things.  */
-             for (t = *s == '.' ? s + 1 : s;
+             for (t = (*s == '.' || *s == '/') ? s + 1 : s;
                   *t && (isalnum (*t) || *t == '[' || *t == ']');
                   ++t)
                continue;
index 0f6deee8eea023a769c0c2cd7ddcfb19a80600fb..56267c9d993fe0a4e8e75c1c6a40ca6ac0faef1b 100644 (file)
@@ -227,7 +227,7 @@ const struct txvu_operand txvu_operands[] =
 #define LPCREL11 (LUIMM12UP6 + 1)
   { 11, 0, TXVU_OPERAND_SIGNED + TXVU_OPERAND_RELATIVE_BRANCH, 0, 0, 0, 0 },
 
-  /* Destination indicator, single letter only, with leading '.'.  */
+  /* Destination indicator, single letter only, with leading '.' or '/'.  */
 #define LDOTDEST1 (LPCREL11 + 1)
   { 4, TXVU_SHIFT_DEST, TXVU_OPERAND_SUFFIX,
       /* Note that we borrow the insert/extract/print functions from the
@@ -560,7 +560,7 @@ parse_dotdest (pstr, errmsg)
 {
   long dest;
 
-  if (**pstr != '.')
+  if (**pstr != '.' && **pstr != '/')
     {
       *errmsg = "missing `.'";
       return 0;
@@ -588,7 +588,7 @@ parse_dotdest1 (pstr, errmsg)
   char c;
   long dest;
 
-  if (**pstr != '.')
+  if (**pstr != '.' && **pstr != '/')
     {
       *errmsg = "missing `.'";
       return 0;
This page took 0.027128 seconds and 4 git commands to generate.