From patchwork Fri Oct 14 08:34:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiang, Haochen" X-Patchwork-Id: 111 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp67131wrs; Fri, 14 Oct 2022 01:37:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5g+sSzLEWKnbOsxrcGCN9YDBHDeHHVwnBIWbk8d8c5dFgE/gVAHEh5wZYDWQVo+RjhUhc7 X-Received: by 2002:a05:6402:1e8d:b0:441:58db:b6a2 with SMTP id f13-20020a0564021e8d00b0044158dbb6a2mr3220634edf.277.1665736629672; Fri, 14 Oct 2022 01:37:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665736629; cv=none; d=google.com; s=arc-20160816; b=Z4JVuYeS4WUUi5Fe8dtK9CBNO6fKDrY1Oxn9i4Hm1pnt+LfsGweApPdxhtSbcxITUt CfhQPvahVAAwL/jBMjEtxMa60LLJSSP5F6GV/cJGzkru6dppkB8Jl6OQ37/UheAc4QFA Mbj8b5GbDql440SR5aOe8eZjeAUyK4h9rjtf1ndAqvMA8/88IBIuBTzKaScSJSmx1j05 bKvB4MTsuAeJzfZMdMVv8hQ5PeWQ6PYY/6AJswinSANZ+mxV+zeHxYWelS5aDKNOci99 m1yhRut1MCX7TZZDEkcBce/RFkARHooM2bgLlZ8p3JDfF7XNZciSY7wBV7Ogs9ASSS06 2kkA== 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 :message-id:date:subject:to:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=5PE1wd1vKLvP3Bv7eE5We6qkUtdl79xt2sPbQMHjLhg=; b=H9IDjM3U33JU39BWVzki9eXs8W2G517+Dy8IIoo6nZ9R8u6c31L7tCAadrBU8MFbzr oJ04+hqxTBGiiwFaD1Ccgp0+jng1wKjWaBcRhMA4PRHiX3go2OcXUvw4GJ4HnPC7SEDR 5kwbAp/TdyzPYHDQYXkSmmfg3h7RvG9VWd5CceZHKF77fcrjfmn8ERQf217hxLxX6/35 VkrpvvV2HuPBRE4meUGcMAT960IXOyqnqoE4eSvotlNOAPwT14Oe3WEsMvcs/ZeY3ZQy s/MyMYnHxL7bau7Z/OsoxJsv2aFCCZ05zSlwVC8SCCw7uW9H6jacPQPfBFPvaSNj3UV8 PZGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=R6RXMx8h; 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 dd18-20020a1709069b9200b0073dc32ccd9fsi2256863ejc.104.2022.10.14.01.37.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Oct 2022 01:37:09 -0700 (PDT) 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=R6RXMx8h; 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 942E0385414D for ; Fri, 14 Oct 2022 08:37:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 942E0385414D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665736622; bh=5PE1wd1vKLvP3Bv7eE5We6qkUtdl79xt2sPbQMHjLhg=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=R6RXMx8hHSxZucgVNrlSOLMzSQJNen7kpclpZljT0MuJOK3vPWvPeIVvcccSF3s5V Hd/f7IgowKNksBUWGOLTqcqvEy2aptbW0VqlFRSVq3teyRppRBmF3yvQY2ljyBWfS+ ETqd8S+mcS4lDaCBr3yYie2Vt9HLkCJCQbOmEW50= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by sourceware.org (Postfix) with ESMTPS id CD2FF385803D; Fri, 14 Oct 2022 08:36:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CD2FF385803D X-IronPort-AV: E=McAfee;i="6500,9779,10499"; a="285046984" X-IronPort-AV: E=Sophos;i="5.95,182,1661842800"; d="scan'208";a="285046984" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2022 01:36:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10499"; a="605300434" X-IronPort-AV: E=Sophos;i="5.95,182,1661842800"; d="scan'208";a="605300434" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by orsmga006.jf.intel.com with ESMTP; 14 Oct 2022 01:36:09 -0700 Received: from shliclel320.sh.intel.com (shliclel320.sh.intel.com [10.239.240.127]) by shvmail03.sh.intel.com (Postfix) with ESMTP id 5BD471009C94; Fri, 14 Oct 2022 16:36:08 +0800 (CST) To: gcc-patches@gcc.gnu.org Subject: [PATCH 0/2] Add a Fourth parameter for prefetch and Support Intel PREFETCHI Date: Fri, 14 Oct 2022 16:34:04 +0800 Message-Id: <20221014083406.8406-1-haochen.jiang@intel.com> X-Mailer: git-send-email 2.18.1 X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, 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: aoliva@gcc.gnu.org, richard.sandiford@arm.com, uweigand@de.ibm.com, linkw@gcc.gnu.org, gnu@amylaar.uk, dje.gcc@gmail.com, olegendo@gcc.gnu.org, claziss@synopsys.com, segher@kernel.crashing.org, mfortune@gmail.com, davem@redhat.com, dave.anglin@bell.net, hubicka@ucw.cz, richard.earnshaw@arm.com, rguenther@suse.de, marcus.shawcroft@arm.com, ramana.radhakrishnan@arm.com, 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?1746651451793857632?= X-GMAIL-MSGID: =?utf-8?q?1746651451793857632?= Hi all, Sorry for the previous cover-letter stucking and disturbance and this is the right cover letter. These two patches aimed to add Intel PREFETCHI. The information is based on newly released Intel Architecture Instruction Set Extensions and Future Features. The document comes following: https://www.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html The first patch added a fourth parameter for prefetch to align with LLVM in middle end. Currently LLVM had a fourth parameter to indicate what is prefetching. Also added a warning on backends that does not support instruction prefetch in machine description file to tell users attempting using prefetchi that the backend will change it to data prefetch. The second patch was i386 specific and added PREFETCHI to i386. Regtested on x86_64-pc-linux-gnu and cross-compiled to other backends. For other backends, I ran through the compile test and no regressions found. Since I did not have machines from other backends, could you kindly help me to test with other machines? I suppose there should not have regressions since I just added a warning to the md file and corresponding testcase. Ok for trunk? BRs, Haochen