On Feb 13, 2025, at 1:51 AM, Alexandre Oliva <ol...@adacore.com> wrote: > > Some vect-simd-clone tests fail when targeting ancient x86 variants, > because the expected transformations only take place with -msse4 or > higher. > > So arrange for these tests to take an -msse4 option on x86, so that > the expected vectorization takes place, but decay to a compile test if > vect.exp would enable execution but the target doesn't have an sse4 > runtime. This requires the new dg-do-if to override the action on a > target while retaining the default action on others, instead of > disabling the test. > > We can count on avx512f compile-time support for these tests, because > vect_simd_clones requires that on x86, and that implies sse4 support, > so we need not complicate the scan conditionals with tests for sse4, > except on the last test. > > Regstrapped on x86_64-linux-gnu, also tested with gcc-14 targeting > x86_64-elf, targeting a cpu without sse4 support. Ok to install?
Ok. If you or others notice needed follow on work, ok for that as it should be easy enough to figure out once the bulk is in. I thought I saw one more needing review. I accidentally trashed the message while catching up and went to find it via name and no other comments. I didn't find it. Feel free to reping it.