Le tiistaina 30. toukokuuta 2023, 15.25.25 EEST Martin Storsjö a écrit : > On Sun, 28 May 2023, Rémi Denis-Courmont wrote: > > Le sunnuntaina 28. toukokuuta 2023, 0.34.15 EEST Martin Storsjö a écrit : > >> I guess the alternative would be to just try to set .arch > >> <highest-supported-that-we-care-about>. I was worried that support for > >> e.g. armv8.6-a appeared later in toolchains than support for the > >> individual extension i8mm, but at least from a quick browse in binutils > >> history, they seem to have been added at the same time, so there's > >> probably no such drawback. > >> > >> Or what's the situation with e.g. SVE2 - was ".arch_extension sve2" > >> supported significantly earlier than ".arch armv9-a"? > > > > I have not tested SVE on LLVM. AFAIK, SVE and SVE2 are optional from 8.2 > > and 9.0 onward respectively, and not mandatory in any version, so if your > > toolchain supports neither .arch with plus sign, nor .arch_extension, it > > is game over. > > I didn't meant specifically whether LLVM supports it here, just in general > wrt binutils and how to enable the feature. > > FWIW it seems like SVE2 is a mandatory part of 9.0
Yes and no. SVE requires ARMv8.2, and SVE2 requires ARMv9.0, but neither are ever required by any existing ARM version. DDI0487 is abundantly clear that SVE2 is OPTIONAL: "[The Scalable Vector Extension version 2 (SVE2)] feature is supported in AArch64 state only. This feature is OPTIONAL in an Armv9.0 implementation," However it adds that "standard Armv9-A software platforms support FEAT_SVE2." > - assembling SVE2 instructions can be done with ".arch armv9-a". Presumably binutils targets "standard Armv9-A software platforms" by default, as opposed to just any "Armv9.0 implementation". I guess that means that any Cortex, Neoverse or other proper ARM design will include SVE2, but big-ass architecture licensees such as APPL and NVDA are not required to include SVE2 in their own designs. > But there are about 2 years > worth of deployed binutils based toolchains that do recognize ".arch > armv8.2-a; .arch_extension sve2" but don't recognize ".arch armv9-a". This is not entirely surprising, since SVE is much older than ARMv9, even if SVE2 requires ARMv9. -- レミ・デニ-クールモン http://www.remlab.net/ _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".