This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/62283] New: SSE optimization fails
- From: "holst at matmech dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 27 Aug 2014 11:49:43 +0000
- Subject: [Bug fortran/62283] New: SSE optimization fails
- Auto-submitted: auto-generated
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