]> 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 22:03:19 +0000 (00:03 +0200)
commit38e321f4ac70b6aecb35a8af7d1a2fbe366ab482
tree9b94d5b5938b7d112b64345a88bef0f325c0ea58
parent068c8d5aa994d868bb9307dc0d4c8e3f060b2cf3
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