2 ! { dg-options "-ffrontend-optimize -fdump-tree-original" }
6 ! Contributed by gallmeister
8 ! Before, for the inlined matmul,
9 ! gamma5 was converted to an EXPR_ARRAY with lbound = 1
10 ! instead of the lbound = 0 as declared; leading to
11 ! an off-by-one problem.
15 complex, dimension(0:3,0:3), parameter :: gamma5
= reshape((/ 0., 0., 1., 0., &
18 0., 1., 0., 0. /),(/4,4/))
19 complex, dimension(0:3,0:3) :: A
, B
, D
30 D
= reshape([0, 0, 2, 0, &
41 end program testMATMUL
42 ! { dg-final { scan-tree-dump-times "gamma5\\\[__var_1_do \\* 4 \\+ __var_2_do\\\]|gamma5\\\[NON_LVALUE_EXPR <__var_1_do> \\* 4 \\+ NON_LVALUE_EXPR <__var_2_do>\\\]" 1 "original" } }