From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 371033858C20; Fri, 26 Jan 2024 03:37:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 371033858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706240227; bh=hWl/a3z/pnIrl2i6XLZQ6f4WeH0V0GMWAAb+CMi4vAs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Y/7Mx8uMxymsZAWVj11TPc+AzceqywKjLp3snGwM+bLEo8OVxIeKcE3ePjVqB9e5G eIzCdumrUT2/T+/7EZA/ZoMp4QJlNVUDDU+TqZ+KvBevi3GR5dpuCuXr3n4ZZP34/g /GDLMrgzrt0Uxw4CGBgcP8FLG6Q23uYICZ6uEi0I= From: "liuhongt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113609] EQ/NE comparison between avx512 kmask and -1 can be optimized with kxortest with checking CF. Date: Fri, 26 Jan 2024 03:37:07 +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: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: liuhongt 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=3D113609 --- Comment #1 from Hongtao Liu --- Since they're different modes, CCZ for cmp, but CCS for kortest, it could be diffcult to optimize it in RA stage by adding alternatives(like we did for compared to 0). So the easy way could be adding peephole to hanlde that.=