From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3271 invoked by alias); 31 May 2011 14:35:17 -0000 Received: (qmail 3124 invoked by uid 22791); 31 May 2011 14:35:16 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 31 May 2011 14:34:29 +0000 From: "kkojima at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/49238] [4.5/4.6/4.7 Regression] [SH] ICE in extract_insn, at recog.c:2113 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: kkojima at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Known to work Keywords Last reconfirmed CC Ever Confirmed Summary Known to fail Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 31 May 2011 14:37:00 -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 X-SW-Source: 2011-05/txt/msg03104.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49238 Kazumoto Kojima changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Known to work| |4.4.5 Keywords| |ice-on-valid-code Last reconfirmed| |2011.05.31 14:32:50 CC| |kkojima at gcc dot gnu.org Ever Confirmed|0 |1 Summary|ICE in extract_insn, at |[4.5/4.6/4.7 Regression] |recog.c:2113 |[SH] ICE in extract_insn, | |at recog.c:2113 Known to fail| |4.5.4, 4.6.0, 4.7.0 --- Comment #1 from Kazumoto Kojima 2011-05-31 14:32:50 UTC --- This might be a fallout of the patch in http://gcc.gnu.org/ml/gcc-patches/2008-04/msg01211.html I'm testing the patch below. --- ORIG/trunk/gcc/config/sh/sh.c 2011-05-31 12:06:18.000000000 +0900 +++ trunk/gcc/config/sh/sh.c 2011-05-31 23:14:33.000000000 +0900 @@ -2199,6 +2199,13 @@ expand_cbranchdi4 (rtx *operands, enum r { operands[1] = op1h; operands[2] = op2h; + if (reload_completed + && ! arith_reg_or_0_operand (op2h, SImode) + && (true_regnum (op1h) || (comparison != EQ && comparison != NE))) + { + emit_move_insn (scratch, operands[2]); + operands[2] = scratch; + } } operands[3] = skip_label = gen_label_rtx ();