diff options
author | Tsukasa OI <research_trasio@irq.a4lg.com> | 2022-05-22 18:29:14 +0900 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2022-05-23 10:50:25 +0800 |
commit | 075fb873c264a030f56793cb162c9fdecbdd1773 (patch) | |
tree | b4ced2687b1068f7d3edc74489838564adeadb7b | |
parent | Increase move cost between mask and gpr. (diff) | |
download | gcc-075fb873c264a030f56793cb162c9fdecbdd1773.tar.gz gcc-075fb873c264a030f56793cb162c9fdecbdd1773.tar.bz2 gcc-075fb873c264a030f56793cb162c9fdecbdd1773.tar.xz |
RISC-V: Fix canonical extension order (K and J)
This commit fixes canonical extension order to follow the RISC-V ISA
Manual draft-20210402-1271737 or later.
gcc/ChangeLog:
* common/config/riscv/riscv-common.cc (riscv_supported_std_ext):
Fix "K" extension prefix to be placed before "J".
* config/riscv/arch-canonicalize: Likewise.
Signed-off-by: Tsukasa OI <research_trasio@irq.a4lg.com>
-rw-r--r-- | gcc/common/config/riscv/riscv-common.cc | 2 | ||||
-rwxr-xr-x | gcc/config/riscv/arch-canonicalize | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/common/config/riscv/riscv-common.cc b/gcc/common/config/riscv/riscv-common.cc index 1501242e296..0b0ec2c4ec5 100644 --- a/gcc/common/config/riscv/riscv-common.cc +++ b/gcc/common/config/riscv/riscv-common.cc | |||
@@ -594,7 +594,7 @@ riscv_subset_list::lookup (const char *subset, int major_version, | |||
594 | static const char * | 594 | static const char * |
595 | riscv_supported_std_ext (void) | 595 | riscv_supported_std_ext (void) |
596 | { | 596 | { |
597 | return "mafdqlcbjktpvn"; | 597 | return "mafdqlcbkjtpvn"; |
598 | } | 598 | } |
599 | 599 | ||
600 | /* Parsing subset version. | 600 | /* Parsing subset version. |
diff --git a/gcc/config/riscv/arch-canonicalize b/gcc/config/riscv/arch-canonicalize index 41bab69193c..71b2232b29e 100755 --- a/gcc/config/riscv/arch-canonicalize +++ b/gcc/config/riscv/arch-canonicalize | |||
@@ -32,7 +32,7 @@ import itertools | |||
32 | from functools import reduce | 32 | from functools import reduce |
33 | 33 | ||
34 | SUPPORTED_ISA_SPEC = ["2.2", "20190608", "20191213"] | 34 | SUPPORTED_ISA_SPEC = ["2.2", "20190608", "20191213"] |
35 | CANONICAL_ORDER = "imafdgqlcbjktpvn" | 35 | CANONICAL_ORDER = "imafdgqlcbkjtpvn" |
36 | LONG_EXT_PREFIXES = ['z', 's', 'h', 'x'] | 36 | LONG_EXT_PREFIXES = ['z', 's', 'h', 'x'] |
37 | 37 | ||
38 | # | 38 | # |