vectorized builtin reductions without -ffast-math.
-Original Message-
From: Richard Biener
Sent: 19 December 2018 12:35
To: Alejandro Martinez Vicente
Cc: GCC Patches ; Richard Sandiford
; nd
Subject: Re: [Patch, Vectorizer, SVE] fmin/fmax builtin reduction support
On Wed, Dec 19, 2018 a
On Wed, Dec 19, 2018 at 10:33 AM Alejandro Martinez Vicente
wrote:
>
> Hi all,
>
> Loops that use the fmin/fmax builtins can be vectorized even without
> -ffast-math using SVE's FMINNM/FMAXNM instructions. This is an example:
>
> double
> f (double *x, int n)
> {
> double res = 100.0;
> for (i
Hi all,
Loops that use the fmin/fmax builtins can be vectorized even without
-ffast-math using SVE's FMINNM/FMAXNM instructions. This is an example:
double
f (double *x, int n)
{
double res = 100.0;
for (int i = 0; i < n; ++i)
res = __builtin_fmin (res, x[i]);
return res;
}
Before th