* [PATCH v2 0/1] RISC-V: Fix canonical extension order (K and J) [not found] <cover.1648473106.git.research_trasio@irq.a4lg.com> @ 2022-05-22 9:29 ` Tsukasa OI 2022-05-22 9:29 ` [PATCH v2 1/1] " Tsukasa OI 0 siblings, 1 reply; 3+ messages in thread From: Tsukasa OI @ 2022-05-22 9:29 UTC (permalink / raw) To: Tsukasa OI, Kito Cheng; +Cc: gcc-patches PATCH v1: <https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593522.html> Changes between v1 and v2: - Added Signed-off-by line (I didn't notice that this is required) - Applied the same change to Python script: gcc/config/riscv/arch-canonicalize Note that this kind of change is already made in GNU Binutils and LLVM. GNU Binutils: commit c4dd8eb523fae5c9d312f4b7b21377eec66e70c3 LLVM: commit 7fe0630fcb6d52cb63463669c47f4846f7d9ccbf Tsukasa OI (1): RISC-V: Fix canonical extension order (K and J) gcc/common/config/riscv/riscv-common.cc | 2 +- gcc/config/riscv/arch-canonicalize | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) base-commit: a60228404f2ac11b5eb66270037ff3fa6bf948e5 -- 2.34.1 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2 1/1] RISC-V: Fix canonical extension order (K and J) 2022-05-22 9:29 ` [PATCH v2 0/1] RISC-V: Fix canonical extension order (K and J) Tsukasa OI @ 2022-05-22 9:29 ` Tsukasa OI 2022-05-23 2:51 ` Kito Cheng 0 siblings, 1 reply; 3+ messages in thread From: Tsukasa OI @ 2022-05-22 9:29 UTC (permalink / raw) To: Tsukasa OI, Kito Cheng; +Cc: gcc-patches 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 | 2 +- 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, static const char * riscv_supported_std_ext (void) { - return "mafdqlcbjktpvn"; + return "mafdqlcbkjtpvn"; } /* 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 from functools import reduce SUPPORTED_ISA_SPEC = ["2.2", "20190608", "20191213"] -CANONICAL_ORDER = "imafdgqlcbjktpvn" +CANONICAL_ORDER = "imafdgqlcbkjtpvn" LONG_EXT_PREFIXES = ['z', 's', 'h', 'x'] # -- 2.34.1 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2 1/1] RISC-V: Fix canonical extension order (K and J) 2022-05-22 9:29 ` [PATCH v2 1/1] " Tsukasa OI @ 2022-05-23 2:51 ` Kito Cheng 0 siblings, 0 replies; 3+ messages in thread From: Kito Cheng @ 2022-05-23 2:51 UTC (permalink / raw) To: Tsukasa OI; +Cc: Kito Cheng, GCC Patches Pushed, thanks! On Sun, May 22, 2022 at 5:30 PM Tsukasa OI via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > 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 | 2 +- > 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, > static const char * > riscv_supported_std_ext (void) > { > - return "mafdqlcbjktpvn"; > + return "mafdqlcbkjtpvn"; > } > > /* 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 > from functools import reduce > > SUPPORTED_ISA_SPEC = ["2.2", "20190608", "20191213"] > -CANONICAL_ORDER = "imafdgqlcbjktpvn" > +CANONICAL_ORDER = "imafdgqlcbkjtpvn" > LONG_EXT_PREFIXES = ['z', 's', 'h', 'x'] > > # > -- > 2.34.1 > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-23 2:51 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <cover.1648473106.git.research_trasio@irq.a4lg.com> 2022-05-22 9:29 ` [PATCH v2 0/1] RISC-V: Fix canonical extension order (K and J) Tsukasa OI 2022-05-22 9:29 ` [PATCH v2 1/1] " Tsukasa OI 2022-05-23 2:51 ` Kito Cheng
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).