[Bug target/99941] m_ALDERLAKE is missing from m_CORE_AVX2

crazylht at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Apr 7 03:17:24 GMT 2021


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

--- Comment #2 from Hongtao.liu <crazylht at gmail dot com> ---
(In reply to H.J. Lu from comment #0)
> i386-options.c has
> 
> #define m_ALDERLAKE (HOST_WIDE_INT_1U<<PROCESSOR_ALDERLAKE)
> #define m_CORE_AVX512 (m_SKYLAKE_AVX512 | m_CANNONLAKE \
>                        | m_ICELAKE_CLIENT | m_ICELAKE_SERVER | m_CASCADELAKE
> \
>                        | m_TIGERLAKE | m_COOPERLAKE | m_SAPPHIRERAPIDS)
> #define m_CORE_AVX2 (m_HASWELL | m_SKYLAKE | m_CORE_AVX512)
> 
> Should m_CORE_AVX2 include m_ALDERLAKE?

Let's adding m_ALDERLAKE to m_CORE_AVX2 first, if we want to do some balance
for small core and remove some tunes, we just need to mask off m_ALDERLAKE for
that specific tune.


More information about the Gcc-bugs mailing list