blob: 056156aa134c0e2667a54ef4d121cb364b6a657e [file]
/* The loops of simt-collapse-reduction-1.c 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 -Wno-deprecated-openmp" } */
/* { dg-additional-options "-foffload-options=-fdump-tree-optimized" { target offload_target_amdgcn } } */
/* { dg-additional-options "-foffload-options=nvptx-none=-latomic" { target offload_target_nvptx } } */
#include "simt-collapse-reduction-1.c"
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump-not "GOMP_SIMT_ENTER" "optimized" { target offload_target_amdgcn } } } */