public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/2] RISC-V: Add support for the Zfa extension
@ 2023-03-27  8:01 Christoph Muellner
  2023-03-27  8:01 ` [RFC PATCH v2 1/2] RISC-V: Allocate "various" operand type Christoph Muellner
  2023-03-27  8:01 ` [RFC PATCH v2 2/2] RISC-V: Add support for the Zfa extension Christoph Muellner
  0 siblings, 2 replies; 15+ messages in thread
From: Christoph Muellner @ 2023-03-27  8:01 UTC (permalink / raw)
  To: binutils, Nelson Chu, Andrew Waterman, Palmer Dabbelt,
	Jim Wilson, Philipp Tomsich, Jeff Law, Tsukasa OI
  Cc: Christoph Müllner

From: Christoph Müllner <christoph.muellner@vrull.eu>

This series adds support for the RISC-V Zfa extension.
It consists of two patches:
1) A clean-up patch from Tsukasa that improves the way we structure
   format string directives.
2) A patch that introduces support for the Zfa extension.

The first patch does not have any dependencies and is suggested to get
merged as early as possible.

The second patch can land once the Zfa specification gets frozen.

Some additional bits to get the full context:
* Tsukasa wrote a first version, which can be found here:
  https://sourceware.org/pipermail/binutils/2022-September/122939.html
* I took over the patch as agreed here:
  https://sourceware.org/pipermail/binutils/2023-March/126753.html

There is also a discussion how to represent the constants in the
assembly notation. I've decided to use C-like constants, as I consider
this as the most user-friedly form for assembly programmers (for
examples see gas/testsuite/gas/riscv/zfa.s).
I prefer to not support the RS1-constants or the hex-encoded register
values that will land in the floating-point registers, as I want to
avoid misinterpretation because of multiple allowed notations.
If another notation is preferred, then please let me know.

Christoph Müllner (1):
  RISC-V: Add support for the Zfa extension

Tsukasa OI (1):
  RISC-V: Allocate "various" operand type

 bfd/elfxx-riscv.c                  | 39 ++++++++++++
 gas/config/tc-riscv.c              | 89 ++++++++++++++++++++++-----
 gas/testsuite/gas/riscv/zfa-32.d   | 10 +++
 gas/testsuite/gas/riscv/zfa-32.s   |  3 +
 gas/testsuite/gas/riscv/zfa-64.d   | 10 +++
 gas/testsuite/gas/riscv/zfa-64.s   |  3 +
 gas/testsuite/gas/riscv/zfa-fail.d |  2 +
 gas/testsuite/gas/riscv/zfa-fail.l | 33 ++++++++++
 gas/testsuite/gas/riscv/zfa-fail.s | 26 ++++++++
 gas/testsuite/gas/riscv/zfa.d      | 89 +++++++++++++++++++++++++++
 gas/testsuite/gas/riscv/zfa.s      | 87 ++++++++++++++++++++++++++
 include/opcode/riscv-opc.h         | 99 ++++++++++++++++++++++++++++++
 include/opcode/riscv.h             |  5 ++
 opcodes/riscv-dis.c                | 38 ++++++++++--
 opcodes/riscv-opc.c                | 59 +++++++++++++++++-
 15 files changed, 567 insertions(+), 25 deletions(-)
 create mode 100644 gas/testsuite/gas/riscv/zfa-32.d
 create mode 100644 gas/testsuite/gas/riscv/zfa-32.s
 create mode 100644 gas/testsuite/gas/riscv/zfa-64.d
 create mode 100644 gas/testsuite/gas/riscv/zfa-64.s
 create mode 100644 gas/testsuite/gas/riscv/zfa-fail.d
 create mode 100644 gas/testsuite/gas/riscv/zfa-fail.l
 create mode 100644 gas/testsuite/gas/riscv/zfa-fail.s
 create mode 100644 gas/testsuite/gas/riscv/zfa.d
 create mode 100644 gas/testsuite/gas/riscv/zfa.s

-- 
2.39.2


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

end of thread, other threads:[~2023-03-30 16:59 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-27  8:01 [RFC PATCH v2 0/2] RISC-V: Add support for the Zfa extension Christoph Muellner
2023-03-27  8:01 ` [RFC PATCH v2 1/2] RISC-V: Allocate "various" operand type Christoph Muellner
2023-03-27  8:01 ` [RFC PATCH v2 2/2] RISC-V: Add support for the Zfa extension Christoph Muellner
2023-03-27  8:09   ` Kito Cheng
2023-03-27  8:26     ` Christoph Müllner
2023-03-27  8:38   ` Jan Beulich
2023-03-27  8:53     ` Kito Cheng
2023-03-27  9:08       ` Christoph Müllner
2023-03-27  9:54       ` Jan Beulich
2023-03-30 10:30         ` Christoph Müllner
2023-03-30 10:54           ` Jan Beulich
2023-03-30 12:18             ` Jan Beulich
2023-03-30 15:36               ` Christoph Müllner
2023-03-30 16:13                 ` Jan Beulich
2023-03-30 16:59                   ` Christoph Müllner

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