https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89929

--- Comment #12 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Martin Liška from comment #11)
> Agree with Nick, one should be able to have clones with specific AVX512
> flavors.
> I can prepare patch for it, only issues is the priority as I already
> mentioned.
> 

Priorities are used to choose processors for multi-versioned functions.
Please see how to use avx512XXX to distinguish:

const wide_int_bitmask PTA_SKYLAKE_AVX512 = PTA_SKYLAKE | PTA_AVX512F
const wide_int_bitmask PTA_CASCADELAKE = PTA_SKYLAKE_AVX512 | PTA_AVX512VNNI;
const wide_int_bitmask PTA_CANNONLAKE = PTA_SKYLAKE | PTA_AVX512F
const wide_int_bitmask PTA_ICELAKE_CLIENT = PTA_CANNONLAKE | PTA_AVX512VNNI
const wide_int_bitmask PTA_ICELAKE_SERVER = PTA_ICELAKE_CLIENT | PTA_PCONFIG
const wide_int_bitmask PTA_KNL = PTA_BROADWELL | PTA_AVX512PF | PTA_AVX512ER
const wide_int_bitmask PTA_KNM = PTA_KNL | PTA_AVX5124VNNIW

Reply via email to