RISC-V: Fix canonical extension order (K and J)
authorTsukasa OI <research_trasio@irq.a4lg.com>
Sun, 22 May 2022 09:29:14 +0000 (18:29 +0900)
committerKito Cheng <kito.cheng@sifive.com>
Mon, 23 May 2022 02:50:25 +0000 (10:50 +0800)
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>
gcc/common/config/riscv/riscv-common.cc
gcc/config/riscv/arch-canonicalize

index 1501242..0b0ec2c 100644 (file)
@@ -594,7 +594,7 @@ riscv_subset_list::lookup (const char *subset, int major_version,
 static const char *
 riscv_supported_std_ext (void)
 {
-  return "mafdqlcbjktpvn";
+  return "mafdqlcbkjtpvn";
 }
 
 /* Parsing subset version.
index 41bab69..71b2232 100755 (executable)
@@ -32,7 +32,7 @@ import itertools
 from functools import reduce
 
 SUPPORTED_ISA_SPEC = ["2.2", "20190608", "20191213"]
-CANONICAL_ORDER = "imafdgqlcbjktpvn"
+CANONICAL_ORDER = "imafdgqlcbkjtpvn"
 LONG_EXT_PREFIXES = ['z', 's', 'h', 'x']
 
 #