RISC-V: Add support for Zbs instructions
authorPhilipp Tomsich <philipp.tomsich@vrull.eu>
Wed, 6 Oct 2021 20:26:46 +0000 (22:26 +0200)
committerNelson Chu <nelson.chu@sifive.com>
Thu, 7 Oct 2021 09:09:25 +0000 (17:09 +0800)
commit9455c91957590ca6d4520cfe0955f9f9f1349f82
treeaad247fc0afd07817c5ebeb29f95b28a1e9015be
parent586dcfc81ee4a24c150362c624a47d633e4d6bdc
RISC-V: Add support for Zbs instructions

This change adds the Zbs instructions from the Zbs 1.0.0 specification.
See
  https://github.com/riscv/riscv-bitmanip/releases/tag/1.0.0
for the frozen specification.

2021-01-09  Philipp Tomsich  <philipp.tomsich@vrull.eu>

    bfd/
* elfxx-riscv.c (riscv_supported_std_z_ext): Added zbs.
    gas/
* config/tc-riscv.c (riscv_multi_subset_supports): Handle INSN_CLASS_ZBS.
* testsuite/gas/riscv/b-ext.d: Test Zbs instructions.
* testsuite/gas/riscv/b-ext.s: Likewise.
* testsuite/gas/riscv/b-ext-64.d: Likewise.
* testsuite/gas/riscv/b-ext-64.s: Likewise.
    include/
* opcode/riscv-opc.h: Added MASK/MATCH/DECLARE_INSN for Zbs.
* opcode/riscv.h (riscv_insn_class): Added INSN_CLASS_ZBS.
    opcodes/
* riscv-opc.c (riscv_supported_std_z_ext): Add zbs.

Signed-off-by: Philipp Tomsich <philipp.tomsich@vrull.eu>
bfd/elfxx-riscv.c
gas/config/tc-riscv.c
gas/testsuite/gas/riscv/b-ext-64.d
gas/testsuite/gas/riscv/b-ext-64.s
gas/testsuite/gas/riscv/b-ext.d
gas/testsuite/gas/riscv/b-ext.s
include/opcode/riscv-opc.h
include/opcode/riscv.h
opcodes/riscv-opc.c