Message ID | 20230725180206.284777-6-patrick@rivosinc.com |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2646957vqg; Tue, 25 Jul 2023 11:09:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlHGgc3UBggZlO0Ixt/ZO9bHHlA+hkqAOvuimVufKxadHc9d3q/iSW9HKaYGoBVKrpDXEL3/ X-Received: by 2002:a05:6512:3142:b0:4fd:d1c0:6439 with SMTP id s2-20020a056512314200b004fdd1c06439mr6607315lfi.41.1690308551969; Tue, 25 Jul 2023 11:09:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690308551; cv=none; d=google.com; s=arc-20160816; b=yF9wJQJIEJCOnJoBlQMPoBfyODfVARdb9TGjV+xQYmSt7XbrvSvZ3rzJaz6VErnQ0D tpxZZwy6W2yiJwIn2pXn0n21pUM/pg0fjWv/KnXLdIMI9mhD2PZah9/0zNTSU2TGQiM7 GEqnHrzO53R2E6VLTDFM37QEzygWG2CX456G7o7EQnS8BI5v5CZWdhp1p5ljIEG6owLo SkNNQxD70+SC8XBrvKpX/DhaeePShaNZsMXm9gXvA2oGh18og9VrAHyROi+5ae6NwXlZ eYydo23XYy0r17juc+Gb9b4bFQln1Te9uZG3LGmiUil9AfuSVoOANjfAfoU9H77M0fLE bv8A== 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=3N44+ius++qrlRw6UzNkGTIyvo46IXdY/Z/Z2aVapME=; fh=V424RJoyJREbwuNhiT0eP2mcXvcQgx7dP1gyRHYYn6Q=; b=CG6JKaxfhmKW4wiokg+/fNt8MaWKfovb2ojrrfueI2azOlUX8V0TpbSHUsmaOK+CFQ gpx+D+KyHVs9j+CxvzrBEaLuV1mBo9bNJNYKDqyszNxPRrc/KyN5V0Kp9kJTBM0PwMSk ZEARLtv+938rlAm9/4vn0YTLYDSeuf0++qd6LKGl9ssuQcflhqHLPCKWLDGGKuv4QLx9 j4b3qnocOOgv5PuFrBvKiHh8hpJvnnt2eNxMd+VgpWDaQWb09Ml+zpuA3b6O/cZjr/Zu OeEpsnVmrCHJTDGCflrAW6YBV14mPisDUrXSqS66C1mOKFYVBsSOPx86ySzqDWO8RmHs VKGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=A9+wSKvv; 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" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id o19-20020a056402039300b005221edcf201si4868060edv.57.2023.07.25.11.09.11 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 11:09:11 -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=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=A9+wSKvv; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 58800395B008 for <ouuuleilei@gmail.com>; Tue, 25 Jul 2023 18:04:10 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id 68FEC385DC11 for <gcc-patches@gcc.gnu.org>; Tue, 25 Jul 2023 18:02:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 68FEC385DC11 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-x429.google.com with SMTP id d2e1a72fcca58-666e97fcc60so3414151b3a.3 for <gcc-patches@gcc.gnu.org>; Tue, 25 Jul 2023 11:02:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1690308150; x=1690912950; 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=3N44+ius++qrlRw6UzNkGTIyvo46IXdY/Z/Z2aVapME=; b=A9+wSKvvHgk16KdqVvugv/Pjmm9qc+UzBBAZwQpRAGMdFFqpZ7Lc2r73K6BDCwSuNN PT4ZMbuwZyDS3uUWmqPk9y9icy1ovlzCmlhxEREXTJaZ6p3/Xt+AbxVkNSHwTCt/Opl+ YisyUy8JFk1rg4Qz4ODtm9kw866z6xebL+IPWRnhPq6NDtGMAw3xFWd6PgsPc4LeiUnS /YKTFx2dGCcl3iHYNSEhAND3fQQsK3wkGu34WSW76zaIV7gXnXg9eF77ZEgUMg878qN5 MNfbHAr6LmvwGggVMhFfUFyJXqKmVx5bA7LahCurw/E4JozLQ9RBrupr8Jthsk0vAHqN 6GQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690308150; x=1690912950; 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=3N44+ius++qrlRw6UzNkGTIyvo46IXdY/Z/Z2aVapME=; b=DmqT29nggHYK2bb4GlWP2xdP9Dp2WJUPcnXbJGREFNo8px46t2hxWcZPHlQD0jtocT KU7leMFpYasTZ+5D7RLZ2rW9rOziqQDmqcXkWwRcYFp3GVmi4FFilYxhrv9SE2J1OMPV qAyTtgJtoV3gPjG/rxyNW17X6mJzafDdRusAarqh3v+TmBBNDO4pfmLPTM1iLnaG1P9v MILAFShLRmywlp9UVwahwjQD+XGNEc9TA7IOzfvhA808CXbJUmiCo6ehEfy1HEaSd5Tb 2cBJKo5eutttzwtwwAEoCG3CQDX1LOX4ySE8oo8C6qlBWzmYZjxe2ztCHJKZELqz9LgB 3OXA== X-Gm-Message-State: ABy/qLaBORanDaJTsPbY7a+uCZoHZtxaYrXaRHo8fet5wWuPOtCtkcFD BgpeN81HJUOBFGuTAQdGueHv9txu/255OnbFC9I= X-Received: by 2002:a17:903:1c4:b0:1b8:72b2:fd3b with SMTP id e4-20020a17090301c400b001b872b2fd3bmr11163395plh.54.1690308150205; Tue, 25 Jul 2023 11:02:30 -0700 (PDT) Received: from patrick-ThinkPad-X1-Carbon-Gen-8.hq.rivosinc.com ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id p1-20020a1709028a8100b001b3ce619e2esm11283352plo.179.2023.07.25.11.02.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 11:02:29 -0700 (PDT) From: Patrick O'Neill <patrick@rivosinc.com> To: gcc-patches@gcc.gnu.org Cc: jeffreyalaw@gmail.com, palmer@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, Patrick O'Neill <patrick@rivosinc.com> Subject: [gcc13 backport 05/12] RISC-V: Add AMO release bits Date: Tue, 25 Jul 2023 11:01:59 -0700 Message-Id: <20230725180206.284777-6-patrick@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725180206.284777-1-patrick@rivosinc.com> References: <20230427162301.1151333-1-patrick@rivosinc.com> <20230725180206.284777-1-patrick@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.2 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=unavailable 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: INBOX X-GMAIL-THRID: 1764347730958193573 X-GMAIL-MSGID: 1772416979948947319 |
Series |
RISC-V: Implement ISA Manual Table A.6 Mappings
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Patrick O'Neill
July 25, 2023, 6:01 p.m. UTC
This patch sets the relevant .rl bits on amo operations.
2023-04-27 Patrick O'Neill <patrick@rivosinc.com>
gcc/ChangeLog:
* config/riscv/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 11b897aca5c..df55c427b1b 100644 --- a/gcc/config/riscv/riscv.cc +++ b/gcc/config/riscv/riscv.cc @@ -4498,8 +4498,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':