1 ! Basic offloading test of arrays with provided lower
2 ! and upper bounds as specified by OpenMP's sectioning
3 ! REQUIRES: flang, amdgcn-amd-amdhsa
4 ! UNSUPPORTED: nvptx64-nvidia-cuda
5 ! UNSUPPORTED: nvptx64-nvidia-cuda-LTO
6 ! UNSUPPORTED: aarch64-unknown-linux-gnu
7 ! UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
8 ! UNSUPPORTED: x86_64-pc-linux-gnu
9 ! UNSUPPORTED: x86_64-pc-linux-gnu-LTO
11 ! RUN: %libomptarget-compile-fortran-run-and-check-generic
14 integer :: write_arr(10) = (/0,0,0,0,0,0,0,0,0,0/)
15 integer :: read_arr(10) = (/1,2,3,4,5,6,7,8,9,10/)
18 !$omp target map(to:read_arr(2:5)) map(from:write_arr(2:5)) map(to:i,j)
20 write_arr(i
) = read_arr(i
)
28 ! CHECK: 0 2 3 4 5 0 0 0 0 0