From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 851E7385840C; Mon, 14 Feb 2022 08:53:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 851E7385840C From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/104511] [10/11/12 Regression] ICE: in emit_move_insn, at expr.cc:4010 with __builtin_convertvector() at -O Date: Mon, 14 Feb 2022 08:53:33 +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: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on target_milestone everconfirmed assigned_to bug_status 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: Mon, 14 Feb 2022 08:53:33 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104511 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-02-14 Target Milestone|--- |10.4 Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot = gnu.org Status|UNCONFIRMED |ASSIGNED --- Comment #1 from Richard Biener --- vector lowering produces _5 =3D BIT_FIELD_REF ; _6 =3D (_Decimal32) _5; _7 =3D BIT_FIELD_REF ; _8 =3D (_Decimal32) _7; _9 =3D BIT_FIELD_REF ; _10 =3D (_Decimal32) _9; _11 =3D BIT_FIELD_REF ; _12 =3D (_Decimal32) _11; d_2 =3D {_6, _8, _10, _12}; where the BIT_FIELD_REFs extract _Float64. Then forwprop matches the CTOR as VEC_PACK_TRUNC_EXPR from vector(2) _Float64 to vetor(4) _Decimal32. _13 =3D BIT_FIELD_REF ; _14 =3D BIT_FIELD_REF ; d_2 =3D VEC_PACK_TRUNC_EXPR <_13, _14>; I'm not sure if decimal FP vectors are a thing on powerpc64le and what their ABI are. Maybe the testcase should be rejected. Clearly the forwprop code is wrong here, since the vec_pack_trunc optab has just a single mode there's no way to convert between DFP and FP. I'll fix that, not sure if that will fix everything.=