From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) by sourceware.org (Postfix) with ESMTPS id BC5DC3858C56 for ; Mon, 17 Oct 2022 01:13:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BC5DC3858C56 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-3573ed7cc15so94454707b3.1 for ; Sun, 16 Oct 2022 18:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=wDe7d5l17R/XF9SAntRw3vvvn7Go7edUGbtbYFx3hrY=; b=SsaEs+LgDeCcpxQ4jmvbVk43V28m1SP2pf/xqYhJVpWnVpGa3UMwnAV+FuzIC0NDDj btaqe9VyciVLqU7Gvv7gpMlZ0zU2VUjVneloQYAA3VKWeTeP2vqr1a1+XNc9zlzlwNYh O/5NvdoLppPC0kzbNzs4X7XRGMD3WiT68Zzq8/+IY3Rjh+se0Vk+r4cMj/xCSJvY7LmH jIWYD/8JUm8V3BqAjDt4jfHdyHCQhEEKsZ2ogWCs0wut9q8l8FIpTCBnpHFBettEUQ9f 0zAL6MozmQQiH4SkIZFGjZOmyfFxQ7Z1FDs0Fw6n2e0wEdp/6k8se0WDxWvJXkZjJ9cl G/yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wDe7d5l17R/XF9SAntRw3vvvn7Go7edUGbtbYFx3hrY=; b=ZUoy1aEQ2nAzQbrT4RXyp5shWR4d03GYkbPeWUzrPSvSI49SfpDLr/ky5mE8TA2+Ta dEBYqmgw8FdICx6dRI6lfAfPifaYZVX/yxIXrh3H+YQpPX8c9Wl4DGBLxc4OXnqNDoGc nB0x8rqSaI08g7T02fSs6m6UEvGNqoP8+vT1lkdrJP+unXWq/Ol7eZKPQbJZ5IhUAosQ 5GpYAHi50KBv7b9BJuh4YRI2I80rodVhZ/R+X5wGucusSmzTNxplHP/tSlw2gUMmBTbs oSAhAOB17Ofubc17lXTf3V10Zxq8FM07nUM53kKRg2Sd8rYi7xZFKxcvzgleIAAs+QAM SMTw== X-Gm-Message-State: ACrzQf1Ik96Ztfb9L1gYRiS6BridrtwNJaHtvPg0nOQ7B+xGNqvPe94p A65vi5jJlJ/bcxIyCZ924NQoj2UU8SrUL4GJgz0= X-Google-Smtp-Source: AMsMyM56qL1Gser40sLGjxpCSXAvEY2gl6i4B5/ZbFeUBtoJ8Zk83y8kui/BWKSDzWx14itNuD9iubKW/oNVedpzvG4= X-Received: by 2002:a81:9e51:0:b0:354:8aab:84ac with SMTP id n17-20020a819e51000000b003548aab84acmr7241128ywj.241.1665969214902; Sun, 16 Oct 2022 18:13:34 -0700 (PDT) MIME-Version: 1.0 References: <20221014074058.7709-1-haochen.jiang@intel.com> <20221014074058.7709-2-haochen.jiang@intel.com> In-Reply-To: <20221014074058.7709-2-haochen.jiang@intel.com> From: Hongtao Liu Date: Mon, 17 Oct 2022 09:13:23 +0800 Message-ID: Subject: Re: [PATCH 1/2] Initial Raptorlake Support To: Haochen Jiang Cc: gcc-patches@gcc.gnu.org, hongtao.liu@intel.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, Oct 14, 2022 at 3:41 PM Haochen Jiang via Gcc-patches wrote: > > gcc/ChangeLog: > > * common/config/i386/cpuinfo.h: > (get_intel_cpu): Handle Raptorlake. > * common/config/i386/i386-common.cc: > (processor_alias_table): Add Raptorlake. Ok. > --- > 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, > -- > 2.18.1 > -- BR, Hongtao