summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/matmul_14.f90
blob: 5c2b3f274ee7d75fb8a932dc1bbadac03fb4a94d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { dg-do compile }
! { dg-options "-O3 -fdump-tree-optimized" }
! Check that the default limit of 30 for inlining matmul applies.
program main
  integer, parameter :: n = 30
  real, dimension(n,n) :: a, b, c
  call random_number(a)
  call random_number(b)
  c = matmul(a,b)
  print *,sum(c)
end program main
! { dg-final { scan-tree-dump-times "_gfortran_matmul_r4" 0 "optimized" } }