[ARM] PR target/70566 Check that condition register is dead in tst-imm -> lsls-imm...
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Fri, 8 Apr 2016 09:39:44 +0000 (09:39 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Fri, 8 Apr 2016 09:39:44 +0000 (09:39 +0000)
commitbae7adda10c0e1d813ebb602a719ca66ff16fae9
treeeb144d97f0e4370882793d9dfeab03680e68ba79
parent211f3d57b17a275835d37b631591efbd1b446a46
[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.

From-SVN: r234825
gcc/ChangeLog
gcc/config/arm/thumb2.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr70566.c [new file with mode: 0644]