[PATCH v2 0/1] RISC-V: Support CORE-V XCVBITMANIP extension

Mary Bennett mary.bennett682@gmail.com
Sun Aug 4 17:12:25 GMT 2024


v1 --> v2:
* Merged tests into two test files.

This patch series presents the comprehensive implementation of the BITMANIP
extension for CORE-V.

Tested with riscv-gnu-toolchain on binutils, ld, gas and gcc testsuites to
ensure its correctness and compatibility with the existing codebase.
However, your input, reviews, and suggestions are invaluable in making this
extension even more robust.

The CORE-V instructions are described in the specification [1] and work can be
found in the OpenHW group's Github repository [2].

[1] docs.openhwgroup.org/projects/cv32e40p-user-manual/en/latest/instruction_set_extensions.html

[2] github.com/openhwgroup/corev-binutils-gdb

Contributors:
  Mary Bennett <mary.bennett682@gmail.com>
  Nandni Jamnadas <nandni.jamnadas@embecosm.com>
  Pietra Ferreira <pietra.ferreira@embecosm.com>
  Charlie Keaney
  Jessica Mills
  Craig Blackmore <craig.blackmore@embecosm.com>
  Simon Cook <simon.cook@embecosm.com>
  Jeremy Bennett <jeremy.bennett@embecosm.com>
  Helene Chelin <helene.chelin@embecosm.com>

RISC-V: Add support for XCVbitmanip extension in CV32E40P

 bfd/elfxx-riscv.c                            |  25 ++--
 gas/config/tc-riscv.c                        |  26 ++++
 gas/doc/c-riscv.texi                         |  17 ++-
 gas/testsuite/gas/riscv/march-help.l         |   5 +-
 gas/testsuite/gas/riscv/x-cv-bitmanip-fail.d |   3 +
 gas/testsuite/gas/riscv/x-cv-bitmanip-fail.l |  57 +++++++++
 gas/testsuite/gas/riscv/x-cv-bitmanip-fail.s |  56 +++++++++
 gas/testsuite/gas/riscv/x-cv-bitmanip.d      | 119 +++++++++++++++++++
 gas/testsuite/gas/riscv/x-cv-bitmanip.s      | 108 +++++++++++++++++
 include/opcode/riscv-opc.h                   |  33 +++++
 include/opcode/riscv.h                       |  13 +-
 opcodes/riscv-dis.c                          |   8 ++
 opcodes/riscv-opc.c                          |  19 +++
 13 files changed, 469 insertions(+), 20 deletions(-)
 create mode 100644 gas/testsuite/gas/riscv/x-cv-bitmanip-fail.d
 create mode 100644 gas/testsuite/gas/riscv/x-cv-bitmanip-fail.l
 create mode 100644 gas/testsuite/gas/riscv/x-cv-bitmanip-fail.s
 create mode 100644 gas/testsuite/gas/riscv/x-cv-bitmanip.d
 create mode 100644 gas/testsuite/gas/riscv/x-cv-bitmanip.s

-- 
2.43.0



More information about the Binutils mailing list