From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0C798388E834; Wed, 27 Jan 2021 11:28:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0C798388E834 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/98849] [11 Regression] ICE in expand_shift_1, at expmed.c:2658 since g:7432f255b70811dafaf325d9403 Date: Wed, 27 Jan 2021 11:28:23 +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: 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: 11.0 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, 27 Jan 2021 11:28:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98849 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek --- tree-vect-generic.c claims that /* The rtl expander will expand vector/scalar as vector/vector if necessary. Pick one with wider vector type. */ but that doesn't seem to be the case (at least on this testcase and this target). I only see the vashl* used if: /* Determine whether the shift/rotate amount is a vector, or scalar. If = the shift amount is a vector, use the vector/vector shift patterns. */ if (VECTOR_MODE_P (mode) && VECTOR_MODE_P (op1_mode)) { lshift_optab =3D vashl_optab; rshift_arith_optab =3D vashr_optab; rshift_uns_optab =3D vlshr_optab; lrotate_optab =3D vrotl_optab; rrotate_optab =3D vrotr_optab; }=20=20=20=20 So, shall tree-vect-generic.c stop relying on that and broadcast the scalar shift to vector if vector x vector but not vector x scalar shift/rotate is supported? Or shall expmed.c do the broadcast? Or are targets required to support the vector x scalar shift/rotate optabs = if they do support vector x vector?=