From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0C49C3858D39; Wed, 28 Jun 2023 00:47:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0C49C3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687913235; bh=pErqhTtwqysFK8CjYd/62mX6wcpOaE591u6gRGWEN30=; h=From:To:Subject:Date:In-Reply-To:References:From; b=o0/fC4H+ikZtdhU9bZlmkRenlRra0Q/AgYBtPKnyJy60PjeNhXWSEcSI5QpaGz71y 4EFs9dc64UZEdWV1wguolqXYoFtwaJOvoced0vTX/5YFX41UMZDnDarR/948hrCiHb xrhKVfBAq6dGsTWNmMXJb/uudjcO+Fz11ntdPq8s= From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/110202] _mm512_ternarylogic_epi64 generates unnecessary operations Date: Wed, 28 Jun 2023 00:47:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: crazylht at gmail dot com X-Bugzilla-Status: NEW 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=3D110202 --- Comment #8 from Hongtao.liu --- (In reply to Alexander Monakov from comment #7) > Note that vpxor serves as a dependency-breaking instruction (see PR 11043= 8). > So in negate1 we do the right thing for the wrong reasons, and in negate2= we > can cause a substantial stall if the previous computation of xmm0 has a > non-trivial dependency chain. For this one, we can load *a into %zmm0 to avoid false_dependence. vmovdqau ZMMWORD PTR [rdi], zmm0 vpternlogq zmm0, zmm0, zmm0, 85=