From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A0C303858C29; Mon, 13 Nov 2023 06:10:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A0C303858C29 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699855802; bh=0kmyK/zKsj0U1sM1rAemYmq4p0pdKe6bcvj6vWt89xk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Re4MZv8Fqbxqh3cztrA/RT2dipjFDlslRD/TDNhUFO3LQYy0LS6dU7SbXRwB1Kp4t O4ythPN0sgwT8cRJLG1Y96NNeWwqSuuGHOUC62XqmgTprliLEy8NYIepNJcakcVa9E taxf8BivxqburhuhdjFk8hPyte1k8T6IY1RlGzQ8= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/112505] [12/13/14 Regression] internal compiler error: in build_vector_from_val, at tree.cc:2104 Date: Mon, 13 Nov 2023 06:10:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code, needs-bisection X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work keywords everconfirmed cf_known_to_fail target_milestone short_desc bug_status cf_reconfirmed_on component 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112505 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |11.1.0, 11.4.0 Keywords| |ice-on-valid-code, | |needs-bisection Ever confirmed|0 |1 Known to fail| |12.1.0 Target Milestone|--- |12.4 Summary|GCC: 14: internal compiler |[12/13/14 Regression] |error: in |internal compiler error: in |build_vector_from_val, at |build_vector_from_val, at |tree.cc:2104 |tree.cc:2104 Status|UNCONFIRMED |NEW Last reconfirmed| |2023-11-13 Component|c |tree-optimization --- Comment #1 from Andrew Pinski --- Simplier testcase: ``` short int w9; struct T { short a : 14; int b; }; struct T v; void zc() { for(int i =3D 0; i < 4; i ++) w9 *=3D v.b ? v.a-- < 0 : 0; } ``` Just compiler at `-O3 -fno-vect-cost-model` _30; vector(4) unsigned short _31; ... _31 =3D {_60, _59, _2, _30}; _52 =3D (vector(4) signed short) _31;=