[Patch, Fortran] PR87597 - fix off-by-one issue with inline matmul

Dominique d'Humières dominiq@lps.ens.fr
Sat Oct 13 23:27:00 GMT 2018



> Le 14 oct. 2018 à 00:43, Tobias Burnus <burnus@net-b.de> a écrit :
> 
> Hi Dominique,
> 
> Dominique d'Humières wrote:
>> UNRESOLVED: gfortran.dg/inline_matmul_24.f90   -O0   scan-tree-dump-times optimized "gamma5[__var_1_do \\\\* 4 \\\\+ __var_2_do]" 1
>> 
>> ! { dg-final { scan-tree-dump-times "gamma5\[__var_1_do \\* 4 \\+ __var_2_do\]" 1 "optimized" } }
>> 
>> Shouldn’t -fdump-tree-original be -fdump-tree-optimized?
> 
> As it is a front-end optimization (which is explicitly enabled), -fdump-tree-original should work (and avoids issues with further later optimizations).
> 
> What do you get on your system? Seemingly something else than I do. Can you look for the gamma5 line in your dump?
> 
> Tobias

Then

! { dg-final { scan-tree-dump-times "gamma5\[__var_1_do \\* 4 \\+ __var_2_do\]" 1 "optimized" } }

should be

! { dg-final { scan-tree-dump-times "gamma5\[__var_1_do \\* 4 \\+ __var_2_do\]" 1 "original" } }

isn’t it?

see https://gcc.gnu.org/ml/gcc-testresults/2018-10/msg01721.html for non darwin log.

Dominique



More information about the Fortran mailing list