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

--- Comment #2 from Torbjorn SVENSSON <azoff at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #1)
> They also pass for -march=znver4, I think the simple
> 
> /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" { xfail { { !
> aarch64_sve } && { ! riscv_v } }  } } } */
> 
> are simply bad for maintainance.  I'm not sure what we need here,
> it likely needs to be evaluated on a case by case basis.  A sample
> of two reveals that vect_condition and/or vect_cond_mixed might be
> needed.

I do not think it's as simple as to use `vect_condition`.

If I change the xfail expression in the test listed in comment 0, it will work
for the targets I test on arm-none-eabi, but will start to fail for
x86_64-linux-gnu.

There are also a bunch of other tests in the same directory that does test for
"vectorized 1 loops" that are either xfail or pass.

For the targets that I test on arm-none-eabi, most of them are unsupported.
Only Cortex-A7 with -mfloat-abi=hard appears to actually run these tests.

Based on this, I see no other option than adding arm*-*-* or arm-none-eabi,
even if it's ugly.

Reply via email to