[ARM] PR target/70566 Check that condition register is dead in tst-imm -> lsls-imm...
authorktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Apr 2016 09:39:44 +0000 (09:39 +0000)
committerktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Apr 2016 09:39:44 +0000 (09:39 +0000)
commitbec0c1e80c398b7283691f46b453b5ec8b6a9e40
treeeb144d97f0e4370882793d9dfeab03680e68ba79
parent87c791f52532b3d9cb8323c240a49484fb5cc80f
[ARM] PR target/70566 Check that condition register is dead in tst-imm -> lsls-imm Thumb2 peepholes

PR target/70566
* config/arm/thumb2.md (tst + branch-> lsls + branch
peephole below *orsi_not_shiftsi_si): Require that condition
register is dead after the peephole.
(second peephole after the above): Likewise.

* gcc.c-torture/execute/pr70566.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234825 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/arm/thumb2.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr70566.c [new file with mode: 0644]