https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113576
--- Comment #50 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Richard Biener from comment #49) > (In reply to Uroš Bizjak from comment #48) > > The runtime testcase fails on non-AVX512F x86 targets due to: > > > > /* { dg-do run } */ > > /* { dg-options "-O3" } */ > > /* { dg-additional-options "-march=skylake-avx512" { target { x86_64-*-* > > i?86-*-* } } } */ > > > > but check_vect() only checks runtime support up to AVX2. > > Hmm, can we fix that? We could change the above to { target avx512f_runtime > } > but that really only checks for AVX512F, not say AVX512VL ... > > I do remember using -mavx512vl wasn't enough to trigger the miscompile > nor did it trigger with -march=znver4 ... so I stuck to skylake-avx512 :/ It is certainly preferable to add -mavx512{bw,dq,vl} or whatever the testcase actually needs and then one can #define AVX512BW #define AVX512DQ #define AVX512VL #include "avx512-check.h" and get checks for all those.