From: Hu, Lin1 Date: Thu, 15 Dec 2022 07:51:44 +0000 (+0800) Subject: Initial Emeraldrapids Support X-Git-Tag: upstream/13.1.0~2257 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=44baa34157cf81306be23eacece751aa020985d4;p=platform%2Fupstream%2Fgcc.git Initial Emeraldrapids Support gcc/ChangeLog: * common/config/i386/cpuinfo.h (get_intel_cpu): Handle Emeraldrapids. * common/config/i386/i386-common.cc: Add Emeraldrapids. --- diff --git a/gcc/common/config/i386/cpuinfo.h b/gcc/common/config/i386/cpuinfo.h index 33c79d7..9fa6d31 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 660a977..f0992ef 100644 --- a/gcc/common/config/i386/i386-common.cc +++ b/gcc/common/config/i386/i386-common.cc @@ -2062,6 +2062,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,