diff options
Diffstat (limited to 'gas/config/tc-d10v.c')
-rw-r--r-- | gas/config/tc-d10v.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gas/config/tc-d10v.c b/gas/config/tc-d10v.c index 14ef397..bbed44b 100644 --- a/gas/config/tc-d10v.c +++ b/gas/config/tc-d10v.c @@ -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; } } } |