https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67391
--- Comment #32 from Oleg Endo <olegendo at gcc dot gnu.org> --- Author: olegendo Date: Mon Sep 28 13:44:32 2015 New Revision: 228201 URL: https://gcc.gnu.org/viewcvs?rev=228201&root=gcc&view=rev Log: gcc/ Backport from mainline 2015-09-27 Oleg Endo <olege...@gcc.gnu.org> Kaz Kojima <kkoj...@gcc.gnu.org> PR target/67391 * config/sh/sh-protos.h (sh_lra_p): Declare. * config/sh/sh.c (sh_lra_p): Make non-static. * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case. Expand into addsi3_scr if operands[2] if needed. (*addsi3_compact): Rename to *addsi3_compact_lra. Use arith_reg_operand for operands[1]. Allow it only when LRA is enabled. (addsi3_scr, *addsi3): New insn_and_split patterns. Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/config/sh/sh-protos.h branches/gcc-5-branch/gcc/config/sh/sh.c branches/gcc-5-branch/gcc/config/sh/sh.md