
GCC's Function Multi-Versioning (FMV) for being able to craft multiple versions of the same function and then select at run-time the best fit based on the CPU, can now cater to APX and AVX10.2 as being first introduced with Nova Lake and Diamond Rapids processors. This complements existing architecture features like AVX-512, SSE4, etc.
The new GCC FMV attribute targets are "avx10.2","apxf","arch=diamondrapids", and "arch=novalake" if wanting to target either APX or AVX10.2 individually or targeting Diamond Rapids or Nova Lake as a whole.
This commit is what landed the new FMV support for what will be part of next year's GCC 17.1 stable compiler release.