From patchwork Fri Jul 27 09:37:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Richard Earnshaw \(lists\)" X-Patchwork-Id: 143027 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp600512ljj; Fri, 27 Jul 2018 02:41:08 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfbZJUniO1opSxyZDo2/4eWZlT29sCZflgZxrhUuw6/vrdrvUIeET+E1xKF2Qh/WcwGP+YI X-Received: by 2002:a62:1157:: with SMTP id z84-v6mr5965620pfi.66.1532684468319; Fri, 27 Jul 2018 02:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532684468; cv=none; d=google.com; s=arc-20160816; b=ZxvexV7iF6hmhCwiDZ5EtMvVe1bd9EHl+RsMdmy7c3OKGPv0kiM49aip4AQw2cFTFt uZr4VZVBKSfo4IXkXgDbwolp31PzpmpHlAd+uzTLhRgFxc6iRWT/YrMolrAWMjQeRq6j Px/7GFp3qttEjv62ffoqld00aEa5zPvHc3lK+ExhEU6euWdgTrHb4p5mJjJNmVMKfdMT 1AUda4gQdhcAC7gp4rzF9MLnVObfctCVKWbbfG/66YsVnUZalk19qAypBccqKzaI5hWb EySmCqs4ewvxwkKY2s7lOSzbhjnxzyd9mXQMMhxt7YTWYB+cGJ1Tq8OvLb049UvLgifU bhng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=rz0y83+E++HmFHywSbS0UsCFEKHHs/NJYpdZYXhs7pM=; b=rStRFOchno/bSZt6rsUiyLoTyExQpFIuQ8BKSBoSwtYbVpE54lMRz6XzHcUSEM+3rz vU5wNRmunBzzrn5Cz8j8eR98Q5lu9t8tWQ/M3TrBSKIaPjIFGbqvAewoUvz6Gi9wPpG8 siErmcvRIWO1lTgE6UTxUExR/2S3KWGMixmOHwoF+lUzUFB5P8z9NLK9WpT+58V5ahTi hjLGZdwlXS0hjzutDa7UnYTpUDdB6YuMZrpHx31Xvh64P23w41+TkFsBSLyM1f6b2ngF DlNQOhBme5nam1H7YfN3pTfOjHU9UKMAr9FTFN5XN3tn3lC9jHvtQAbQ3lRYSFtu9yoD y9HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=m14UaYJC; spf=pass (google.com: domain of gcc-patches-return-482513-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-482513-patch=linaro.org@gcc.gnu.org" Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id w37-v6si3492596pgl.514.2018.07.27.02.41.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Jul 2018 02:41:08 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-482513-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=m14UaYJC; spf=pass (google.com: domain of gcc-patches-return-482513-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-482513-patch=linaro.org@gcc.gnu.org" DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type; q=dns; s=default; b=OfabSjJi1qbYIOE1 grXUtwqHMWqYWSk1k7N9Jj/7mbfyO8IU3VciKbSkwMc/DtxwiLFZDsxuLODmxBlB A9Bu0O6ptkIJWBV8JfxKevMFtfyLdSizKBLj10NgSr3LUfuwlHBvfC7lOZsmpN9M PYmrLEzSH8X2omuDAUSsTfO321Q= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type; s=default; bh=IuXB8MozArRh/bClGg65YM /R2Dw=; b=m14UaYJC57/uIh58hnJmDpuuR7Hti7leSrFaqXduGmaSN3KtkwLGYW XiaZ+Kc8PWm0wBAQ9M1G6cjWpSAfZJdK/QdXKByXvJSY2VNQAyVm6Z+9/RhAGAnM 5c/ZP65m88w5OLOSctEzJVV9uTrHXJoTmCsRQZqrM3QHQfS9ojWmg= Received: (qmail 48428 invoked by alias); 27 Jul 2018 09:38:41 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 48201 invoked by uid 89); 27 Jul 2018 09:38:40 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_FAIL autolearn=ham version=3.3.2 spammy=H*Ad:U*wschmidt X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Jul 2018 09:38:38 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fizCk-0006GB-If for gcc-patches@gcc.gnu.org; Fri, 27 Jul 2018 05:38:35 -0400 Received: from foss.arm.com ([217.140.101.70]:47232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fizCk-0006BH-90 for gcc-patches@gcc.gnu.org; Fri, 27 Jul 2018 05:38:34 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 11B3C1682; Fri, 27 Jul 2018 02:38:34 -0700 (PDT) Received: from e120077-lin.cambridge.arm.com (e120077-lin.cambridge.arm.com [10.2.207.74]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 045013F575; Fri, 27 Jul 2018 02:38:32 -0700 (PDT) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org, dje.gcc@gmail.com, segher@kernel.crashing.org Cc: Richard Earnshaw , wschmidt@linux.ibm.com Subject: [PATCH 11/11] rs6000 - add speculation_barrier pattern Date: Fri, 27 Jul 2018 10:37:55 +0100 Message-Id: <1532684275-13041-12-git-send-email-Richard.Earnshaw@arm.com> In-Reply-To: <1532684275-13041-1-git-send-email-Richard.Earnshaw@arm.com> References: <1531154299-28349-1-git-send-email-Richard.Earnshaw@arm.com> <1532684275-13041-1-git-send-email-Richard.Earnshaw@arm.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.140.101.70 This patch reworks the existing rs6000_speculation_barrier pattern to work with the new __builtin_sepculation_safe_value() intrinsic. The change is trivial as it simply requires renaming the existing speculation barrier pattern. So the total patch is to delete 14 characters! * config/rs6000/rs6000.md (speculation_barrier): Renamed from rs6000_speculation_barrier. * config/rs6000/rs6000.c (rs6000_expand_builtin): Adjust for new barrier pattern name. --- gcc/config/rs6000/rs6000.c | 2 +- gcc/config/rs6000/rs6000.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 1976072..46c6838 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -16179,7 +16179,7 @@ rs6000_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED, case MISC_BUILTIN_SPEC_BARRIER: { - emit_insn (gen_rs6000_speculation_barrier ()); + emit_insn (gen_speculation_barrier ()); return NULL_RTX; } diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 44d32d9..03870e9 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -12614,7 +12614,7 @@ (define_insn "group_ending_nop" return "ori 2,2,0"; }) -(define_insn "rs6000_speculation_barrier" +(define_insn "speculation_barrier" [(unspec_volatile:BLK [(const_int 0)] UNSPECV_SPEC_BARRIER)] "" "ori 31,31,0")