blob: 193479935f4376ed1334758578b790c53bd87fc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
! { dg-options "-O3 -fdump-tree-lversion-details" }
! Check that versioning is applied to a gather-like reduction operation.
function f(x, index, n)
integer :: n
real :: x(:)
integer :: index(n)
f = sum(x(index(:)))
end function f
! { dg-final { scan-tree-dump-times {want to version containing loop} 1 "lversion" } }
! { dg-final { scan-tree-dump-times {versioned this loop} 1 "lversion" } }
|