| 1 |
! { dg-do compile { target aarch64-*-* } } |
| 2 |
! { dg-additional-options "-w -Ofast -fdump-tree-ivopts-all" } |
| 3 |
|
| 4 |
module a |
| 5 |
integer, parameter :: b=3, c=b |
| 6 |
contains |
| 7 |
subroutine d(block) |
| 8 |
integer f, col , block(:, :, :), e |
| 9 |
do f = 1, c |
| 10 |
do col = 1, c |
| 11 |
block(:f, :, e()) = do |
| 12 |
end do |
| 13 |
end do |
| 14 |
end |
| 15 |
end |
| 16 |
|
| 17 |
! { dg-final { scan-tree-dump-not {Selected IV set for loop .+ niters, 3 IVs:} ivopts } } |
| 18 |
! { dg-final { scan-tree-dump-times {Selected IV set for loop .+ niters, 2 IVs:} 1 ivopts } } |
| 19 |
! { dg-final { scan-tree-dump-times {Selected IV set for loop .+ niters, 1 IVs:} 1 ivopts } } |
| 20 |
|