diff options
author | Claudiu Zissulescu <claziss@synopsys.com> | 2017-11-30 15:42:12 +0100 |
---|---|---|
committer | Claudiu Zissulescu <claziss@gcc.gnu.org> | 2017-11-30 15:42:12 +0100 |
commit | a09202439b038a7e92900bdbe5aa6488b9409a18 (patch) | |
tree | 9ded931435c2d2329430591a7fe9c439880f9238 /gcc/varasm.c | |
parent | 5d4c34aaade8422c8289daa8a5c95fab7830de37 (diff) | |
download | gcc-a09202439b038a7e92900bdbe5aa6488b9409a18.zip gcc-a09202439b038a7e92900bdbe5aa6488b9409a18.tar.gz gcc-a09202439b038a7e92900bdbe5aa6488b9409a18.tar.bz2 |
[ARC] Don't allow the last ZOL insn to be in a delay slot.
The ARC ZOL implementation doesn't allow the last instruction to be a
control instruction or part of a delay slot. Thus, we add a note to
the last ZOL instruction which will prevent it to finish into a delay
slot.
2017-10-20 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.c (hwloop_optimize): Prevent the last
ZOL instruction to end into a delay slot.
* config/arc/arc.md (cond_delay_insn): Check if the instruction
can be placed into a delay slot against reg_note.
(in_delay_slot): Likewise.
testsuite/
2017-10-20 Claudiu Zissulescu <claziss@synopsys.com>
* gcc.target/arc/loop-3.c: New test.
* gcc.target/arc/loop-4.c: Likewise.
[FIX][ZOL] fix checking for jumps
From-SVN: r255275
Diffstat (limited to 'gcc/varasm.c')
0 files changed, 0 insertions, 0 deletions