From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 550AC3894E4A; Fri, 24 Apr 2020 17:11:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 550AC3894E4A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587748295; bh=45rT57PFrC2Vnl7ed/jB0O+S5D0RcEbBw5cSCGdofwY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LEnTnfZl9oINsGcXQaQZLK3rtdC7EYoJ5wiJXClaA1smxzdMHBfQD/EIJsZcDP6ag 2gZMxZay8h1sM5J0fWWrUPJ8GmcktVJepaziG4Ywyb8gHxXZWXwOWnH6zeTzX4w4RF oZ94QhMyobWMIYYqGPqtgU4/0QcmqqvW39QTJaxI= From: "bergner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/94740] ICE on testsuite/gcc.dg/sso/t5.c with -mcpu=future -mpcrel -O1 Date: Fri, 24 Apr 2020 17:11:35 +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: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bergner at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2020 17:11:35 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94740 --- Comment #3 from Peter Bergner --- Here's a simpler test case that fails the same way: int array[8]; int foo (void) { return __builtin_bswap32 (array[1]); } So before CSE, we have: (insn 5 2 6 2 (set (reg/f:DI 121) (symbol_ref:DI ("*.LANCHOR0") [flags 0x182])) {*pcrel_local_addr}) (insn 6 5 7 2 (set (reg:DI 123) (const_int 4 [0x4])) {*movdi_internal64}) (insn 7 6 8 2 (set (reg:SI 122) (bswap:SI (mem/c:SI (plus:DI (reg/f:DI 121) (reg:DI 123))))) {bswapsi2_load} (expr_list:REG_EQUAL (bswap:SI (mem/c:SI (plus:DI (reg/f:DI 121) (const_int 4 [0x4])))))) ... After CSE, we then have all the way up to LRA: (insn 7 9 14 2 (set (reg:SI 122) (bswap:SI (mem/c:SI (plus:DI (symbol_ref:DI ("*.LANCHOR= 0") [flags 0x182]) (const_int 4))))) {bswapsi2_load}) ... LRA then calls decompse_address with the above address, which causes us to = go sideways. Not sure why yet. Maybe our bswap2_load pattern needs help?=