https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66611
--- Comment #4 from Oleg Endo <olegendo at gcc dot gnu.org> --- Author: olegendo Date: Sat Jun 27 00:46:58 2015 New Revision: 225094 URL: https://gcc.gnu.org/viewcvs?rev=225094&root=gcc&view=rev Log: gcc/ Backport from mainline 2015-06-25 Oleg Endo <olege...@gcc.gnu.org> PR target/65979 PR target/66611 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if the replacement insn will work. Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/config/sh/sh.md