From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by sourceware.org (Postfix) with ESMTPS id ECD953858028 for ; Thu, 22 Sep 2022 07:04:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org ECD953858028 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-oi1-x22a.google.com with SMTP id m130so11225037oif.6 for ; Thu, 22 Sep 2022 00:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=kPP5Yb005JOBB5biHOwtzsA8nxxTz9YzfYUoHWNH6jM=; b=MqcKia/mGG4dV+I5As/MLGmJq8hrGd048popadNK061o7xlLHex0RXuSTktPX2Y4tp d3QGeLD5AwJXkTjmbPyViyg6GSfZ9OXG88KKLNH5Hlc/I/TXqVwfgdLRVPSIN8UZ3/eX JEYY7ts/VBcwwL+0+eY1yTtF+b2ZErSfxQE8i92lgPICeLOBaq1StC5QZQSgJ4Ckx9we KltRAJIIqIDZ8V0rUuE3Gi4XmFLyd68zCcov8y0TVNzKLCJ+PfrHjac2WZfOBN9vQrZd tztLHOC4yQ75siIq40UPdctXA1UhvRq00aGPDG0PFSTqRLvqeUq9kDN9EZhk0doWRoLl /eOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=kPP5Yb005JOBB5biHOwtzsA8nxxTz9YzfYUoHWNH6jM=; b=6+2b7Pvo395gILZ+8P25n6apT1gxF2ZIJmGU4uoXCIVuZnHeYxG87hBMwz93pZRAe/ k+96uL0yjeIHU7FclKu6uh0ysqp7Qlk1KSH+DppcX6+xajoufXsqUknbk25Y1B5VgXPN SMXPaIci8BZZilucB+fOrcDQQwyvngLHHlg9ZxXzWavnR2Dhu3HiF6R58h0usz72fW+5 h1Ofeo6SFL/z4xkH6OT5nws9dyMAl/Cu3EFO5izEXDm9P8pR5dAFoqa5dqyiqULl8UZV 7ZIWAOwu924g0coXCMSg5QCXHOsznZabhljXdlD33ifZeyJ67Vc8cioE6kgG0fHBedg1 dk6g== X-Gm-Message-State: ACrzQf01pX2TLLvcaK/VrX7xhrorXri3G6DTsU2NWhZPaPPhg/0OU1/1 2WRErYJ4mYp1gjURsQeuaIjlmSwIrzqTHlgOvxfZNw== X-Google-Smtp-Source: AMsMyM6AqlMHyRoO4DdGWEu3jR2G1kqSNOZAK1p0tiwOLV2rFuwXS0LmyAP6ITirmvl7lI49PSZ5cA0rydZO2XlPv+w= X-Received: by 2002:a05:6808:bca:b0:350:b22b:1283 with SMTP id o10-20020a0568080bca00b00350b22b1283mr5769376oik.82.1663830254413; Thu, 22 Sep 2022 00:04:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Nelson Chu Date: Thu, 22 Sep 2022 15:04:03 +0800 Message-ID: Subject: Re: [PATCH v2 0/2] RISC-V: Opcode Tidying - Operands (batch 1) To: Tsukasa OI Cc: Kito Cheng , Palmer Dabbelt , binutils@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 List-Id: On Thu, Sep 22, 2022 at 2:30 PM Tsukasa OI wrote: > > Hello, > > This is a small patchset to clean / maintain RISC-V instruction > operand types. > > [Changes: v1 -> v2] > - Cleaning? (possibly unchanged? then this is a ping) In fact you can reply and ping the original patch directly without sending a new one if nothing changed. Anyway, these two patch looks good, please commit. Thanks Nelson > > [PATCH 1/2] > > Since `validate_riscv_insn' function lists three macro-only operand types, > this patch adds other three operands. That means, `validate_riscv_insn' > lists all macro-only operand types with this patch. > > Existing: > - A > - B > - I > > New in This Patch: > - c > - VM > - VT > > Note that `validate_riscv_insn' is called only for non-macros. In the > future, we could reject (and make an internal error) when we encountered > those macro-only operand types on regular (non-macro) instructions. > > > [PATCH 2/2] > > The operand type "b" has no good reasons to keep and should be removed. > > - It looks like an alias of the "s" operand type. > - It hasn't used since the beginning. > - Its role is not clear. > > On the other hand, this patch keeps following unused operand types for now: > > - Cx : future compressed instructions? > - Vf, Ve : vector AMO instructions (instructions are not upstreamed > but operand types are upstreamed already) > - [, ] : used by some vendors? At least, their role is clear. > > > Thanks, > Tsukasa > > > > > Tsukasa OI (2): > RISC-V: Add macro-only operands to validate_riscv_insn > RISC-V: Remove "b" operand type from disassembler > > gas/config/tc-riscv.c | 3 +++ > opcodes/riscv-dis.c | 1 - > 2 files changed, 3 insertions(+), 1 deletion(-) > > > base-commit: 90eca7111355e4c6683c1ab10fd07107ea10f6d1 > -- > 2.34.1 >