]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Add basic Zaamo and Zalrsc support
authorEdwin Lu <ewlu@rivosinc.com>
Thu, 8 Feb 2024 00:30:28 +0000 (16:30 -0800)
committerPatrick O'Neill <patrick@rivosinc.com>
Tue, 11 Jun 2024 17:05:16 +0000 (10:05 -0700)
commitaf139b3fc19fbdd7caa649bcb2cb75cc5a254143
tree7ddf9ca03b1cec9091fd092f9e45c3055ca576c5
parent05b95238be648c9cf8af2516930af6a7b637a2b8
RISC-V: Add basic Zaamo and Zalrsc support

There is a proposal to split the A extension into two parts: Zaamo and Zalrsc.
This patch adds basic support by making the A extension imply Zaamo and
Zalrsc.

Proposal: https://github.com/riscv/riscv-zaamo-zalrsc/tags

gcc/ChangeLog:

* common/config/riscv/riscv-common.cc: Add Zaamo and Zalrsc.
* config/riscv/arch-canonicalize: Make A imply Zaamo and Zalrsc.
* config/riscv/riscv.opt: Add Zaamo and Zalrsc
* config/riscv/sync.md: Convert TARGET_ATOMIC to TARGET_ZAAMO and
TARGET_ZALRSC.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/attribute-15.c: Adjust expected arch string.
* gcc.target/riscv/attribute-16.c: Ditto.
* gcc.target/riscv/attribute-17.c: Ditto.
* gcc.target/riscv/attribute-18.c: Ditto.
* gcc.target/riscv/pr110696.c: Ditto.
* gcc.target/riscv/rvv/base/pr114352-1.c: Ditto.
* gcc.target/riscv/rvv/base/pr114352-3.c: Ditto.

Signed-off-by: Edwin Lu <ewlu@rivosinc.com>
Co-authored-by: Patrick O'Neill <patrick@rivosinc.com>
gcc/common/config/riscv/riscv-common.cc
gcc/config/riscv/arch-canonicalize
gcc/config/riscv/riscv.opt
gcc/config/riscv/sync.md
gcc/testsuite/gcc.target/riscv/attribute-15.c
gcc/testsuite/gcc.target/riscv/attribute-16.c
gcc/testsuite/gcc.target/riscv/attribute-17.c
gcc/testsuite/gcc.target/riscv/attribute-18.c
gcc/testsuite/gcc.target/riscv/pr110696.c
gcc/testsuite/gcc.target/riscv/rvv/base/pr114352-1.c
gcc/testsuite/gcc.target/riscv/rvv/base/pr114352-3.c