On Tue, Jan 3, 2023 at 9:39 AM Hu, Lin1 <lin1...@intel.com> wrote: > > gcc/ChangeLog: > > * common/config/i386/cpuinfo.h (get_intel_cpu): Handle Emeraldrapids. > * common/config/i386/i386-common.cc: Add Emeraldrapids.
OK. Thanks, Uros. > --- > gcc/common/config/i386/cpuinfo.h | 2 ++ > gcc/common/config/i386/i386-common.cc | 2 ++ > 2 files changed, 4 insertions(+) > > diff --git a/gcc/common/config/i386/cpuinfo.h > b/gcc/common/config/i386/cpuinfo.h > index bde231c07ee..3729b0f14a5 100644 > --- a/gcc/common/config/i386/cpuinfo.h > +++ b/gcc/common/config/i386/cpuinfo.h > @@ -551,6 +551,8 @@ get_intel_cpu (struct __processor_model *cpu_model, > break; > case 0x8f: > /* Sapphire Rapids. */ > + case 0xcf: > + /* Emerald Rapids. */ > cpu = "sapphirerapids"; > CHECK___builtin_cpu_is ("corei7"); > CHECK___builtin_cpu_is ("sapphirerapids"); > diff --git a/gcc/common/config/i386/i386-common.cc > b/gcc/common/config/i386/i386-common.cc > index 7751265aff4..026926d8b41 100644 > --- a/gcc/common/config/i386/i386-common.cc > +++ b/gcc/common/config/i386/i386-common.cc > @@ -2465,6 +2465,8 @@ const pta processor_alias_table[] = > M_CPU_SUBTYPE (INTEL_COREI7_COOPERLAKE), P_PROC_AVX512F}, > {"sapphirerapids", PROCESSOR_SAPPHIRERAPIDS, CPU_HASWELL, > PTA_SAPPHIRERAPIDS, > M_CPU_SUBTYPE (INTEL_COREI7_SAPPHIRERAPIDS), P_PROC_AVX512F}, > + {"emeraldrapids", PROCESSOR_SAPPHIRERAPIDS, CPU_HASWELL, > PTA_SAPPHIRERAPIDS, > + M_CPU_SUBTYPE (INTEL_COREI7_SAPPHIRERAPIDS), P_PROC_AVX512F}, > {"alderlake", PROCESSOR_ALDERLAKE, CPU_HASWELL, PTA_ALDERLAKE, > M_CPU_SUBTYPE (INTEL_COREI7_ALDERLAKE), P_PROC_AVX2}, > {"raptorlake", PROCESSOR_ALDERLAKE, CPU_HASWELL, PTA_ALDERLAKE, > -- > 2.18.2 >