From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 717083896432; Fri, 7 May 2021 02:25:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 717083896432 From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/98348] [10 Regression] GCC 10.2 AVX512 Mask regression from GCC 9 Date: Fri, 07 May 2021 02:25:06 +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: 10.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: crazylht at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.4 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 May 2021 02:25:06 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98348 --- Comment #22 from Hongtao.liu --- (In reply to D=C3=A1vid Bolvansk=C3=BD from comment #20) > Some small regression (missed opportunity to use vptestnmd): >=20 > Current trunk >=20 > compare(unsigned int __vector(16)): > vpxor xmm1, xmm1, xmm1 > vpcmpd k0, zmm0, zmm1, 0 > vpmovm2d zmm0, k0 > ret >=20 > GCC 9.2 >=20 > compare(unsigned int __vector(16)): > vptestnmd k0, zmm0, zmm0 > vpmovm2d zmm0, k0 > ret >=20 >=20 > https://gcc.godbolt.org/z/5vK68jM3r A patch is posed at https://gcc.gnu.org/pipermail/gcc-patches/2021-April/568210.html=