re PR target/49263 (SH Target: underutilized "TST #imm, R0" instruction)
authorOleg Endo <olegendo@gcc.gnu.org>
Mon, 26 Jan 2015 23:56:05 +0000 (23:56 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Mon, 26 Jan 2015 23:56:05 +0000 (23:56 +0000)
commit48e4f473eb23e4bf95e517f9eb83272316674c16
treeee29468871e63260274fe84d0ff21a1e5b303dee
parent831a3a9e343d66a4dc51c141f2b5a87df5433627
re PR target/49263 (SH Target: underutilized "TST #imm, R0" instruction)

gcc/
PR target/49263
* config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
remove_insn.
* config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
shifts if it already fits into K08.

gcc/testsuite/
PR target/49263
* gcc.target/sh/pr49263-4.c: New.

From-SVN: r220144
gcc/ChangeLog
gcc/config/sh/sh.c
gcc/config/sh/sh.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/sh/pr49263-4.c [new file with mode: 0644]