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

--- Comment #3 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #1)
> Hum, the vectorizer looks at the simd specs and if it says 1-lane variants
> (simdlen == 1) are available it will happily create them.
>

My understanding is that the spec just says "All SIMD variants are available"
but technically V1DF is FP not SIMD. 

> Can you provide the testcase amended with the used SIMD "declarations"
> (as with the fortran syntax or with a C testcase)?

fair point:

!GCC$ builtin (cos) attributes simd (notinbranch)

      SUBROUTINE a(b)
      DIMENSION b(3,0)
      COMMON c
      DO 4 m=1,c
         DO 4 d=1,3
             b(d,m)=b(d,m)+COS(5.0D00*m)
   4  CONTINUE
      END
      DIMENSION e(53)
      DIMENSION f(6,91),g(6,91),h(6,91),
     *          i(6,91),j(6,91),k(6,86)
      DIMENSION l(107)
      END

where just

aarch64-unknown-linux-gnu-gfortran -S -o - -Ofast -w cosmo.fppized3.f

is enough.

Reply via email to