From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0181A385801A; Mon, 17 Oct 2022 16:12:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0181A385801A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666023157; bh=XVv4yEzFEkMhyaHQYM43x5C4/GVeRb56NOb939IrZBY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BiSAITLn3ArccEFq0Z7Ymg7ifH7ulOyIHWAtyqhiKeixBA0GazLKkVtC2co0o59cg aM+66Q3PtuviWTeaN/vGDGk9UD4XU1a7r5mJUx2Kt1E4sEXZhUbx1Ng7gx+Z73W9sz rAciIUuTSJEkpn6pAAze9arEb3ugCdQltB/VnthQ= From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107273] wrong code at -O3 on x86_64-linux-gnu Date: Mon, 17 Oct 2022 16:12:35 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution cf_reconfirmed_on bug_status everconfirmed 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=3D107273 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|DUPLICATE |--- Last reconfirmed| |2022-10-17 Status|RESOLVED |REOPENED Ever confirmed|0 |1 --- Comment #6 from H.J. Lu --- (In reply to Hongtao.liu from comment #4) > Looks like the same issue as PR107172 since below change can also pass all > the testcase in the PR. >=20 > diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md > index 8e847520491..be815341af5 100644 > --- a/gcc/config/i386/i386.md > +++ b/gcc/config/i386/i386.md > @@ -21335,7 +21335,7 @@ (define_insn "*x86_movcc_0_m1_neg" > (define_expand "x86_movcc_0_m1_neg" > [(parallel > [(set (match_operand:SWI48 0 "register_operand") > - (neg:SWI48 (ltu:SWI48 (reg:CCC FLAGS_REG) (const_int 0)))) > + (neg:SWI48 (ltu:SWI48 (reg:CC FLAGS_REG) (const_int 0)))) > (clobber (reg:CC FLAGS_REG))])]) >=20 > (define_split This doesn't fix the -O3 issue in the first testcase nor the second testcas= e.=