1 // REQUIRES: x86-registered-target 2 // REQUIRES: amdgpu-registered-target 3 // REQUIRES: clang-target-64-bits 4 5 // RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -target-cpu gfx1030 \ 6 // RUN: -fopenmp -nogpulib -fopenmp-is-target-device -verify %s 7 // expected-no-diagnostics 8 9 // RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -target-cpu gfx1030 \ 10 // RUN: -fopenmp -nogpulib -target-feature -image-insts \ 11 // RUN: -fopenmp-is-target-device -S -o - %s 2>&1 | FileCheck %s 12 // CHECK: warning: feature flag '-image-insts' is ignored since the feature is read only 13 14 #pragma omp begin declare variant match(device = {arch(amdgcn)}) 15 void foo(); 16 #pragma omp end declare variant 17