about summary refs log tree commit diff
path: root/sysdeps/x86_64/isa.h
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2022-10-03 23:46:11 +0200
committerAurelien Jarno <aurelien@aurel32.net>2022-10-03 23:46:11 +0200
commitfc7de1d9b99ae1676bc626ddca422d7abee0eb48 (patch)
treeb176de5b939945812d7542fc1bf34c24f92c3a42 /sysdeps/x86_64/isa.h
parent4d64c6445735e9b34e2ac8e369312cbfc2f88e17 (diff)
downloadglibc-fc7de1d9b99ae1676bc626ddca422d7abee0eb48.tar.gz
glibc-fc7de1d9b99ae1676bc626ddca422d7abee0eb48.tar.xz
glibc-fc7de1d9b99ae1676bc626ddca422d7abee0eb48.zip
x86-64: Require BMI2 for AVX2 strncmp implementation
The AVX2 strncmp implementations uses the 'bzhi' instruction, which
belongs to the BMI2 CPU feature.

NB: It also uses the 'tzcnt' BMI1 instruction, but it is executed as BSF
as BSF if the CPU doesn't support TZCNT, and produces the same result
for non-zero input.

Partially fixes: b77b06e0e296 ("x86: Optimize strcmp-avx2.S")
Partially resolves: BZ #29611

Reviewed-by: Noah Goldstein  <goldstein.w.n@gmail.com>
Diffstat (limited to 'sysdeps/x86_64/isa.h')
0 files changed, 0 insertions, 0 deletions