On Fri, Aug 21, 2026 at 12:08 PM Dipesh Sharma <[email protected]> wrote:
>
>
> Hi,
>
> Addressed comments from H.J. Lu.
>
> - Moved bit_AVX512BMM to extended features section.
> - Added test for __builtin_cpu_supports ("avx512bmm") compile and runtime
> tests.
>
> gcc/ChangeLog:
>
> * common/config/i386/cpuinfo.h (get_available_features): Detect
> AVX512BMM from extended features instead of standard leaf.
> * config/i386/cpuid.h (bit_AVX512BMM): Move to extended features
> section.
>
> gcc/testsuite/ChangeLog:
>
> * gcc.target/i386/avx512bmm-check-1.c: New test.
> * gcc.target/i386/avx512bmm-check-2.c: New test.
> * gcc.target/i386/avx512bmm-check-3.c: New test.
> @@ -1205,6 +1195,8 @@ get_available_features (struct __processor_model
> *cpu_model,
> {
> set_feature (FEATURE_PREFETCHI);
> }
> + if (eax & bit_AVX512BMM)
> + set_feature (FEATURE_AVX512BMM);
> }
While there, please also remove curly braces from FEATURE_PREFETCHI.
OK.
Thanks,
Uros.