https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125871

--- Comment #5 from rguenther at suse dot de <rguenther at suse dot de> ---
On Fri, 19 Jun 2026, tnfchris at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125871
> 
> --- Comment #4 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
> (In reply to H.J. Lu from comment #3)
> > (In reply to Tamar Christina from comment #2)
> > > (In reply to Richard Biener from comment #1)
> > > > I'll note that
> > > > 
> > > > /* { dg-additional-options "-mavx512f" { target { i?86-*-* x86_64-*-* } 
> > > > } }
> > > > */
> > > > /* { dg-require-effective-target avx512f_runtime { target i?86-*-*
> > > > x86_64-*-* } } */
> > > > 
> > > > is overly restrictive and should do
> > > > 
> > > > /* { dg-additional-options "-mavx512f" { target avx512f_runtime } } */
> > > > 
> > > > And gate the dump scans on { target avx512f }
> > > > 
> > > > I'll also note that we should really fixup check_vect () to gate AVX512
> > > > enabled features ...
> > > 
> > > Yeah I don't really understand all the knobs so I copy things from other
> > > tests.
> > > 
> > > I build x86 with -march=native because this gives more vectorization. But
> > > this makes it impossible to whether I need random flag to make things pass
> > > when not.
> > > 
> > 
> > It is independent of -march=native.  Please try
> > 
> > make check-gcc RUNTESTFLAGS="--target_board='unix{-m32,}' 
> > vect.exp=gcc.dg/vect/vect-early-break_144-pr125804.c"
> > 
> > It fails with -m32.

I think only on a host which has avx512f_runtime.

Reply via email to