From: Nelson Chu <nelson@rivosinc.com>
To: Tsukasa OI <research_trasio@irq.a4lg.com>
Cc: Kito Cheng <kito.cheng@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
binutils@sourceware.org
Subject: Re: [PATCH v2 0/2] RISC-V: Opcode Tidying - Operands (batch 1)
Date: Thu, 22 Sep 2022 15:04:03 +0800 [thread overview]
Message-ID: <CAPpQWtC4z5iBrKLkPi2QaY1TPjhe-cmPCb=hs=EJW7PjCg0zfw@mail.gmail.com> (raw)
In-Reply-To: <cover.1663828180.git.research_trasio@irq.a4lg.com>
On Thu, Sep 22, 2022 at 2:30 PM Tsukasa OI <research_trasio@irq.a4lg.com> 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
>
prev parent reply other threads:[~2022-09-22 7:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-22 6:30 Tsukasa OI
2022-09-22 6:30 ` [PATCH v2 1/2] RISC-V: Add macro-only operands to validate_riscv_insn Tsukasa OI
2022-09-22 6:30 ` [PATCH v2 2/2] RISC-V: Remove "b" operand type from disassembler Tsukasa OI
2022-09-22 7:04 ` Nelson Chu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAPpQWtC4z5iBrKLkPi2QaY1TPjhe-cmPCb=hs=EJW7PjCg0zfw@mail.gmail.com' \
--to=nelson@rivosinc.com \
--cc=binutils@sourceware.org \
--cc=kito.cheng@sifive.com \
--cc=palmer@dabbelt.com \
--cc=research_trasio@irq.a4lg.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).