This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, fortran] Fix PR 69154, inline matmul with WHERE
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Toon Moene <toon at moene dot org>
- Cc: fortran at gcc dot gnu dot org
- Date: Mon, 11 Jan 2016 14:25:27 -0800
- Subject: Re: [patch, fortran] Fix PR 69154, inline matmul with WHERE
- Authentication-results: sourceware.org; auth=none
- References: <5692469F dot 8090906 at netcologne dot de> <56942582 dot 7000307 at moene dot org>
On Mon, Jan 11, 2016 at 10:58:26PM +0100, Toon Moene wrote:
>
> Am I correct in assuming that your inlining of MATMUL only treats the
> form MATMUL(A, B) and not MATMUL(A, TRANSPOSE(B)) ?
>
program u8
real a(3,3), b(3,3), c(3,3)
call random_number(a)
call random_number(b)
c = matmul(a,transpose(b))
print *,c(1,1)
end program u8
% gfc6 -O2 -o z -fdump-tree-original u8.f90 && grep matmul u8.f90.003t.original
_gfortran_matmul_r4 (&parm.2, D.3427, D.3429, 0, 0, 0B);
--
Steve