2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gfortran.dg / vect / fast-math-pr37021.f90
blobb17ac9c32776327d249bf9fdb23f9409b7ac6e90
1 ! { dg-do compile }
2 ! { dg-require-effective-target vect_double }
4 subroutine to_product_of(self,a,b,a1,a2)
5 complex(kind=8) :: self (:)
6 complex(kind=8), intent(in) :: a(:,:)
7 complex(kind=8), intent(in) :: b(:)
8 integer a1,a2
9 self = ZERO
10 do i = 1,a1
11 do j = 1,a2
12 self(i) = self(i) + a(i,j)*b(j)
13 end do
14 end do
15 end subroutine
17 ! { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } }
18 ! { dg-final { cleanup-tree-dump "vect" } }