]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86-64: Require BMI2 and LZCNT for AVX2 memrchr implementation
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 21:53:32 +0000 (23:53 +0200)
commit02aa1f4a5b6955f2cb384daa4e520d9c8078a078
tree54df82560dc0a4115e6ce70bcaf4dec344e2a3af
parentc85a45acacd6f2ecaa66128364e5621e0cdcab1b
x86-64: Require BMI2 and LZCNT for AVX2 memrchr implementation

The AVX2 memrchr implementation uses the 'shlxl' instruction, which
belongs to the BMI2 CPU feature and uses the 'lzcnt' instruction, which
belongs to the LZCNT CPU feature.

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

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