re PR target/53988 ([SH] tst Rm,Rn not used for QI/HImode)
authorOleg Endo <olegendo@gcc.gnu.org>
Mon, 19 Jan 2015 22:35:53 +0000 (22:35 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Mon, 19 Jan 2015 22:35:53 +0000 (22:35 +0000)
commitb151091dca19708ce7b51fcdf4fffd4b45a831c5
treec20067725481e97853bfe41791791d544357c352
parentc2db720467067f3e811de25875b2bbe7fa06f7a6
re PR target/53988 ([SH] tst Rm,Rn not used for QI/HImode)

gcc/
PR target/53988
* config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
nullptr for insn when reaching the first insn.
* config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
(sh_insn_operands_modified_between_p): Add nullptr check.
(sh_find_extending_set_of_reg): Fix log message.  Don't accept
sign extending mem load if the insn contains any UNSPEC or
UNSPEC_VOLATILE.

From-SVN: r219864
gcc/ChangeLog
gcc/config/sh/sh-protos.h
gcc/config/sh/sh.c