1 // RUN: %clang_cc1 -verify -fopenmp -x c++ -emit-llvm %s -fexceptions -fcxx-exceptions -o - | FileCheck %s
2 // RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -triple x86_64-unknown-unknown -fexceptions -fcxx-exceptions -emit-pch -o %t %s
3 // RUN: %clang_cc1 -fopenmp -x c++ -triple x86_64-unknown-unknown -fexceptions -fcxx-exceptions -debug-info-kind=limited -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s
4 // RUN: %clang_cc1 -verify -fopenmp -fopenmp-enable-irbuilder -x c++ -emit-llvm %s -fexceptions -fcxx-exceptions -o - | FileCheck %s
5 // RUN: %clang_cc1 -fopenmp -fopenmp-enable-irbuilder -x c++ -std=c++11 -triple x86_64-unknown-unknown -fexceptions -fcxx-exceptions -emit-pch -o %t %s
6 // RUN: %clang_cc1 -fopenmp -fopenmp-enable-irbuilder -x c++ -triple x86_64-unknown-unknown -fexceptions -fcxx-exceptions -debug-info-kind=limited -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s
8 // RUN: %clang_cc1 -verify -fopenmp-simd -x c++ -emit-llvm %s -fexceptions -fcxx-exceptions -o - | FileCheck --check-prefix SIMD-ONLY0 %s
9 // RUN: %clang_cc1 -fopenmp-simd -x c++ -std=c++11 -triple x86_64-unknown-unknown -fexceptions -fcxx-exceptions -emit-pch -o %t %s
10 // RUN: %clang_cc1 -fopenmp-simd -x c++ -triple x86_64-unknown-unknown -fexceptions -fcxx-exceptions -debug-info-kind=limited -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY0 %s
11 // SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
12 // expected-no-diagnostics
20 #pragma omp flush acq_rel
21 #pragma omp flush acquire
22 #pragma omp flush release
31 #pragma omp flush acq_rel
32 #pragma omp flush acquire
33 #pragma omp flush release
35 // CHECK: call {{.*}}void @__kmpc_flush(ptr {{(@|%).+}})
36 // CHECK: call {{.*}}void @__kmpc_flush(ptr {{(@|%).+}})
37 // CHECK: call {{.*}}void @__kmpc_flush(ptr {{(@|%).+}})
38 // CHECK: call {{.*}}void @__kmpc_flush(ptr {{(@|%).+}})
39 // CHECK: call {{.*}}void @__kmpc_flush(ptr {{(@|%).+}})
41 // CHECK: call {{.*}} [[TMAIN:@.+]](
46 // CHECK: call {{.*}}void @__kmpc_flush(ptr {{(@|%).+}})
47 // CHECK: call {{.*}}void @__kmpc_flush(ptr {{(@|%).+}})
48 // CHECK: call {{.*}}void @__kmpc_flush(ptr {{(@|%).+}})
49 // CHECK: call {{.*}}void @__kmpc_flush(ptr {{(@|%).+}})
50 // CHECK: call {{.*}}void @__kmpc_flush(ptr {{(@|%).+}})
53 // CHECK-NOT: line: 0,