From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9287 invoked by alias); 19 Jan 2015 22:36:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 9251 invoked by uid 55); 19 Jan 2015 22:36:27 -0000 From: "olegendo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/53988] [SH] tst Rm,Rn not used for QI/HImode Date: Mon, 19 Jan 2015 22:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: olegendo at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg01921.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53988 --- Comment #6 from Oleg Endo --- Author: olegendo Date: Mon Jan 19 22:35:53 2015 New Revision: 219864 URL: https://gcc.gnu.org/viewcvs?rev=219864&root=gcc&view=rev Log: 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. Modified: trunk/gcc/ChangeLog trunk/gcc/config/sh/sh-protos.h trunk/gcc/config/sh/sh.c