• [gentoo-dev] [PATCH 1/3] profiles/desc: Add bmi* to CPU_FLAGS_X86

    From =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?@21:1/5 to All on Mon May 26 17:20:01 2025
    Add `bmi1` and `bmi2` flags to `CPU_FLAGS_X86`, as needed for `sci-ml/ollama::guru`.

    Signed-off-by: Michał Górny <mgorny@gentoo.org>
    ---
    profiles/desc/cpu_flags_x86.desc | 4 +++-
    1 file changed, 3 insertions(+), 1 deletion(-)

    diff --git a/profiles/desc/cpu_flags_x86.desc b/profiles/desc/cpu_flags_x86.desc
    index 6324e4a540e2..9fc7a47752f4 100644
    --- a/profiles/desc/cpu_flags_x86.desc
    +++ b/profiles/desc/cpu_flags_x86.desc
    @@ -1,4 +1,4 @@
    -# Copyright 1999-2024 Gentoo Authors
    +# Copyright 1999-2025 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # Whenever the flag name does not correspond to /proc/cpuinfo flags,
    @@ -28,6 +28,8 @@ avx512ifma - Use AVX-512 Integer Fused Multiply-Add instruction set
    avx512pf - Use AVX-512 prefetch instructions
    avx512vbmi - Use AVX-512 vector byte manipulation instructions
    avx512vl - Use AVX-512 vector-length instructions
    +bmi1 - Enable the first group of advanced bit manipulation extensions (ANDN, BEXTR, BLSI, BLSMSK, BLSR, TZCNT)
    +bmi2 - Enable the second group of advanced bit manipulation extensions (BZHI, MULX, PDEP, PEXT, RORX, SARX, SHLX, SHRX)