mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
Do not allow auto inc/dec to parallelize with an instruction that uses the index register
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Fri Oct 10 00:47:44 1997 Michael Meissner <meissner@cygnus.com>
|
||||||
|
|
||||||
|
* config/tc-d10v.c (parallel_ok): Note that auto increment and
|
||||||
|
decrement modify the index register.
|
||||||
|
|
||||||
Thu Oct 9 15:17:50 1997 Ian Lance Taylor <ian@cygnus.com>
|
Thu Oct 9 15:17:50 1997 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
From Robin Kirkham <Robin.Kirkham@mlb.dmt.csiro.au>:
|
From Robin Kirkham <Robin.Kirkham@mlb.dmt.csiro.au>:
|
||||||
|
@ -871,6 +871,12 @@ parallel_ok (op1, insn1, op2, insn2, exec_type)
|
|||||||
used[j] |= 1 << regno ;
|
used[j] |= 1 << regno ;
|
||||||
if (flags & OPERAND_EVEN)
|
if (flags & OPERAND_EVEN)
|
||||||
used[j] |= 1 << (regno + 1);
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user