]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: Add evolution features of base ISA revisions
authorXi Ruoyao <xry111@xry111.site>
Fri, 17 Nov 2023 19:19:07 +0000 (03:19 +0800)
committerXi Ruoyao <xry111@xry111.site>
Sat, 18 Nov 2023 17:11:12 +0000 (01:11 +0800)
commitccead01d9bd253cb21b61884d4d20f42a2feee31
treed801127cdb6a7fb5380818ff1716af63681cc37f
parent8835242025a604c0c62812e971f10aaef3604408
LoongArch: Add evolution features of base ISA revisions

* config/loongarch/loongarch-def.h:
(loongarch_isa_base_features): Declare.  Define it in ...
* config/loongarch/loongarch-cpu.cc
(loongarch_isa_base_features): ... here.
(fill_native_cpu_config): If we know the base ISA of the CPU
model from PRID, use it instead of la64 (v1.0).  Check if all
expected features of this base ISA is available, emit a warning
if not.
* config/loongarch/loongarch-opts.cc (config_target_isa): Enable
the features implied by the base ISA if not -march=native.
gcc/config/loongarch/loongarch-cpu.cc
gcc/config/loongarch/loongarch-def.h
gcc/config/loongarch/loongarch-opts.cc