From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 57A2A3921790; Wed, 7 Dec 2022 16:45:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 57A2A3921790 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670431519; bh=CEslbOrhN6JB0GWEtGF6H1Ky5Pyypuls7K0p/X9P4tA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qE+GGS0wVy9QvOADrPGQO1xDb6Kh/sh6yDXHzmleSJTqIS5QWqnqgJK82amV/wuky aAIBwKpaXqePoWpp2gLRfm6KSU1v7HbWzQVZwtuhUhIC0reQTVHVky8EAL4mMGK9XS yxW5OkW5Dy4WXyQuhL6/nYwfUzfjoJ4pYu6gXxUs= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108007] wrong code at -Os and above with "-fno-dce -fno-tree-dce" on x86_64-linux-gnu Date: Wed, 07 Dec 2022 16:45:19 +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: pinskia at gcc dot gnu.org 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: 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=3D108007 --- Comment #1 from Andrew Pinski --- #(insn:TI 36 66 40 8 (set (reg:CCGC 17 flags) # (compare:CCGC (mem:SI (const_int 0 [0]) [1 *removed_return.17_12(D= )+0 S4 A32]) # (reg:SI 1 dx [orig:83 b.0_5 ] [83]))) "/app/example.cpp":20:13= 11 {*cmpsi_1} # (expr_list:REG_UNUSED (reg:CCGC 17 flags) # (nil))) cmpl %edx, 0 # 36 [c=3D8 l=3D7] *cmpsi_1/0=