public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/1] RISC-V: RISC-V: Move standard hints before all instructions
@ 2022-10-08  4:31 Tsukasa OI
  2022-10-08  4:31 ` [PATCH 1/1] " Tsukasa OI
  0 siblings, 1 reply; 3+ messages in thread
From: Tsukasa OI @ 2022-10-08  4:31 UTC (permalink / raw)
  To: Tsukasa OI; +Cc: binutils

Hello,

GitHub tracker:
<https://github.com/a4lg/binutils-gdb/wiki/riscv_opcode_tidying_hints_1>

This is another small tidying patchset.

Because of the scanning process of the RISC-V disassembler, all standard
hints must be placed before corresponding instruction.

In the past, "prefetch.[irw]" (from 'Zicbop') hints are placed just before
ORI and "pause" (from 'Zihintpause') is placed just before FENCE.  It's not
bad but will force the developer to "taint" basic instructions section.

Considering upcoming 'Zihintntl' standard hints will be a bit more complex
than the current hints (some can be a part of either "ADD" or "C.ADD") and
the disassembler is fine as long as a hint instruction is placed before the
base instruction (no need them to be adjacent), I think moving all standard
hints before all real instructions might improve the readability and won't
disrupt the indentation of basic instructions anymore.

Thanks,
Tsukasa




Tsukasa OI (1):
  RISC-V: Move standard hints before all instructions

 opcodes/riscv-opc.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)


base-commit: 4cbfd0daabd68516651ee37a19d0e24ca4789ea3
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-14  1:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-08  4:31 [PATCH 0/1] RISC-V: RISC-V: Move standard hints before all instructions Tsukasa OI
2022-10-08  4:31 ` [PATCH 1/1] " Tsukasa OI
2022-10-14  1:37   ` Nelson Chu

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).