https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84261
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |openmp Component|libgomp |tree-optimization --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Richard Biener from comment #1) > This is because reduction operations like 'exp' are not supported. Also > vectorization of loops with using vectors isn't supported. > > So not sure what you are expecting. The declare simd on the functions is essentially an implicit loop around the whole body, so the function in this cases is passed a V4DFmode argument and V4DFmode result and for each of the elements performs the body of the loop. Guess we don't vectorize test1 because we fail to unroll the loop for some reason.