| 1 |
! { dg-additional-options "-O2 -fdump-tree-original -fdump-tree-gimple" } |
| 2 |
|
| 3 |
subroutine test1 |
| 4 |
implicit none |
| 5 |
integer :: i |
| 6 |
!$omp unroll full |
| 7 |
do i = 1,10 |
| 8 |
call dummy(i) |
| 9 |
end do |
| 10 |
end subroutine test1 |
| 11 |
|
| 12 |
! Loop should be removed with 10 copies of the body remaining |
| 13 |
! { dg-final { scan-tree-dump "#pragma omp unroll full" "original" } } |
| 14 |
! { dg-final { scan-tree-dump-not "#pragma omp" "gimple" } } |
| 15 |
! { dg-final { scan-tree-dump "\.ANNOTATE \\\(\[^\n\r\]*, 1, 10\\\);" "gimple" } } |