RISC-V: Add Zawrs ISA extension support
commita1a6b912b5f905e768da4d0f434591b4d523be49
authorChristoph Müllner <christoph.muellner@vrull.eu>
Thu, 27 Oct 2022 18:42:30 +0000 (27 20:42 +0200)
committerPhilipp Tomsich <philipp.tomsich@vrull.eu>
Wed, 2 Nov 2022 19:07:08 +0000 (2 20:07 +0100)
tree79ccfa98309b43376978f0b56caf46197f6cd16f
parentabaa32c7384edef065c79741764bc112dd18f32d
RISC-V: Add Zawrs ISA extension support

This patch adds support for the Zawrs ISA extension.
Zawrs has been ratified by the RISC-V BoD on Oct 20th, 2022.

Binutils support has been merged as:
  https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=eb668e50036e979fb0a74821df4eee0307b44e66

gcc/ChangeLog:

* common/config/riscv/riscv-common.cc: Add zawrs extension.
* config/riscv/riscv-opts.h (MASK_ZAWRS): New.
(TARGET_ZAWRS): New.
* config/riscv/riscv.opt: New.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/zawrs.c: New test.

Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
gcc/common/config/riscv/riscv-common.cc
gcc/config/riscv/riscv-opts.h
gcc/config/riscv/riscv.opt
gcc/testsuite/gcc.target/riscv/zawrs.c [new file with mode: 0644]