From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 656693858D33; Mon, 19 Dec 2022 13:13:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 656693858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671455588; bh=EGxqoYqycQmJor9JqpITQmuFPoHY7wKMJsjgi4cRHRE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GuL8C6zMo8ZzkS6sr2UPykl7SZ/yNDQBetRgTvD93hdlMG0LtbT78wSk9i81ZsWO/ CYcNweymzd7E6iQYgZAKpZATb+E4acVenqRV0axZccX4oydLSJzVxusZtayU5Va3XH 418Guv88pq81fv/hlYN9EiSVkUXxXbVwpCuoakOE= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108166] [12/13 Regression] Wrong code with -O2 since r12-8078-ga42aa68bf1ad745a Date: Mon, 19 Dec 2022 13:13:07 +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: 13.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108166 --- Comment #3 from Jakub Jelinek --- Testcase without includes: bool a, b; int d, c; const int & foo (const int &f, const int &g) { return !f ? f : g; } __attribute__((noipa)) void bar (int) { } int main () { c =3D foo (b, 0) > ((b ? d : b) ?: 8); a =3D b ? d : b; bar (a); if (a !=3D 0) __builtin_abort (); }=