https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88265
--- Comment #6 from janus at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #5) > Instead of adding -march= please add instead say -mavx2 -mno-avx512f or > whatever ISA set you want to pick, and probably also > -mprefer-vector-width=256 or what you want. I guess it might be a good idea to have different variants of the test case that check the correct vector widths for AVX, AVX2, AVX512, etc. Of course one would need to make sure that e.g. the AVX512 variant is only executed on AVX512 hardware (e.g. skylake CPU).