https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51244
--- Comment #79 from Oleg Endo <olegendo at gcc dot gnu.org> --- Author: olegendo Date: Sat Nov 22 16:07:25 2014 New Revision: 217970 URL: https://gcc.gnu.org/viewcvs?rev=217970&root=gcc&view=rev Log: gcc/ Backport from mainline 2014-11-22 Oleg Endo <olege...@gcc.gnu.org> PR target/63783 PR target/51244 * config/sh/sh_treg_combine.cc (sh_treg_combine::make_not_reg_insn): Do not emit bitwise not insn. Emit logical not insn sequence instead. Adjust related comments throughout the file. gcc/testsuite/ Backport from mainline 2014-11-22 Oleg Endo <olege...@gcc.gnu.org> PR target/63783 PR target/51244 * gcc.target/sh/torture/pr63783-1.c: New. * gcc.target/sh/torture/pr63783-2.c: New. * gcc.target/sh/pr51244-20.c: Adjust. * gcc.target/sh/pr51244-20-sh2a.c: Adjust. Added: branches/gcc-4_9-branch/gcc/testsuite/gcc.target/sh/torture/pr63783-1.c branches/gcc-4_9-branch/gcc/testsuite/gcc.target/sh/torture/pr63783-2.c Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/config/sh/sh_treg_combine.cc branches/gcc-4_9-branch/gcc/testsuite/ChangeLog branches/gcc-4_9-branch/gcc/testsuite/gcc.target/sh/pr51244-20-sh2a.c branches/gcc-4_9-branch/gcc/testsuite/gcc.target/sh/pr51244-20.c