From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2AC2B385841A; Tue, 11 Oct 2022 20:26:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2AC2B385841A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665519984; bh=ju+daXMoYZ5OquPdK+9btULNISa5EhGK/IsjCHb/bUk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DTvO0rMzTtEM3oJ+HhejqRVXePr95iYCdl3F0WXm6xs7qdsyJAQZok1V013ckzQOJ pqp9Jn2/JEOvkA1KO/0+wudipv34LVmuwmwPKhNwklrOLiNLvb4dh5KGM+aQOQZyLs UGHbL44bJ7xr349K1E1APmrAo9gLKqb3Rs5TEZsw= From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107172] [13 Regression] wrong code with "-O1 -ftree-vrp" on x86_64-linux-gnu since r13-1268-g8c99e307b20c502e Date: Tue, 11 Oct 2022 20:26: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: 13.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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=3D107172 --- Comment #16 from Segher Boessenkool --- Hi Roger, (In reply to Roger Sayle from comment #15) > Yes, a COMPARE rtx can be used to set various flags on x86, but many other > operations also legitimately set and/or use MODE_CC, often in a parallel > with the primary operation. *Any* MODE_CC setter sets the flags as-if from a compare. This is what MODE_CC *is*. Setting something as ne:CC and then using it as somethingelse:CC has no defined meaning.=