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

Tobias Burnus burnus@net-b.de
Mon Oct 15 19:02:00 GMT 2018


Fixed with commit Rev. 265175 as attached.

Cheers

Tobias


Dominique d'Humières wrote:

>> Le 14 oct. 2018 à 00:43, Tobias Burnus <burnus@net-b.de> a écrit :
>>
>>
>> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr87597.diff
Type: text/x-patch
Size: 2790 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20181015/11e0d9ec/attachment.bin>


More information about the Fortran mailing list