From patchwork Fri Oct 14 07:40:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiang, Haochen" X-Patchwork-Id: 2549 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp50108wrs; Fri, 14 Oct 2022 00:42:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6/0coEWtd7i8pEoJxJ3EzyfnbCnzYH1hxJb1wHBtWgRcZC8iedlBm59WLCOKk4BnQxC4LM X-Received: by 2002:a17:906:5d11:b0:78d:a41c:6a2d with SMTP id g17-20020a1709065d1100b0078da41c6a2dmr2585547ejt.215.1665733336843; Fri, 14 Oct 2022 00:42:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665733336; cv=none; d=google.com; s=arc-20160816; b=Q74BG/I2l+QEkgpvTRzTZwyydAvHiyEsDZ5LbHgZgmTOcTIB8XLeNhqY0atGlsZAVX TPWe+N1LtCtPaeaSlQSckuNhzw2eOUmyhcpBQi03fV/FwUZZMR0Alxi3cHvnsHxJHtk5 PRzeyWrKyyqb8V1V3iLubMAH01g5zpiYCVzLj7FitX6t9ydgkFv4UrI/4oiX1SF/fVeZ AYjA3DrLu3tb7HXcPn5zxvblqUO3+8icsEaqgGp6eduYLIwat9IVHE0+wscHdmeKoHyj LKbrtt3NHyeHebL+WvRfGQPKIRnAeEqyhrIWcMlDPo0duw0Knk1osEPZObKWwm9DjceW NtpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:to:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=aC6X9737hJhSqpZTH1q/ibu/TW2nGbnWe9bwqEr0pIE=; b=VeMj7hvdtErP4I9xSEkfBHreljR09QcNSOQgCTuOTMkLfYwoyVBEzb4tNdq4uLG1XL t2cyTubcVn1CzR00lwcTK86NyP8ypmWCRZAz2rBjjJ97xSyQZGUoCAJRf+OwObRcUKJY q6VW3jcjL/K2MDjA+jfK4QoSyP6DnyBoK5/a/0xFFPAiUgXVJ5TmxHmZyPtvaJo7qsh2 2+jCUqMrrVPlitbb01zzf51b5ZMIm3Ic8kDI6opFRa41WC/LMe8pgB6DnP2eiK5PnGXk /F15AhoecsKZ/FmDeun6tv8qpAxzW5eTfdSqbtCoVefPR63K5lJZUDwNRZ9HdRPziQSR ZdMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=mpnxxIY0; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id y26-20020a50eb9a000000b004592847889fsi1501713edr.158.2022.10.14.00.42.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Oct 2022 00:42:16 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=mpnxxIY0; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 320963850223 for ; Fri, 14 Oct 2022 07:41:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 320963850223 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665733311; bh=aC6X9737hJhSqpZTH1q/ibu/TW2nGbnWe9bwqEr0pIE=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=mpnxxIY0692WRjCycGYZmFbZY5B8Yz9EkcmQOmMNvwDdFQITInuh6gaUXnIe1b0+4 XGJwka17oP9motnMd8GPSFts4n4wSWcVlwZ1ApKnuAudXkXBBbeAP8u9PQ0CdOXoL0 AFKY63Z7bInVbg1I9wuvR4i7BWYWGZQJ+0l6KMvQ= 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 EF34C3858C39 for ; Fri, 14 Oct 2022 07:41:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EF34C3858C39 X-IronPort-AV: E=McAfee;i="6500,9779,10499"; a="331822710" X-IronPort-AV: E=Sophos;i="5.95,182,1661842800"; d="scan'208";a="331822710" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2022 00:41:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10499"; a="627484961" X-IronPort-AV: E=Sophos;i="5.95,182,1661842800"; d="scan'208";a="627484961" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by orsmga002.jf.intel.com with ESMTP; 14 Oct 2022 00:41:01 -0700 Received: from shliclel320.sh.intel.com (shliclel320.sh.intel.com [10.239.240.127]) by shvmail03.sh.intel.com (Postfix) with ESMTP id 3371D1009C8B; Fri, 14 Oct 2022 15:41:01 +0800 (CST) To: gcc-patches@gcc.gnu.org Subject: [PATCH 2/2] Initial Meteorlake Support Date: Fri, 14 Oct 2022 15:40:58 +0800 Message-Id: <20221014074058.7709-3-haochen.jiang@intel.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20221014074058.7709-1-haochen.jiang@intel.com> References: <20221014074058.7709-1-haochen.jiang@intel.com> X-Spam-Status: No, score=-12.1 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: Haochen Jiang via Gcc-patches From: "Jiang, Haochen" Reply-To: Haochen Jiang Cc: "Hu, Lin1" , hongtao.liu@intel.com 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?1746647999305417723?= X-GMAIL-MSGID: =?utf-8?q?1746647999305417723?= From: "Hu, Lin1" gcc/ChangeLog: * common/config/i386/cpuinfo.h: (get_intel_cpu): Handle Meteorlake. * common/config/i386/i386-common.cc: (processor_alias_table): Add Meteorlake. --- gcc/common/config/i386/cpuinfo.h | 4 ++++ gcc/common/config/i386/i386-common.cc | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gcc/common/config/i386/cpuinfo.h b/gcc/common/config/i386/cpuinfo.h index e759e6f89fa..b5c1b21e554 100644 --- a/gcc/common/config/i386/cpuinfo.h +++ b/gcc/common/config/i386/cpuinfo.h @@ -498,6 +498,10 @@ get_intel_cpu (struct __processor_model *cpu_model, /* Alder Lake. */ case 0xb7: /* Raptor Lake. */ + case 0xb5: + case 0xaa: + case 0xac: + /* Meteor 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 8d346245ddd..d6a68dc9b1d 100644 --- a/gcc/common/config/i386/i386-common.cc +++ b/gcc/common/config/i386/i386-common.cc @@ -1931,6 +1931,8 @@ const pta processor_alias_table[] = 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}, + {"meteorlake", 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,