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