[Bug fortran/62283] New: SSE optimization fails

holst at matmech dot com gcc-bugzilla@gcc.gnu.org
Wed Aug 27 11:49:00 GMT 2014


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

            Bug ID: 62283
           Summary: SSE optimization fails
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: holst at matmech dot com

If the `value` specifier below is removed, GFortran generates scalar code
instead of vectorized code as it should. 

$ cat saxpy.f
      subroutine saxpy(alpha,x,y)
      value alpha
      real x(4),y(4)
      y(1)=y(1)+alpha*x(1)
      y(2)=y(2)+alpha*x(2)
      y(3)=y(3)+alpha*x(3)
      y(4)=y(4)+alpha*x(4)
end
$ gfortran -S -msse2 -O3 saxpy.f
$ more saxpy.s



More information about the Gcc-bugs mailing list