Message ID | 20230414170942.1695672-5-patrick@rivosinc.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp536667vqo; Fri, 14 Apr 2023 10:14:20 -0700 (PDT) X-Google-Smtp-Source: AKy350YdTR/Ty079FKYk+pqklStf2axlwsMmQOqw1ZV+WbVV9KW5vd77x/ctTTkvQYFM0RE12R+y X-Received: by 2002:a50:ff10:0:b0:502:9459:a69c with SMTP id a16-20020a50ff10000000b005029459a69cmr5842524edu.40.1681492459912; Fri, 14 Apr 2023 10:14:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681492459; cv=none; d=google.com; s=arc-20160816; b=N7OjD8uyAEHqBbKtO/8MknQYqGwHdPceG/Omrem20L0oIqWEJ+0upPWardKqlWYm++ C4PwbHX9hOY3B6a18VlT0zGFIMoZ/1chOiIfRNlp8nrjrGduW/mKT2MN6m6TF3LEV/+d ng/XNxmMi86nUT8uh8o8G2pHireDdFtrh5cniWzyWH3DjgOQLpK/uBCoCzPAtmu+QJQ8 e9xr6JwFIuYRW+isHzCOd8TPAi9/almOEd54dmg4odiYbXECy0uETm4jc764bxZJ04kI 4VDEoo58gWVCkGTVvjjhfFrosuFEF1SnUY4otEy8ylH/g3S0iHX0kTBFmfeBOWoR13qL +XSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dmarc-filter:delivered-to; bh=Hs5Gfc5dajyA6H2aUYpVLseiHqvQiCxKYrmPUR0EnXM=; b=zbM0cUKCVIxN5yEDhqjW5LBFmQEJ8bVzi/HaoScCRczx97KLpVKYhrEpdD+HjJfZ9O t31J5btIdS949vJ6Oq+QHobogjco8ql2CbctxIokWaE3Hz3A7qXfPsbTJBMVBAiVIscu 15Gr3J1tDPvOgxS9E0pTVGMjqKmjynqWHyyfWRG/1NRU6Ah+s5ZmXrj91LBcC9KxY3u5 ie1AYk7Y3vZDmKedF/St2ykeJh4mN4bRaj+IZ5h9UtusG1tPpD6IOk6J06tpf9d3W90A IwgY38tDpRPpqhpgqP5iMlATVwBXE4ox82rf4ccc0GJs4IMjbXYUc5DWYmr9aUgEup5L HIew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=BfDcGe3Y; 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" Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id m20-20020a056402051400b00504b24593ffsi4770423edv.479.2023.04.14.10.14.19 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 10:14:19 -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=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=BfDcGe3Y; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7311C3882AD4 for <ouuuleilei@gmail.com>; Fri, 14 Apr 2023 17:11:57 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by sourceware.org (Postfix) with ESMTPS id C9CE4385842D for <gcc-patches@gcc.gnu.org>; Fri, 14 Apr 2023 17:10:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C9CE4385842D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-63b4dfead1bso459884b3a.3 for <gcc-patches@gcc.gnu.org>; Fri, 14 Apr 2023 10:10:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1681492246; x=1684084246; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Hs5Gfc5dajyA6H2aUYpVLseiHqvQiCxKYrmPUR0EnXM=; b=BfDcGe3YzqmE3m5WJUPNqxrxBkC1Y8U/UkrxpALkOXCp2Mxb4Mfot9B5y6wPX3lwe9 L2mEC29ybL6QDD5L3tddYvySP/WE61Bw1J/BXRW/TMG4sU7IDW7HqrIe70cPCq+oYuUu 8d4ilfLSqwZpLkayt1BqGFIU633XWoXkqio4E/LTPg8IRjwbqkMnVzlsLt+sYwTl3dDm nK/Is29K/78ISi/WAyupUY0N/FdgvthaVr5dAJMSl9r/H7YSkB+Hi97Y398vFnJc8HJD hD2sOH/ml/vQCP7o5zkTGLYtj4qgPa+t/pLbT4oa6l7J2aiAXbF4pyoXl9Q8iCD1rNJC 1puw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681492246; x=1684084246; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Hs5Gfc5dajyA6H2aUYpVLseiHqvQiCxKYrmPUR0EnXM=; b=VRHNuArMBCcdILhjxI5XjzKMUkzxJlW+HlejOfOPGzrxxOiGN4hnjUqC2bcC/dzObo rJKf/Lv/uaGYkwqZdLlkHuusv/ghVDJR2Wepq6jJebFCNGe5Yq5WHdBP6Cv/lbKVvOwI hh81phLZzUJAkeZHih4ikBDvxUG8volggS+cRaUHJs7PNn8ashRmd54dagYiSpkBvbPr mWYR1tifk4j5V+XfJbyRLMEfFV5hYGyGABaqEjrSzYU/5OaawvfFFjZLyMcy4eh1yHVx 4DIRuUv4RnJpJNeKgxrw4f19rpjEYA4iYyhIqPJgNVhNkSJz1E0IixROS5aJVgDSJM4q XIMA== X-Gm-Message-State: AAQBX9fMdfuA+Ldkiwfiev1EF7+YI0pem7TfYpus1jyqxoUb28OxHk35 lTN6eI4Q2qwnQBQN/MVvQhdOMIsFZSmk8upNWcXYGJF5 X-Received: by 2002:a05:6a00:2191:b0:63b:599b:a2da with SMTP id h17-20020a056a00219100b0063b599ba2damr6884084pfi.27.1681492246637; Fri, 14 Apr 2023 10:10:46 -0700 (PDT) Received: from patrick-ThinkPad-X1-Carbon-Gen-8.hq.rivosinc.com ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id 12-20020aa7924c000000b006258dd63a3fsm3271902pfp.56.2023.04.14.10.10.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 10:10:44 -0700 (PDT) From: Patrick O'Neill <patrick@rivosinc.com> To: gcc-patches@gcc.gnu.org Cc: palmer@rivosinc.com, gnu-toolchain@rivosinc.com, vineetg@rivosinc.com, andrew@sifive.com, kito.cheng@sifive.com, dlustig@nvidia.com, cmuellner@gcc.gnu.org, andrea@rivosinc.com, hboehm@google.com, jeffreyalaw@gmail.com, Patrick O'Neill <patrick@rivosinc.com> Subject: [PATCH v4 04/10] RISCV: Add AMO release bits Date: Fri, 14 Apr 2023 10:09:36 -0700 Message-Id: <20230414170942.1695672-5-patrick@rivosinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230414170942.1695672-1-patrick@rivosinc.com> References: <20230410182348.2168356-1-patrick@rivosinc.com> <20230414170942.1695672-1-patrick@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762371790427566438?= X-GMAIL-MSGID: =?utf-8?q?1763172637292849098?= |
Series |
RISCV: Implement ISA Manual Table A.6 Mappings
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Patrick O'Neill
April 14, 2023, 5:09 p.m. UTC
This patch sets the relevant .rl bits on amo operations.
2023-04-14 Patrick O'Neill <patrick@rivosinc.com>
* riscv.cc (riscv_print_operand): change behavior of %A to
include release bits.
Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
---
gcc/config/riscv/riscv.cc | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc index 2226241217d..088b8d25773 100644 --- a/gcc/config/riscv/riscv.cc +++ b/gcc/config/riscv/riscv.cc @@ -4492,8 +4492,13 @@ riscv_print_operand (FILE *file, rtx op, int letter) break; case 'A': - if (riscv_memmodel_needs_amo_acquire (model)) + if (riscv_memmodel_needs_amo_acquire (model) && + riscv_memmodel_needs_release_fence (model)) + fputs (".aqrl", file); + else if (riscv_memmodel_needs_amo_acquire (model)) fputs (".aq", file); + else if (riscv_memmodel_needs_release_fence (model)) + fputs (".rl", file); break; case 'F':