diff options
author | Xiao Zeng <zengxiao@eswincomputing.com> | 2024-09-27 17:30:36 +0800 |
---|---|---|
committer | Xiao Zeng <zengxiao@eswincomputing.com> | 2024-10-08 09:02:31 +0800 |
commit | c01e3aaae79ecd439ad35063db3dee9775f3aefa (patch) | |
tree | e66f55320ee6d2d6d685aff0f29839cce301902c /gcc/common | |
parent | 14870c1f8636feaa45eac1133ce5b9228225d8bd (diff) | |
download | gcc-c01e3aaae79ecd439ad35063db3dee9775f3aefa.zip gcc-c01e3aaae79ecd439ad35063db3dee9775f3aefa.tar.gz gcc-c01e3aaae79ecd439ad35063db3dee9775f3aefa.tar.bz2 |
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>
Diffstat (limited to 'gcc/common')
-rw-r--r-- | gcc/common/config/riscv/riscv-common.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/common/config/riscv/riscv-common.cc b/gcc/common/config/riscv/riscv-common.cc index bd42fd0..a6abd90 100644 --- a/gcc/common/config/riscv/riscv-common.cc +++ b/gcc/common/config/riscv/riscv-common.cc @@ -96,6 +96,7 @@ static const riscv_implied_info_t riscv_implied_info[] = {"zabha", "zaamo"}, {"zacas", "zaamo"}, + {"zawrs", "zalrsc"}, {"zcmop", "zca"}, |