Allow disabling LASX/LSX on LoongArch (loongarch64)#5108
Allow disabling LASX/LSX on LoongArch (loongarch64)#5108MingcongBai wants to merge 1 commit intorandombit:masterfrom
Conversation
|
The main reason this flag exists for NEON is for distros (basically just Debian and derivatives) which for whatever reason require their ARMv7 builds to not include NEON at all, even as optional codepaths with feature detection. Does some similar situation apply here? In general for embedded builds where code size is a concern the recommended approach is to use the option |
It is also the case here and the platforms diverts - LoongArch desktop/server targets assumes 128-bit vector support, whereas embedded targets have no vector support at all. |
Some embedded-oriented Loongson processors based on the LoongArch ISA, such as 2K0300 and 2K0500 do not have SIMD support (LSX or LASX), and embedded SoCs such as 2K1000LA/2K1500/2K2000/2K3000/3B6000M do not come with support for LASX. Add two switches for disabling SIMD extensions. Even when runtime detection is implemented, this saves code sizes. [Mingcong Bai: Resolved a minor merge conflict in configure.py] Link: randombit#5108 Signed-off-by: Mingcong Bai <jeffbai@aosc.io>
Some embedded-oriented Loongson processors based on the LoongArch ISA, such as 2K0300 and 2K0500 do not have SIMD support (LSX or LASX), and embedded SoCs such as 2K1000LA/2K1500/2K2000/2K3000/3B6000M do not come with support for LASX. Add two switches for disabling SIMD extensions. Even when runtime detection is implemented, this saves code sizes. Signed-off-by: Mingcong Bai <jeffbai@aosc.io>
29cf657 to
c662076
Compare
Some embedded-oriented Loongson processors based on the LoongArch ISA, such as 2K0300 and 2K0500 do not have SIMD support (LSX or LASX), and embedded SoCs such as 2K1000LA/2K1500/2K2000/2K3000/3B6000M do not come with support for LASX.
Add two switches for disabling SIMD extensions. Even when runtime detection is implemented, this saves code sizes.