RISC-V: Support aliases for Zbs instructions
authorPhilipp Tomsich <philipp.tomsich@vrull.eu>
Wed, 6 Oct 2021 20:26:47 +0000 (22:26 +0200)
committerNelson Chu <nelson.chu@sifive.com>
Thu, 7 Oct 2021 09:09:28 +0000 (17:09 +0800)
commit8baf3d07567f886be683aa26e3fc92346b604a93
tree13aefc58587c50e5d144f8d06d6e68de7719b2eb
parent9455c91957590ca6d4520cfe0955f9f9f1349f82
RISC-V: Support aliases for Zbs instructions

Add aliases for the non-immediate mnemonics of b{set,clr,inv,ext} to
yencode the respective immediate insn b{set,clr,inv,ext}i when the
second source operand is an immediate.

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

    gas/
* testsuite/gas/riscv/b-ext.d: Add tests.
* testsuite/gas/riscv/b-ext.s: Likewise.
* testsuite/gas/riscv/b-ext-64.d: Likewise.
* testsuite/gas/riscv/b-ext-64.s: Likewise.
    opcodes/
        * riscv-opc.c (riscv_opcodes): Add aliases for Zbs.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Philipp Tomsich <philipp.tomsich@vrull.eu>
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
opcodes/riscv-opc.c