aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr88934.f90
blob: 7c76911b01635552aeffe5604f1ca98ffdfb1de1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
! { dg-do compile }
! { dg-options "-O -ftree-vectorize" }
! { dg-additional-options "-mvsx" { target powerpc*-*-* } }
integer, parameter :: a=3
  integer , dimension(a,a) :: b
  logical, dimension(a,a) :: c
  do i=0,1
     b = ltoi(c)
     do j=0,if
        if (anymatmul(b) /= 0) then
        end if
     end do
  end do
contains
  elemental function ltoi(d)
    logical, intent(in) :: d
    if (d) then
       ltoi = 1
    else
       ltoi = 0
    end if
  end
end