1 ! { dg-do compile { target { i?86-*-* x86_64-*-* } } }
2 ! { dg-options "-O3 -mavx" }
10 integer, parameter :: dp
=kind(1.d0
)
14 real(kind
=dp
), allocatable
:: real_array_A(:),real_array_B(:,:)
15 complex(kind
=dp
), allocatable
:: cmplx_array_A(:)
23 allocate(cmplx_array_A(P
),real_array_B(P
,P
),real_array_A(P
))
29 cmplx_array_A
= cmplx(real_array_B(:,i
),0.0_dp
,dp
)
30 cmplx_array_A
= cmplx_array_A
* exp(cmplx(0.0_dp
,real_array_A
+1))
33 deallocate(cmplx_array_A
,real_array_B
,real_array_A
)
35 end subroutine routine_A