1 // expected-no-diagnostics 2 #ifndef HEADER 3 #define HEADER 4 // Test host codegen. 5 // RUN: %clang_cc1 -DCK1 -verify -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefix CK1 --check-prefix CK1-64 6 // RUN: %clang_cc1 -DCK1 -fopenmp -x c++ -std=c++11 -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-pch -o %t %s 7 // RUN: %clang_cc1 -DCK1 -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s --check-prefix CK1 --check-prefix CK1-64 8 // RUN: %clang_cc1 -DCK1 -verify -fopenmp -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefix CK1 --check-prefix CK1-32 9 // RUN: %clang_cc1 -DCK1 -fopenmp -x c++ -std=c++11 -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -emit-pch -o %t %s 10 // RUN: %clang_cc1 -DCK1 -fopenmp -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s --check-prefix CK1 --check-prefix CK1-32 11 12 // RUN: %clang_cc1 -DCK1 -verify -fopenmp-simd -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY0 %s 13 // RUN: %clang_cc1 -DCK1 -fopenmp-simd -x c++ -std=c++11 -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-pch -o %t %s 14 // RUN: %clang_cc1 -DCK1 -fopenmp-simd -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY0 %s 15 // RUN: %clang_cc1 -DCK1 -verify -fopenmp-simd -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY0 %s 16 // RUN: %clang_cc1 -DCK1 -fopenmp-simd -x c++ -std=c++11 -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -emit-pch -o %t %s 17 // RUN: %clang_cc1 -DCK1 -fopenmp-simd -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY0 %s 18 // SIMD-ONLY0-NOT: {{__kmpc|__tgt}} 19 #ifdef CK1 20 21 int a[100]; 22 23 // CK1: define {{.*}}i32 @{{.+}}teams_argument_globali( 24 int teams_argument_global(int n){ 25 int te = n / 128; 26 int th = 128; 27 // discard n_addr 28 // CK1: alloca i32, 29 // CK1: [[TE:%.+]] = alloca i32, 30 // CK1: [[TH:%.+]] = alloca i32, 31 // CK1: [[TE_CAST:%.+]] = alloca i{{32|64}}, 32 // CK1: [[TH_CAST:%.+]] = alloca i{{32|64}}, 33 // CK1: [[TE_PAR:%.+]] = load{{.+}}, {{.+}} [[TE_CAST]], 34 // CK1: [[TH_PAR:%.+]] = load{{.+}}, {{.+}} [[TH_CAST]], 35 36 // CK1: call i32 @__tgt_target_teams(i64 -1, i8* @{{[^,]+}}, i32 4, i8** %{{[^,]+}}, i8** %{{[^,]+}}, i{{64|32}}* {{.+}}@{{[^,]+}}, i32 0, i32 0), i64* {{.+}}@{{[^,]+}}, i32 0, i32 0), i32 {{.+}}, i32 {{.+}}) 37 38 // CK1: call void @[[OFFL1:.+]](i{{32|64}} [[TE_PAR]], i{{32|64}} [[TH_PAR]], 39 #pragma omp target 40 #pragma omp teams distribute num_teams(te), thread_limit(th) 41 for(int i = 0; i < n; i++) { 42 a[i] = 0; 43 } 44 45 // CK1: call i32 @__tgt_target_teams(i64 -1, i8* @{{[^,]+}}, i32 2, i8** %{{[^,]+}}, i8** %{{[^,]+}}, i{{64|32}}* {{.+}}@{{[^,]+}}, i32 0, i32 0), i64* {{.+}}@{{[^,]+}}, i32 0, i32 0), i32 0, i32 0) 46 // CK1: call void @[[OFFL2:.+]](i{{64|32}} %{{.+}}) 47 #pragma omp target 48 {{{ 49 #pragma omp teams distribute 50 for(int i = 0; i < n; i++) { 51 a[i] = 0; 52 } 53 }}} 54 55 // outlined target regions 56 // CK1: define internal void @[[OFFL1]](i{{32|64}} [[TE_ARG:%.+]], i{{32|64}} [[TH_ARG:%.+]], i{{32|64}} {{.+}}, {{.+}}) 57 // CK1: [[TE_ADDR:%.+]] = alloca i{{32|64}}, 58 // CK1: [[TH_ADDR:%.+]] = alloca i{{32|64}}, 59 // CK1: store{{.+}} [[TE_ARG]], {{.+}} [[TE_ADDR]], 60 // CK1: store{{.+}} [[TH_ARG]], {{.+}} [[TH_ADDR]], 61 // CK1-64: [[TE_CONV:%.+]] = bitcast{{.+}} [[TE_ADDR]] to 62 // CK1-64: [[TH_CONV:%.+]] = bitcast{{.+}} [[TH_ADDR]] to 63 // CK1-64: [[TE_VAL:%.+]] = load i32, i32* [[TE_CONV]], 64 // CK1-64: [[TH_VAL:%.+]] = load i32, i32* [[TH_CONV]], 65 // CK1-32: [[TE_VAL:%.+]] = load i32, i32* [[TE_ADDR]], 66 // CK1-32: [[TH_VAL:%.+]] = load i32, i32* [[TH_ADDR]], 67 // CK1: {{%.+}} = call i32 @__kmpc_push_num_teams({{.+}}, {{.+}}, i32 [[TE_VAL]], i32 [[TH_VAL]]) 68 // CK1: call void {{.+}} @__kmpc_fork_teams({{.+}}, i32 2, {{.+}} @[[OUTL1:.+]] to {{.+}}, {{.+}}, {{.+}}) 69 // CK1: ret void 70 71 // CK1: define internal void @[[OUTL1]]({{.+}}) 72 // CK1: call void @__kmpc_for_static_init_4( 73 // CK1: call void @__kmpc_for_static_fini( 74 // CK1: ret void 75 76 // CK1: define internal void @[[OFFL2]]({{.+}}, {{.+}}) 77 // CK1: call void {{.+}} @__kmpc_fork_teams({{.+}}, i32 2, {{.+}} @[[OUTL2:.+]] to {{.+}}, {{.+}}, {{.+}}) 78 // CK1: ret void 79 80 // CK1: define internal void @[[OUTL2]]({{.+}}) 81 // CK1: call void @__kmpc_for_static_init_4( 82 // CK1: call void @__kmpc_for_static_fini( 83 // CK1: ret void 84 85 return a[0]; 86 } 87 88 #endif // CK1 89 90 // Test host codegen. 91 // RUN: %clang_cc1 -DCK2 -verify -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefix CK2 --check-prefix CK2-64 92 // RUN: %clang_cc1 -DCK2 -fopenmp -x c++ -std=c++11 -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-pch -o %t %s 93 // RUN: %clang_cc1 -DCK2 -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s --check-prefix CK2 --check-prefix CK2-64 94 // RUN: %clang_cc1 -DCK2 -verify -fopenmp -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefix CK2 --check-prefix CK2-32 95 // RUN: %clang_cc1 -DCK2 -fopenmp -x c++ -std=c++11 -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -emit-pch -o %t %s 96 // RUN: %clang_cc1 -DCK2 -fopenmp -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s --check-prefix CK2 --check-prefix CK2-32 97 98 // RUN: %clang_cc1 -DCK2 -verify -fopenmp-simd -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY1 %s 99 // RUN: %clang_cc1 -DCK2 -fopenmp-simd -x c++ -std=c++11 -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-pch -o %t %s 100 // RUN: %clang_cc1 -DCK2 -fopenmp-simd -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY1 %s 101 // RUN: %clang_cc1 -DCK2 -verify -fopenmp-simd -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY1 %s 102 // RUN: %clang_cc1 -DCK2 -fopenmp-simd -x c++ -std=c++11 -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -emit-pch -o %t %s 103 // RUN: %clang_cc1 -DCK2 -fopenmp-simd -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY1 %s 104 // SIMD-ONLY1-NOT: {{__kmpc|__tgt}} 105 #ifdef CK2 106 107 // CK2: define {{.*}}i32 @{{.+}}teams_local_argv( 108 int teams_local_arg(void) { 109 int n = 100; 110 int a[n]; 111 112 // CK2: call i32 @__tgt_target_teams(i64 -1, i8* @{{[^,]+}}, i32 3, i8** %{{[^,]+}}, i8** %{{[^,]+}}, i{{64|32}}* {{.+}}, i64* {{.+}}@{{[^,]+}}, i32 0, i32 0), i32 0, i32 0) 113 // CK2: call void @[[OFFL1:.+]](i{{64|32}} %{{.+}}) 114 #pragma omp target 115 #pragma omp teams distribute 116 for(int i = 0; i < n; i++) { 117 a[i] = 0; 118 } 119 120 // outlined target region 121 // CK2: define internal void @[[OFFL1]]({{.+}}, {{.+}}) 122 // CK2: call void {{.+}} @__kmpc_fork_teams({{.+}}, i32 3, {{.+}} @[[OUTL1:.+]] to {{.+}}, {{.+}}, {{.+}}) 123 // CK2: ret void 124 125 // CK2: define internal void @[[OUTL1]]({{.+}}) 126 // CK2: call void @__kmpc_for_static_init_4( 127 // CK2: call void @__kmpc_for_static_fini( 128 // CK2: ret void 129 130 return a[0]; 131 } 132 #endif // CK2 133 134 // Test host codegen. 135 // RUN: %clang_cc1 -DCK3 -verify -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefix CK3 --check-prefix CK3-64 136 // RUN: %clang_cc1 -DCK3 -fopenmp -x c++ -std=c++11 -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-pch -o %t %s 137 // RUN: %clang_cc1 -DCK3 -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s --check-prefix CK3 --check-prefix CK3-64 138 // RUN: %clang_cc1 -DCK3 -verify -fopenmp -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefix CK3 --check-prefix CK3-32 139 // RUN: %clang_cc1 -DCK3 -fopenmp -x c++ -std=c++11 -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -emit-pch -o %t %s 140 // RUN: %clang_cc1 -DCK3 -fopenmp -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s --check-prefix CK3 --check-prefix CK3-32 141 142 // RUN: %clang_cc1 -DCK3 -verify -fopenmp-simd -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY2 %s 143 // RUN: %clang_cc1 -DCK3 -fopenmp-simd -x c++ -std=c++11 -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-pch -o %t %s 144 // RUN: %clang_cc1 -DCK3 -fopenmp-simd -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY2 %s 145 // RUN: %clang_cc1 -DCK3 -verify -fopenmp-simd -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY2 %s 146 // RUN: %clang_cc1 -DCK3 -fopenmp-simd -x c++ -std=c++11 -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -emit-pch -o %t %s 147 // RUN: %clang_cc1 -DCK3 -fopenmp-simd -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY2 %s 148 // SIMD-ONLY2-NOT: {{__kmpc|__tgt}} 149 #ifdef CK3 150 151 // CK3: [[SSI:%.+]] = type { [{{.+}} x i32], float } 152 153 template <typename T, int X, long long Y> 154 struct SS{ 155 T a[X]; 156 float b; 157 // CK3: define {{.*}}i32 @{{.+}}foo{{.+}}( 158 int foo(void) { 159 160 // CK3: call i32 @__tgt_target_teams(i64 -1, i8* @{{[^,]+}}, i32 1, i8** %{{[^,]+}}, i8** %{{[^,]+}}, i{{64|32}}* {{.+}}@{{[^,]+}}, i32 0, i32 0), i64* {{.+}}@{{[^,]+}}, i32 0, i32 0), i32 0, i32 0) 161 // CK3: call void @[[OFFL1:.+]]([[SSI]]* %{{.+}}) 162 #pragma omp target 163 #pragma omp teams distribute 164 for(int i = 0; i < X; i++) { 165 a[i] = (T)0; 166 } 167 168 // outlined target region 169 // CK3: define internal void @[[OFFL1]]([[SSI]]* {{.+}}) 170 // CK3: call void {{.+}} @__kmpc_fork_teams({{.+}}, i32 1, {{.+}} @[[OUTL1:.+]] to {{.+}}, {{.+}}, {{.+}}) 171 // CK3: ret void 172 173 // CK3: define internal void @[[OUTL1]]({{.+}}) 174 // CK3: call void @__kmpc_for_static_init_4( 175 // CK3: call void @__kmpc_for_static_fini( 176 // CK3: ret void 177 178 return a[0]; 179 } 180 }; 181 182 int teams_template_struct(void) { 183 SS<int, 123, 456> V; 184 return V.foo(); 185 186 } 187 #endif // CK3 188 189 // Test host codegen. 190 // RUN: %clang_cc1 -DCK4 -verify -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefix CK4 --check-prefix CK4-64 191 // RUN: %clang_cc1 -DCK4 -fopenmp -x c++ -std=c++11 -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-pch -o %t %s 192 // RUN: %clang_cc1 -DCK4 -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s --check-prefix CK4 --check-prefix CK4-64 193 // RUN: %clang_cc1 -DCK4 -verify -fopenmp -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefix CK4 --check-prefix CK4-32 194 // RUN: %clang_cc1 -DCK4 -fopenmp -x c++ -std=c++11 -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -emit-pch -o %t %s 195 // RUN: %clang_cc1 -DCK4 -fopenmp -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s --check-prefix CK4 --check-prefix CK4-32 196 197 // RUN: %clang_cc1 -DCK4 -verify -fopenmp-simd -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY3 %s 198 // RUN: %clang_cc1 -DCK4 -fopenmp-simd -x c++ -std=c++11 -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-pch -o %t %s 199 // RUN: %clang_cc1 -DCK4 -fopenmp-simd -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY3 %s 200 // RUN: %clang_cc1 -DCK4 -verify -fopenmp-simd -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY3 %s 201 // RUN: %clang_cc1 -DCK4 -fopenmp-simd -x c++ -std=c++11 -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -emit-pch -o %t %s 202 // RUN: %clang_cc1 -DCK4 -fopenmp-simd -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY3 %s 203 // SIMD-ONLY3-NOT: {{__kmpc|__tgt}} 204 205 #ifdef CK4 206 207 template <typename T, int n> 208 int tmain(T argc) { 209 T a[n]; 210 int te = n/128; 211 int th = 128; 212 #pragma omp target 213 #pragma omp teams distribute num_teams(te) thread_limit(th) 214 for(int i = 0; i < n; i++) { 215 a[i] = (T)0; 216 } 217 return 0; 218 } 219 220 int main (int argc, char **argv) { 221 int n = 100; 222 int a[n]; 223 #pragma omp target 224 #pragma omp teams distribute 225 for(int i = 0; i < n; i++) { 226 a[i] = 0; 227 } 228 return tmain<int, 10>(argc); 229 } 230 231 // CK4: define {{.*}}i32 @{{[^,]+}}(i{{.+}}{{.+}} %[[ARGC:.+]], {{.+}}) 232 // CK4: call i32 @__tgt_target_teams(i64 -1, i8* @{{[^,]+}}, i32 3, i8** %{{[^,]+}}, i8** %{{[^,]+}}, i{{64|32}}* {{.+}}, i64* {{.+}}@{{[^,]+}}, i32 0, i32 0), i32 0, i32 0) 233 // CK4: call void @[[OFFL1:.+]]({{.+}}) 234 // CK4: {{%.+}} = call{{.*}} i32 @[[TMAIN:.+]]({{.+}}) 235 // CK4: ret 236 237 // CK4: define {{.*}}void @[[OFFL1]]({{.+}}) 238 // CK4: call void {{.+}} @__kmpc_fork_teams({{.+}}, i32 3, {{.+}} @[[OUTL1:.+]] to {{.+}}, {{.+}}, {{.+}}) 239 // CK4: ret void 240 241 // CK4: define internal void @[[OUTL1]]({{.+}}) 242 // CK4: call void @__kmpc_for_static_init_4( 243 // CK4: call void @__kmpc_for_static_fini( 244 // CK4: ret void 245 246 // CK4: define {{.*}}i32 @[[TMAIN]]({{.+}}) 247 // CK4: call i32 @__tgt_target_teams(i64 -1, i8* @{{[^,]+}}, i32 3, i8** %{{[^,]+}}, i8** %{{[^,]+}}, i{{64|32}}* {{.+}}@{{[^,]+}}, i32 0, i32 0), i64* {{.+}}@{{[^,]+}}, i32 0, i32 0), i32 {{.+}}, i32 {{.+}}) 248 // CK4: call void @[[OFFLT:.+]]({{.+}}) 249 // CK4: ret 250 // CK4-NEXT: } 251 252 // CK4: define {{.*}}void @[[OFFLT]](i{{32|64}} [[TE_ARG:%.+]], i{{32|64}} [[TH_ARG:%.+]], {{.+}}) 253 // CK4: [[TE_ADDR:%.+]] = alloca i{{32|64}}, 254 // CK4: [[TH_ADDR:%.+]] = alloca i{{32|64}}, 255 // CK4: store{{.+}} [[TE_ARG]], {{.+}} [[TE_ADDR]], 256 // CK4: store{{.+}} [[TH_ARG]], {{.+}} [[TH_ADDR]], 257 // CK4-64: [[TE_CONV:%.+]] = bitcast{{.+}} [[TE_ADDR]] to 258 // CK4-64: [[TH_CONV:%.+]] = bitcast{{.+}} [[TH_ADDR]] to 259 // CK4-64: [[TE_VAL:%.+]] = load i32, i32* [[TE_CONV]], 260 // CK4-64: [[TH_VAL:%.+]] = load i32, i32* [[TH_CONV]], 261 // CK4-32: [[TE_VAL:%.+]] = load i32, i32* [[TE_ADDR]], 262 // CK4-32: [[TH_VAL:%.+]] = load i32, i32* [[TH_ADDR]], 263 // CK4: {{%.+}} = call i32 @__kmpc_push_num_teams({{.+}}, {{.+}}, i32 [[TE_VAL]], i32 [[TH_VAL]]) 264 // CK4: call void {{.+}} @__kmpc_fork_teams({{.+}}, i32 1, {{.+}} @[[OUTLT:.+]] to {{.+}}, {{.+}}, {{.+}}) 265 // CK4: ret void 266 267 // CK4: define internal void @[[OUTLT]]({{.+}}) 268 // CK4: call void @__kmpc_for_static_init_4( 269 // CK4: call void @__kmpc_for_static_fini( 270 // CK4: ret void 271 272 #endif // CK4 273 #endif 274