From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7191C3858289; Mon, 17 Oct 2022 03:26:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7191C3858289 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665977215; bh=PQMHxeTBrCLdlF/Q4JpZosuEMsvkt4qKaciOBiz0fXE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jBCEperlvFpyPaoha83f4DudjnMIeGp7B3G1tCBuhqN+hFw86N9U56H1B0nl0B/Y+ 9hQMce3Z4LhWH1fzfQRg51XfySjaFi7a2ujxrZdfwWnKZzolCLjmyyN7pefsAZN8A+ BUelieWjefcpA56OglgFfyAyIYuP6GbXPjEjayeE= From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107269] wrong code at -O1 and above with "-fno-tree-ccp" on x86_64-linux-gnu Date: Mon, 17 Oct 2022 03:26:55 +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: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: crazylht at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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: cc 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=3D107269 Hongtao.liu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |crazylht at gmail dot com --- Comment #3 from Hongtao.liu --- Looks like the same issue as PR107172 since below change can also pass all = the testcase in the PR. 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))])]) (define_split=