From patchwork Tue Jan 3 08:37:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Pan2 via Gcc-patches" X-Patchwork-Id: 38321 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4506241wrt; Tue, 3 Jan 2023 00:40:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXu1oSxKpRP435cNZRSkr1cvWuC9lgAUYLjB99UzteyePY5b4UnUHk+E5/v0u3qF0YJEXwK2 X-Received: by 2002:a17:906:656:b0:7ee:1596:4b6 with SMTP id t22-20020a170906065600b007ee159604b6mr35970889ejb.59.1672735224704; Tue, 03 Jan 2023 00:40:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672735224; cv=none; d=google.com; s=arc-20160816; b=Yo3d1yvFDp2aR5xqggYElN6hiz7587b9VO5TtDdTbMo0i0roKfYrBg+cyOkaAIjx1a EK23hgGOOcNJL8AZhk/5rBeY/a/RKvvhGHISfuJf13MxPZgEvhzT1TtFDv1aya7SAdMj Vq3WT6yw2RrFjcMtnHBuVguXUWdUZ11CnWvUPzWXHdHbAcR1//Rj3tAAmsKoMRWIlLld J1oq6ExS7YlqDvQJwxz1sLLFhZAZUXJdUFtiIk2jHhBCDbpN3U9ZG4si31qg1t7+azW7 hDXATSGPx1rZpRF2z1tEMlNZJ/de6UpNZj4mzwhzqHuAlM39ej9Y6244ZtZ5MPjbHss6 ia6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:message-id:date :subject:cc:to:delivered-to:dkim-signature:dkim-filter; bh=etYjO55NyC3Uw+ZQxk4fSkhaGMfnCPIyf8Vl+ucbGhk=; b=SjAtTjO+PunK7zXtZQCf/b+G2NiChXGEUlXQxyzwntoVfh5D4kZ3FujnU9Yx5YKGeQ 8PliAFuGLpebMZVMLz+n1AhsHUnnmHiSRF8xZhz66XLOC9tdp1cDevvvhbGPMGOMNxf2 5TKcfGr3H+bVz72/a3qwH36zEi20UuZiise4GI8GJC4sEOr+c7Ws0wHdEKhYMUdZ2JV9 Euk+uPY4wI7oiMNAIiIXAX6Us2kqrzZ5sPg+Qjc7/wf1ssN59EoIPc6xke2/TukeFku7 cBy2zx9at6OUT5rxu/M4eVScea6DTsa++7g+m/wnrYcqkqZp0pRB5kmzAvu0eMBhPaay JnTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=tS0bIWjS; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id sz15-20020a1709078b0f00b007adb2862222si21391783ejc.828.2023.01.03.00.40.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 00:40:24 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=tS0bIWjS; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 91378385841A for ; Tue, 3 Jan 2023 08:40:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 91378385841A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1672735218; bh=etYjO55NyC3Uw+ZQxk4fSkhaGMfnCPIyf8Vl+ucbGhk=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=tS0bIWjSss+yY/6WqC1Fh5Kjca9ufuRebIz0Q+rHuUErwoLEy5MAzygkdinTEsvB/ iAPD1M9ohW1xiv/P/shK//TJqM8W2R5IEj+rRtS4LOqM7M07fwCeoaj4vbRXfmy4le aYWWwx2AqvFepqcs5WwbC8uLeUAkKciNqUFxquVI= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by sourceware.org (Postfix) with ESMTPS id EA00B3858D1E for ; Tue, 3 Jan 2023 08:39:26 +0000 (GMT) X-IronPort-AV: E=McAfee;i="6500,9779,10578"; a="348832790" X-IronPort-AV: E=Sophos;i="5.96,296,1665471600"; d="scan'208";a="348832790" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2023 00:39:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10578"; a="900092876" X-IronPort-AV: E=Sophos;i="5.96,296,1665471600"; d="scan'208";a="900092876" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by fmsmga006.fm.intel.com with ESMTP; 03 Jan 2023 00:39:24 -0800 Received: from shliclel314.sh.intel.com (shliclel314.sh.intel.com [10.239.240.214]) by shvmail03.sh.intel.com (Postfix) with ESMTP id 1DFA61007808; Tue, 3 Jan 2023 16:39:24 +0800 (CST) To: gcc-patches@gcc.gnu.org Cc: hongtao.liu@intel.com, ubizjak@gmail.com Subject: [PATCH 1/4] i386: Remove Meteorlake's family_model Date: Tue, 3 Jan 2023 16:37:22 +0800 Message-Id: <20230103083723.3395300-1-lin1.hu@intel.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: "Hu, Lin1 via Gcc-patches" From: "Li, Pan2 via Gcc-patches" Reply-To: "Hu, Lin1" Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753990010863626229?= X-GMAIL-MSGID: =?utf-8?q?1753990010863626229?= Hi all, This patch aims to modified meteorlake's family_model. Regtested on x86_64-pc-linux-gnu. Ok for trunk? BRs, Lin gcc/ChangeLog: * common/config/i386/cpuinfo.h (get_intel_cpu): Remove case 0xb5 for meteorlake. --- gcc/common/config/i386/cpuinfo.h | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/common/config/i386/cpuinfo.h b/gcc/common/config/i386/cpuinfo.h index 099a02467e6..bde231c07ee 100644 --- a/gcc/common/config/i386/cpuinfo.h +++ b/gcc/common/config/i386/cpuinfo.h @@ -540,7 +540,6 @@ get_intel_cpu (struct __processor_model *cpu_model, /* Alder Lake. */ case 0xb7: /* Raptor Lake. */ - case 0xb5: case 0xaa: case 0xac: /* Meteor Lake. */ From patchwork Tue Jan 3 08:37:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Pan2 via Gcc-patches" X-Patchwork-Id: 38322 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4506263wrt; Tue, 3 Jan 2023 00:40:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXsk5b+4QU5X9+CpylVKsUYe7mfcMubPpmqtbp4BLoEb4e3TxTt48Pa4ZCbU/mnRmvcuvTdb X-Received: by 2002:a17:906:dff5:b0:7ef:b60e:cb02 with SMTP id lc21-20020a170906dff500b007efb60ecb02mr37816894ejc.48.1672735228854; Tue, 03 Jan 2023 00:40:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672735228; cv=none; d=google.com; s=arc-20160816; b=YRaNogmV0+jt5aWVaGp51/XAWTCyxAx4lBIYAxuur4f0cF1glFi4+MMQy/vYsWt6Hg K64xtQ9MjHaxnk+dMpTsOzmRWGhiq2ILOCTzdTt5oooXfTQCgPlAz7KIXyHxix7mAzCv MstsNGw7YKdwo/r14pfC0oh9/xKJvWOJa5WTy+ic7IWlbz1wPTZMB4rxDUOPq/Gz5G4U ybW2xk8j9dch9UcwUXBDH7YjWBiyaCS9YFQ/Fo9+JCk3f3ORG8G2Hp9d3TFs8s28Nnow SSGjXJPDT914YMEEAVQAHzdjKgqM0PZZFmK5nv9y66JVRQpzyDWmT3kpko1YWbcz0w1F /0lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:delivered-to :dkim-signature:dkim-filter; bh=ycb1M2MmS7/qGW76YDBW1zv3tSa2/tONuXkBoLcF2c8=; b=VTiuGFyZMzOp0kLUzEjb7pBPUaSHFeDMQHXyEJDnI/v8edeBlMpEcOkf1A16DoIe00 kBaKSP+AMyZI8NWehF66GWZlwYesUNhWHNlx9HGFFj59tS2bS11oUssFtN+n3Sl1oKiD n7nUFZQmx+6+sAP4uzpdbr122Osz/Q+HgkZkykbHl+v3R7a7uovXLwt27PH35/p6mJ8h 6piKYJlyeJlRpvnFRrxUuWRgZzmwWNzWnfdyX0tky5yGv9Hd4uYjKgNU7yBk+sFpnrIQ Dd+K4TB4YS6Ia8301EY6NSXru8gvWykvreSf8SUM7sfZoeW7mvR8cBg4DsSb1JBy7zkx Yxow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=ajW79U7c; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id hs8-20020a1709073e8800b007c170f6b32dsi29933926ejc.516.2023.01.03.00.40.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 00:40:28 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=ajW79U7c; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1A93338582A1 for ; Tue, 3 Jan 2023 08:40:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1A93338582A1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1672735222; bh=ycb1M2MmS7/qGW76YDBW1zv3tSa2/tONuXkBoLcF2c8=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=ajW79U7c2/fMhV4zI28rzaC6Jpoxdzr0puAoY1yJjmABWAOZIQ6H/H/JQdQCCNbxC Tezokvy31K0L5ZKvaOA2RcTXiiVHApil5xyWZgEoH1JRHKWNyS+xcG4hO0ZNAcibGz pMbgsZJQohpuLLOH7KaqHB+resPwim14+Lp0Sm2M= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by sourceware.org (Postfix) with ESMTPS id F20193858D32 for ; Tue, 3 Jan 2023 08:39:27 +0000 (GMT) X-IronPort-AV: E=McAfee;i="6500,9779,10578"; a="348832795" X-IronPort-AV: E=Sophos;i="5.96,296,1665471600"; d="scan'208";a="348832795" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2023 00:39:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10578"; a="900092878" X-IronPort-AV: E=Sophos;i="5.96,296,1665471600"; d="scan'208";a="900092878" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by fmsmga006.fm.intel.com with ESMTP; 03 Jan 2023 00:39:24 -0800 Received: from shliclel314.sh.intel.com (shliclel314.sh.intel.com [10.239.240.214]) by shvmail03.sh.intel.com (Postfix) with ESMTP id 29CE51007809; Tue, 3 Jan 2023 16:39:24 +0800 (CST) To: gcc-patches@gcc.gnu.org Cc: hongtao.liu@intel.com, ubizjak@gmail.com Subject: [PATCH 2/4] Initial Emeraldrapids Support Date: Tue, 3 Jan 2023 16:37:23 +0800 Message-Id: <20230103083723.3395300-2-lin1.hu@intel.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20230103083723.3395300-1-lin1.hu@intel.com> References: <20230103083723.3395300-1-lin1.hu@intel.com> X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: "Hu, Lin1 via Gcc-patches" From: "Li, Pan2 via Gcc-patches" Reply-To: "Hu, Lin1" Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753990014957889751?= X-GMAIL-MSGID: =?utf-8?q?1753990014957889751?= gcc/ChangeLog: * common/config/i386/cpuinfo.h (get_intel_cpu): Handle Emeraldrapids. * common/config/i386/i386-common.cc: Add Emeraldrapids. --- 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,