From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ADAF9396EC57; Tue, 8 Dec 2020 14:39:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ADAF9396EC57 From: "akrl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/97141] [10/11 Regression] aarch64, SVE: ICE in decompose, at rtl.h (during expand) since r10-4676-g9c437a108a Date: Tue, 08 Dec 2020 14:39:09 +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: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: akrl at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: akrl at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.3 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: Tue, 08 Dec 2020 14:39:09 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97141 --- Comment #1 from akrl at gcc dot gnu.org --- Hi all, this is so far my understanding of what is going on here: While in expand the vector builder is trying to build to determine elt numb= er 3 of a vector of POLY_INT_CST. To do that the step has to be computed, therefore rtx_vector_builder::step = is calling wi::sub to compute the difference between elt1 and elt2. wi::sub (in wide-int.h:2508) is making use of WIDE_INT_REF_FOR so we end up= in decompose where we have no handling for poly_int. I'm a little puzzled because I'm not sure where in this stack would be corr= ect to add the poly_int handling. decompose is returning a wi::storage_ref that AFAIU has no poly support. It might be easier to handle the poly subtraction in rtx_vector_builder::st= ep before entering into wide-int specific code? Andrea=