https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124722
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Matthias Kretz (Vir) from comment #5)
> -march=pentium3 still fails but -march=pentium4 succeeds. The latter has
> SSE2. So I could guard it on SSE2. But I feel more comfortable with just
> x86_64. The versions.def change is easy. The dg-require-effective-target
> can't use x86-64. I guess I need 'x86 && lp64'?
Or just
// dg-additional-options "-msse2" }
or
// dg-additional-options "-msse2 -mfpmath=sse" }
depending on what is needed.
Note, for the float16 test what I wrote, i.e.
// { dg-effective-target float16 }
// { dg-add-options float16 }
is the canonical way to get that effect (but not because the test wants SSE2,
but because it wants working std::float16_t/_Float16).