]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Handle implied extension in canonical ordering.
authorKito Cheng <kito.cheng@sifive.com>
Mon, 3 Aug 2020 06:01:39 +0000 (14:01 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Wed, 18 Nov 2020 06:02:49 +0000 (14:02 +0800)
commit6a5bb4705fb75fd3afdde938193c59938cc7bfde
tree16a017e5d6bfd53ea6af2b166ab78dec9d6904ff
parentd87ee7f1c9cd2ffa6302cdfd0686d72e5bb7463b
RISC-V: Handle implied extension in canonical ordering.

 - ISA spec has specify the order between multi-letter extensions, implied
   extension also need to follow store in canonical ordering, so
   most easy way is we keep that in-order during insertion.

gcc/ChangeLog:

* common/config/riscv/riscv-common.c (single_letter_subset_rank): New.
(multi_letter_subset_rank): Ditto.
(subset_cmp): Ditto.
(riscv_subset_list::add): Insert subext in canonical ordering.
(riscv_subset_list::parse_std_ext): Move handle_implied_ext to ...
(riscv_subset_list::parse): ... here.
gcc/common/config/riscv/riscv-common.c