From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 596723857C76; Wed, 28 Sep 2022 15:10:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 596723857C76 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664377815; bh=V3Z1scnh8pEtoTaRtVzMLNpqQoIfASq261yHgybIPXo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kQf0adUg4EuwnAvfNd93ZB2qGLG7gW18SaLx4P48eLfOjSGzTTn7S7hDL7Tb+f2Jn XWRbrbcmjSHjo+xKBoBSAOb1OSyPLkyyq88NAkndhltDqv/BPbnD+O+FUkonuHJ04Z S9HGqATm1wusK2WVS281W9l7kuOS2pzin/JWtsXQ= From: "aurelien at aurel32 dot net" To: glibc-bugs@sourceware.org Subject: [Bug string/29611] Optimized AVX2 string functions unconditionally use BMI2 instructions Date: Wed, 28 Sep 2022 15:10:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: string X-Bugzilla-Version: 2.31 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: aurelien at aurel32 dot net X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: goldstein.w.n at gmail dot com 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29611 --- Comment #11 from Aurelien Jarno --- Before trying to fix that in older branches, we should start by fixing mast= er. 3 groups of functions are using BMI2: memchr, strchr and strlen. * strchr is fixed by this commit: commit 83c5b368226c34a2f0a5287df40fc290b2b34359 Author: H.J. Lu Date: Mon Apr 19 10:45:07 2021 -0700 x86-64: Require BMI2 for strchr-avx2.S * strlen is fixed by this commit: commit aaa23c35071537e2dcf5807e956802ed215210aa Author: Noah Goldstein Date: Mon Apr 19 19:36:07 2021 -0400 x86: Optimize strlen-avx2.S * memchr is not yet fixed in master So the first step is to fix memchr. --=20 You are receiving this mail because: You are on the CC list for the bug.=