From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 748723854821; Wed, 18 Nov 2020 16:12:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 748723854821 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/97528] [9/10/11 Regression] ICE in decompose_automod_address, at rtlanal.c:6298 (arm-linux-gnueabihf) Date: Wed, 18 Nov 2020 16:12:01 +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.2.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: 10.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: Wed, 18 Nov 2020 16:12:01 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97528 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- We have: (insn 7 6 9 2 (set (reg:SI 114 [ _3 ]) (ashift:SI (reg:SI 122 [ d ]) (const_int 1 [0x1]))) "pr97528-2.c":14:9 147 {*arm_shiftsi3} (expr_list:REG_DEAD (reg:SI 122 [ d ]) (nil))) ... (insn 12 25 24 2 (set (mem/c:V4HI (post_modify:SI (reg/v/f:SI 118 [ dst ]) (plus:SI (reg/v/f:SI 118 [ dst ]) (reg:SI 114 [ _3 ]))) [0 MEM[(short int[4] *)&c]+0 S8 A= 16]) (unspec:V4HI [ (reg:V4HI 117 [ _14 ]) ] UNSPEC_VST1)) "pr97528-2.c":13:5 2508 {neon_vst1v4hi} (expr_list:REG_INC (reg/v/f:SI 118 [ dst ]) (nil))) and combine attempts to propagate the shift into the insn: (insn 12 25 24 2 (set (mem/c:V4HI (post_modify:SI (reg/v/f:SI 118 [ dst ]) (plus:SI (mult:SI (reg:SI 122 [ d ]) (const_int 2 [0x2])) (reg/v/f:SI 118 [ dst ]))) [0 MEM[(short int[4] *)&c]+0= S8 A16]) (unspec:V4HI [ (reg:V4HI 117 [ _14 ]) ] UNSPEC_VST1)) "pr97528-2.c":13:5 2508 {neon_vst1v4hi} (expr_list:REG_INC (reg/v/f:SI 118 [ dst ]) (nil))) That is not valid RTL, as documented: Currently, the compiler can only handle second operands of the form (plus (reg) (reg)) and (plus (reg) (const_int)), where the first operand of the PLUS has to be the same register as the first operand of the *_MODIFY.=