diff options
author | SiYu Wu <siyu@isrc.iscas.ac.cn> | 2021-11-22 16:19:10 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2021-12-04 00:10:35 +0800 |
commit | 0962bff477a3d5134cb1ac23852da694529725e0 (patch) | |
tree | 9bb8e3212593ade4dbd93fddfcf9ec0df3c091ba /gcc/common | |
parent | add31efdc7b0aa869cb9d83f40e274e864072b25 (diff) | |
download | gcc-0962bff477a3d5134cb1ac23852da694529725e0.zip gcc-0962bff477a3d5134cb1ac23852da694529725e0.tar.gz gcc-0962bff477a3d5134cb1ac23852da694529725e0.tar.bz2 |
RISC-V: Add implied defines of Zk, Zkn and Zks
gcc/ChangeLog:
2021-11-22 SiYu Wu <siyu@isrc.iscas.ac.cn>
* common/config/riscv/riscv-common.c (riscv_implied_info):
Add K-ext related entry.
(riscv_supported_std_ext): Add 'k'.
* config/riscv/arch-canonicalize (CANONICAL_ORDER): Add 'k'.
(IMPLIED_EXT): Add K-ext related entry.
Diffstat (limited to 'gcc/common')
-rw-r--r-- | gcc/common/config/riscv/riscv-common.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gcc/common/config/riscv/riscv-common.c b/gcc/common/config/riscv/riscv-common.c index 14dc605..f352ff4 100644 --- a/gcc/common/config/riscv/riscv-common.c +++ b/gcc/common/config/riscv/riscv-common.c @@ -50,6 +50,20 @@ static const riscv_implied_info_t riscv_implied_info[] = {"d", "f"}, {"f", "zicsr"}, {"d", "zicsr"}, + {"zk", "zkn"}, + {"zk", "zkr"}, + {"zk", "zkt"}, + {"zkn", "zbkb"}, + {"zkn", "zbkc"}, + {"zkn", "zbkx"}, + {"zkn", "zkne"}, + {"zkn", "zknd"}, + {"zkn", "zknh"}, + {"zks", "zbkb"}, + {"zks", "zbkc"}, + {"zks", "zbkx"}, + {"zks", "zksed"}, + {"zks", "zksh"}, {NULL, NULL} }; @@ -502,7 +516,7 @@ riscv_subset_list::lookup (const char *subset, int major_version, static const char * riscv_supported_std_ext (void) { - return "mafdqlcbjtpvn"; + return "mafdqlcbjktpvn"; } /* Parsing subset version. |