From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7888) id 77A963858D32; Mon, 17 Oct 2022 02:49:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 77A963858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665974983; bh=EhmGSxlvoFZbG3gjUrMKUo2CIkLZFzJWX0G+WOwTDRY=; h=From:To:Subject:Date:From; b=v/bb/+igZDTkH4oyG4Yq44jHaku1jVbujTgneSdvKXwNRyAZOqd7Fon5PCFIUotHZ ZMGc/1lxpqzHs9QEy54WXH3Jlgc8jd9Kgp/tsTHbmAedHBKxpj1J7ebs/pq3V6BUYQ ulDx0cAI1Y9w0nxo8VNQG8Zjl1J489GSjON5Yn4E= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Haochen Jiang To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-3320] Initial Raptorlake Support X-Act-Checkin: gcc X-Git-Author: Haochen Jiang X-Git-Refname: refs/heads/master X-Git-Oldrev: aedf7ebf12ec7d9d01861469cb92b03a838f5a9e X-Git-Newrev: 470a0659b508d684148f362c4dc0eccf5a83a23e Message-Id: <20221017024943.77A963858D32@sourceware.org> Date: Mon, 17 Oct 2022 02:49:43 +0000 (GMT) List-Id: https://gcc.gnu.org/g:470a0659b508d684148f362c4dc0eccf5a83a23e commit r13-3320-g470a0659b508d684148f362c4dc0eccf5a83a23e Author: Haochen Jiang Date: Fri Sep 16 13:59:01 2022 +0800 Initial Raptorlake Support gcc/ChangeLog: * common/config/i386/cpuinfo.h: (get_intel_cpu): Handle Raptorlake. * common/config/i386/i386-common.cc: (processor_alias_table): Add Raptorlake. Diff: --- 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 bbced8a23b9..e759e6f89fa 100644 --- a/gcc/common/config/i386/cpuinfo.h +++ b/gcc/common/config/i386/cpuinfo.h @@ -496,6 +496,8 @@ get_intel_cpu (struct __processor_model *cpu_model, case 0x9a: case 0xbf: /* Alder Lake. */ + case 0xb7: + /* Raptor Lake. */ cpu = "alderlake"; CHECK___builtin_cpu_is ("corei7"); CHECK___builtin_cpu_is ("alderlake"); diff --git a/gcc/common/config/i386/i386-common.cc b/gcc/common/config/i386/i386-common.cc index c0c2ad74d87..8d346245ddd 100644 --- a/gcc/common/config/i386/i386-common.cc +++ b/gcc/common/config/i386/i386-common.cc @@ -1929,6 +1929,8 @@ const pta processor_alias_table[] = 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, + M_CPU_SUBTYPE (INTEL_COREI7_ALDERLAKE), P_PROC_AVX2}, {"bonnell", PROCESSOR_BONNELL, CPU_ATOM, PTA_BONNELL, M_CPU_TYPE (INTEL_BONNELL), P_PROC_SSSE3}, {"atom", PROCESSOR_BONNELL, CPU_ATOM, PTA_BONNELL,