From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25895 invoked by alias); 5 Jun 2014 13:54: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 Received: (qmail 25847 invoked by uid 48); 5 Jun 2014 13:53:57 -0000 From: "vmakarov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/61411] [NEON] ICE in reload_cse_simplify_operands, at postreload.c:411 Date: Thu, 05 Jun 2014 13:54: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.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vmakarov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: 2014-06/txt/msg00376.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61411 --- Comment #2 from Vladimir Makarov --- (In reply to bin.cheng from comment #1) > The patch can fix the issue, but problem is why GCC/lra generated > register-indexing ([reg+reg]) addressing mode for V8HImode in the first > place. Since without this patch, the address expression is illegal and > shouldn't be generated. I didn't look into LRA's code and am not very sure > whether this patch is covering the problem. LRA does a lot of RTL transformations during its work. One transformation can be rematerialization -- changing one reg (usually a spilled pseudo) on equivalent expression, e.g. sum of two regs or even more complex expression. That is how such address can occur during LRA work. But LRA should do all necessary transformations to get the right address after all.