public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] RISC-V: Zfinx extension support
@ 2021-11-17 12:10 jiawei
  2021-11-17 12:10 ` [PATCH v2 1/3] RISC-V: Add mininal support for z[fdq]inx jiawei
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: jiawei @ 2021-11-17 12:10 UTC (permalink / raw)
  To: binutils
  Cc: tariq.kurd, kito.cheng, nelson.chu, jim.wilson.gcc,
	jeremy.bennett, cmuellner, palmer, andrew, philipp.tomsich,
	lazyparser, sinan, shihua, jiawei

This patch is support zfinx extension on binutils, 
zfinx is not compatible with any float extension 
and use gpr replace fpr. We adjust the opreand set
when zfinx used. 

For disassemble part, use the function "riscv_subset_supports" 
to check if zfinx is enable as Nelson Chu's comment, 
once the arch has zfinx, then the disassblemer will 
use gpr instead of fpr with instruction generator.

Version log:

v2: Remove zfinx elf flag, use riscv_subset_supports to recongenize
whether zfinx enable or not. Adjust INSN_CLASS_* implement order in
patches. Use INSN_CLASS_F_OR_ZFINX instead of INSN_CLASS_ZFINX and
add register group choice in reg_lookup. Add Changelog in all patches
Thanks for Nelson Chu's comment.

jiawei (3):
  RISC-V: Add mininal support for z[fdq]inx
  RISC-V: Add instructions and operand set for z[fdq]inx
  RISC-V: Add testcases  for z[fdq]inx

 bfd/elfxx-riscv.c               |  21 +++
 gas/config/tc-riscv.c           |   4 +-
 gas/testsuite/gas/riscv/zdinx.d |  42 +++++
 gas/testsuite/gas/riscv/zdinx.s |  34 ++++
 gas/testsuite/gas/riscv/zfinx.d |  40 +++++
 gas/testsuite/gas/riscv/zfinx.s |  32 ++++
 gas/testsuite/gas/riscv/zqinx.d |  44 +++++
 gas/testsuite/gas/riscv/zqinx.s |  36 ++++
 include/opcode/riscv.h          |   3 +
 opcodes/riscv-dis.c             |   4 +
 opcodes/riscv-opc.c             | 296 ++++++++++++++++----------------
 11 files changed, 407 insertions(+), 149 deletions(-)
 create mode 100644 gas/testsuite/gas/riscv/zdinx.d
 create mode 100644 gas/testsuite/gas/riscv/zdinx.s
 create mode 100644 gas/testsuite/gas/riscv/zfinx.d
 create mode 100644 gas/testsuite/gas/riscv/zfinx.s
 create mode 100644 gas/testsuite/gas/riscv/zqinx.d
 create mode 100644 gas/testsuite/gas/riscv/zqinx.s

-- 
2.25.1


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

end of thread, other threads:[~2021-11-18  7:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-17 12:10 [PATCH v2 0/3] RISC-V: Zfinx extension support jiawei
2021-11-17 12:10 ` [PATCH v2 1/3] RISC-V: Add mininal support for z[fdq]inx jiawei
2021-11-18  2:15   ` Palmer Dabbelt
2021-11-17 12:10 ` [PATCH v2 2/3] RISC-V: Add instructions and operand set " jiawei
2021-11-18  2:15   ` Palmer Dabbelt
2021-11-18  7:01   ` Nelson Chu
2021-11-17 12:10 ` [PATCH v2 3/3] RISC-V: Add testcases " jiawei
2021-11-18  2:15   ` Palmer Dabbelt

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