diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2022-10-03 23:46:11 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2022-10-03 23:47:49 +0200 |
commit | 7afbd1e56acb721031bffd876f275dcb1af7e530 (patch) | |
tree | de64a345e917480dd7a733a1c1f1e28b5f90fc10 /sysdeps/x86_64/tst-rsi-strlen.c | |
parent | 46479e5d10ed87825aa277da158d6a687974518b (diff) | |
download | glibc-7afbd1e56acb721031bffd876f275dcb1af7e530.tar.gz glibc-7afbd1e56acb721031bffd876f275dcb1af7e530.tar.xz glibc-7afbd1e56acb721031bffd876f275dcb1af7e530.zip |
x86-64: Require BMI2 for AVX2 strcmp implementation
The AVX2 strcmp implementation 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> (cherry picked from commit 4d64c6445735e9b34e2ac8e369312cbfc2f88e17)
Diffstat (limited to 'sysdeps/x86_64/tst-rsi-strlen.c')
0 files changed, 0 insertions, 0 deletions