]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Add an implicit dependency for Zawrs
authorXiao Zeng <zengxiao@eswincomputing.com>
Fri, 27 Sep 2024 09:30:36 +0000 (17:30 +0800)
committerXiao Zeng <zengxiao@eswincomputing.com>
Tue, 8 Oct 2024 01:02:31 +0000 (09:02 +0800)
commitc01e3aaae79ecd439ad35063db3dee9775f3aefa
treee66f55320ee6d2d6d685aff0f29839cce301902c
parent14870c1f8636feaa45eac1133ce5b9228225d8bd
RISC-V: Add an implicit dependency for Zawrs

There is a description in <https://github.com/riscv/riscv-isa-manual/blob/main/src/zawrs.adoc>:

"The instructions in the Zawrs extension are only useful in conjunction
with the LR instruction, which is provided by the Zalrsc component
of the A extension."

It can be concluded that: zawrs -> zalrsc.

gcc/ChangeLog:

* common/config/riscv/riscv-common.cc: zawrs -> zalrsc.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/predef-38.c: New test.
* gcc.target/riscv/predef-39.c: New test.

Signed-off-by: Xiao Zeng <zengxiao@eswincomputing.com>
gcc/common/config/riscv/riscv-common.cc
gcc/testsuite/gcc.target/riscv/predef-38.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/predef-39.c [new file with mode: 0644]