This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/84261] gcc fails to vectorize a function call


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

--- Comment #3 from Marcin Krotkiewski <marcin.krotkiewski at gmail dot com> ---
(In reply to Richard Biener from comment #1)
> Also vectorization of loops with using vectors isn't supported.

Not sure what you mean. If instead of a function call I do some floating point
computations in test1, e.g., 


#pragma omp declare simd simdlen(4)
double test1(double v1)
{
    for(int i=0; i<4; i++){
        v1 = v1*1.1;
    }
    return v1;
}


then the loop is 'vectorized' as expected, i.e., executed for short vector
arguments, and not for scalars.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]