diff options
author | Philipp Tomsich <philipp.tomsich@vrull.eu> | 2021-10-06 22:26:46 +0200 |
---|---|---|
committer | Nelson Chu <nelson.chu@sifive.com> | 2021-10-07 17:09:25 +0800 |
commit | 9455c91957590ca6d4520cfe0955f9f9f1349f82 (patch) | |
tree | aad247fc0afd07817c5ebeb29f95b28a1e9015be /bfd/elfxx-riscv.c | |
parent | 586dcfc81ee4a24c150362c624a47d633e4d6bdc (diff) | |
download | gdb-9455c91957590ca6d4520cfe0955f9f9f1349f82.zip gdb-9455c91957590ca6d4520cfe0955f9f9f1349f82.tar.gz gdb-9455c91957590ca6d4520cfe0955f9f9f1349f82.tar.bz2 |
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>
Diffstat (limited to 'bfd/elfxx-riscv.c')
-rw-r--r-- | bfd/elfxx-riscv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c index 39a7d69..cdb4fa0 100644 --- a/bfd/elfxx-riscv.c +++ b/bfd/elfxx-riscv.c @@ -1145,6 +1145,7 @@ static struct riscv_supported_ext riscv_supported_std_z_ext[] = {"zbb", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 }, {"zba", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 }, {"zbc", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 }, + {"zbs", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 }, {NULL, 0, 0, 0, 0} }; |