https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112457
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Xi Ruoyao from comment #4)
> There is also:
>
> double
> test (double *p)
> {
> double ret = p[0];
> for (int i = 1; i < 4; i++)
> ret = __builtin_fmin (ret, p[i]);
> return ret;
> }
>
> This is not vectorized.
This is vectorized in GCC 15.2 with
-O3 -march=x86-64-v3 -Wall -Wextra -fopt-info-vec-missed-optimized
-fno-signed-zeros -ffinite-math-only
But not without -fno-signed-zeros -ffinite-math-only