brintos

brintos / llvm-project-archived public Read only

0
0
Text · 805 B · 52518d4 Raw
45 lines · plain
1! Testing the Semantics of tile2!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=513 4 5subroutine nonrectangular_loop_lb6  implicit none7  integer i, j8 9  !ERROR: Trip count must be computable and invariant10  !$omp tile sizes(2,2)11  do i = 1, 512    do j = 1, i13      print *, i, j14    end do15  end do16end subroutine17 18 19subroutine nonrectangular_loop_ub20  implicit none21  integer i, j22 23  !ERROR: Trip count must be computable and invariant24  !$omp tile sizes(2,2)25  do i = 1, 526    do j = 1, i27      print *, i, j28    end do29  end do30end subroutine31 32 33subroutine nonrectangular_loop_step34  implicit none35  integer i, j36 37  !ERROR: Trip count must be computable and invariant38  !$omp tile sizes(2,2)39  do i = 1, 540    do j = 1, 42, i41      print *, i, j42    end do43  end do44end subroutine45