Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / OpenMP / openmp-read-only-feature.c
blob4d1ec84075c800d545c38602145312075ffc356b
1 // REQUIRES: x86-registered-target
2 // REQUIRES: amdgpu-registered-target
3 // REQUIRES: clang-target-64-bits
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
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 -emit-llvm -S -o - %s 2>&1 | FileCheck %s
12 // CHECK: warning: feature flag '-image-insts' is ignored since the feature is read only
14 #pragma omp begin declare variant match(device = {arch(amdgcn)})
15 void foo();
16 #pragma omp end declare variant