blob: 788b5ffc9c829c036e09d7e3b2e93ba0b33b94df [file]
! The loops of simt-collapse-1.f90 in the default offload mode, simd on GCN:
! they must get no SIMT region, and compute the same results.
! { dg-do run }
! { dg-skip-if "tests the default offload mode" { *-*-* } { "--param=offload-gpu-mode=simt*" } { "" } }
! { dg-additional-options "-O2" }
! { dg-additional-options "-foffload-options=-fdump-tree-optimized" { target offload_target_amdgcn } }
! In simd mode, the offload compiler warns on t_one's loop, whose accesses
! stay within BUF.
! { dg-prune-output "iteration \[0-9\]+ invokes undefined behavior" }
include "simt-collapse-1.f90"
! { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump-not "GOMP_SIMT_ENTER" "optimized" { target offload_target_amdgcn } } }