]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86-64: Require BMI2 for AVX2 (raw|w)memchr implementations
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 3 Oct 2022 21:16:46 +0000 (23:16 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 3 Oct 2022 22:03:19 +0000 (00:03 +0200)
commit068c8d5aa994d868bb9307dc0d4c8e3f060b2cf3
treeb4b46c1abf9762ae8d92b920e75577051a49f5b4
parent35f655c89050cee82dc2d20a5a9a3d53f52a9eb8
x86-64: Require BMI2 for AVX2 (raw|w)memchr implementations

The AVX2 memchr, rawmemchr and wmemchr implementations use the 'bzhi'
and 'sarx' instructions, which belongs to the BMI2 CPU feature.

Fixes: acfd088a1963 ("x86: Optimize memchr-avx2.S")
Partially resolves: BZ #29611

Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
(cherry picked from commit e3e7fab7fe5186d18ca2046d99ba321c27db30ad)
sysdeps/x86_64/multiarch/ifunc-impl-list.c