Do not allow auto inc/dec to parallelize with an instruction that uses the index...
[deliverable/binutils-gdb.git] / gas / config / tc-d10v.c
index 14ef3976acfa0644ac655884be3104f8a2c71c6b..bbed44bcbe05b599eb4a41c05256bda4e11c1a1b 100644 (file)
@@ -871,6 +871,12 @@ parallel_ok (op1, insn1, op2, insn2, exec_type)
                  used[j] |= 1 << regno ;
                  if (flags & OPERAND_EVEN)
                    used[j] |= 1 << (regno + 1);
+
+                 /* Auto inc/dec also modifies the register.  */
+                 if (op->operands[i+1] != 0
+                     && (d10v_operands[op->operands[i+1]].flags
+                         & (OPERAND_PLUS | OPERAND_MINUS)) != 0)
+                   mod[j] |= 1 << regno;
                }
            }
        }
This page took 0.024807 seconds and 4 git commands to generate.