brintos

brintos / llvm-project-archived public Read only

0
0
Text · 16.2 KiB · d119760 Raw
298 lines · cpp
1// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin10 -fopenmp -x c++ -emit-llvm %s -o - | FileCheck %s2// RUN: %clang_cc1 -fopenmp -x c++ -triple x86_64-apple-darwin10 -emit-pch -o %t %s3// RUN: %clang_cc1 -fopenmp -x c++ -triple x86_64-apple-darwin10 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s4 5// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin10 -fopenmp-simd -x c++ -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY0 %s6// RUN: %clang_cc1 -fopenmp-simd -x c++ -triple x86_64-apple-darwin10 -emit-pch -o %t %s7// RUN: %clang_cc1 -fopenmp-simd -x c++ -triple x86_64-apple-darwin10 -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY0 %s8 9// SIMD-ONLY0-NOT: {{__kmpc|__tgt}}10 11// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin10 -fopenmp -fopenmp-version=60 -DOMP60 -x c++ -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK612// RUN: %clang_cc1 -fopenmp -fopenmp-version=60 -DOMP60 -x c++ -triple x86_64-apple-darwin10 -emit-pch -o %t %s13// RUN: %clang_cc1 -fopenmp -fopenmp-version=60 -DOMP60 -x c++ -triple x86_64-apple-darwin10 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s --check-prefix=CHECK614// expected-no-diagnostics15#ifndef HEADER16#define HEADER17 18// CHECK-LABEL: @main19int main(int argc, char **argv) {20// CHECK: [[GTID:%.+]] = call i32 @__kmpc_global_thread_num(ptr [[DEFLOC:@.+]])21// CHECK: call ptr @__kmpc_omp_task_alloc(ptr [[DEFLOC]], i32 [[GTID]],22// CHECK: call i32 @__kmpc_omp_task(ptr [[DEFLOC]], i32 [[GTID]],23#pragma omp task24  ;25// CHECK: call void @__kmpc_taskgroup(ptr [[DEFLOC]], i32 [[GTID]])26// CHECK: [[TASKV:%.+]] = call ptr @__kmpc_omp_task_alloc(ptr [[DEFLOC]], i32 [[GTID]], i32 33, i64 80, i64 1, ptr [[TASK1:@.+]])27// CHECK: [[TASK_DATA:%.+]] = getelementptr inbounds nuw %{{.+}}, ptr [[TASKV]], i32 0, i32 028// CHECK: [[DOWN:%.+]] = getelementptr inbounds nuw [[TD_TY:%.+]], ptr [[TASK_DATA]], i32 0, i32 529// CHECK: store i64 0, ptr [[DOWN]],30// CHECK: [[UP:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr [[TASK_DATA]], i32 0, i32 631// CHECK: store i64 9, ptr [[UP]],32// CHECK: [[ST:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr [[TASK_DATA]], i32 0, i32 733// CHECK: store i64 1, ptr [[ST]],34// CHECK: [[ST_VAL:%.+]] = load i64, ptr [[ST]],35// CHECK: call void @__kmpc_taskloop(ptr [[DEFLOC]], i32 [[GTID]], ptr [[TASKV]], i32 1, ptr [[DOWN]], ptr [[UP]], i64 [[ST_VAL]], i32 1, i32 0, i64 0, ptr null)36// CHECK: call void @__kmpc_end_taskgroup(ptr [[DEFLOC]], i32 [[GTID]])37#pragma omp taskloop priority(argc)38  for (int i = 0; i < 10; ++i)39    ;40// CHECK: [[TASKV:%.+]] = call ptr @__kmpc_omp_task_alloc(ptr [[DEFLOC]], i32 [[GTID]], i32 1, i64 80, i64 1, ptr [[TASK2:@.+]])41// CHECK: [[TASK_DATA:%.+]] = getelementptr inbounds nuw %{{.+}}, ptr [[TASKV]], i32 0, i32 042// CHECK: [[DOWN:%.+]] = getelementptr inbounds nuw [[TD_TY:%.+]], ptr [[TASK_DATA]], i32 0, i32 543// CHECK: store i64 0, ptr [[DOWN]],44// CHECK: [[UP:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr [[TASK_DATA]], i32 0, i32 645// CHECK: store i64 9, ptr [[UP]],46// CHECK: [[ST:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr [[TASK_DATA]], i32 0, i32 747// CHECK: store i64 1, ptr [[ST]],48// CHECK: [[ST_VAL:%.+]] = load i64, ptr [[ST]],49// CHECK: [[GRAINSIZE:%.+]] = zext i32 %{{.+}} to i6450// CHECK: call void @__kmpc_taskloop(ptr [[DEFLOC]], i32 [[GTID]], ptr [[TASKV]], i32 1, ptr [[DOWN]], ptr [[UP]], i64 [[ST_VAL]], i32 1, i32 1, i64 [[GRAINSIZE]], ptr null)51#pragma omp taskloop nogroup grainsize(argc)52  for (int i = 0; i < 10; ++i)53    ;54// CHECK: call void @__kmpc_taskgroup(ptr [[DEFLOC]], i32 [[GTID]])55// CHECK: [[TASKV:%.+]] = call ptr @__kmpc_omp_task_alloc(ptr [[DEFLOC]], i32 [[GTID]], i32 1, i64 80, i64 16, ptr [[TASK3:@.+]])56// CHECK: [[TASK_DATA:%.+]] = getelementptr inbounds nuw %{{.+}}, ptr [[TASKV]], i32 0, i32 057// CHECK: [[IF:%.+]] = icmp ne i32 %{{.+}}, 058// CHECK: [[IF_INT:%.+]] = sext i1 [[IF]] to i3259// CHECK: [[DOWN:%.+]] = getelementptr inbounds nuw [[TD_TY:%.+]], ptr [[TASK_DATA]], i32 0, i32 560// CHECK: store i64 0, ptr [[DOWN]],61// CHECK: [[UP:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr [[TASK_DATA]], i32 0, i32 662// CHECK: store i64 %{{.+}}, ptr [[UP]],63// CHECK: [[ST:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr [[TASK_DATA]], i32 0, i32 764// CHECK: store i64 1, ptr [[ST]],65// CHECK: [[ST_VAL:%.+]] = load i64, ptr [[ST]],66// CHECK: call void @__kmpc_taskloop(ptr [[DEFLOC]], i32 [[GTID]], ptr [[TASKV]], i32 [[IF_INT]], ptr [[DOWN]], ptr [[UP]], i64 [[ST_VAL]], i32 1, i32 2, i64 4, ptr null)67// CHECK: call void @__kmpc_end_taskgroup(ptr [[DEFLOC]], i32 [[GTID]])68  int i;69#pragma omp taskloop if(argc) shared(argc, argv) collapse(2) num_tasks(4)70  for (i = 0; i < argc; ++i)71  for (int j = argc; j < argv[argc][argc]; ++j)72    ;73// CHECK: call void @__kmpc_taskgroup(74// CHECK: call ptr @__kmpc_omp_task_alloc(ptr @{{.+}}, i32 %{{.+}}, i32 1, i64 80, i64 1, ptr [[TASK_CANCEL:@.+]])75// CHECK: call void @__kmpc_taskloop(76// CHECK: call void @__kmpc_end_taskgroup(77#pragma omp taskloop78  for (int i = 0; i < 10; ++i) {79#pragma omp cancel taskgroup80#pragma omp cancellation point taskgroup81  }82}83 84// CHECK: define internal noundef i32 [[TASK1]](85// CHECK: [[DOWN:%.+]] = getelementptr inbounds nuw [[TD_TY:%.+]], ptr %{{.+}}, i32 0, i32 586// CHECK: [[DOWN_VAL:%.+]] = load i64, ptr [[DOWN]],87// CHECK: [[UP:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr %{{.+}}, i32 0, i32 688// CHECK: [[UP_VAL:%.+]] = load i64, ptr [[UP]],89// CHECK: [[ST:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr %{{.+}}, i32 0, i32 790// CHECK: [[ST_VAL:%.+]] = load i64, ptr [[ST]],91// CHECK: [[LITER:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr %{{.+}}, i32 0, i32 892// CHECK: [[LITER_VAL:%.+]] = load i32, ptr [[LITER]],93// CHECK: store i64 [[DOWN_VAL]], ptr [[LB:%[^,]+]],94// CHECK: store i64 [[UP_VAL]], ptr [[UB:%[^,]+]],95// CHECK: store i64 [[ST_VAL]], ptr [[ST:%[^,]+]],96// CHECK: store i32 [[LITER_VAL]], ptr [[LITER:%[^,]+]],97// CHECK: [[LB_VAL:%.+]] = load i64, ptr [[LB]],98// CHECK: [[LB_I32:%.+]] = trunc i64 [[LB_VAL]] to i3299// CHECK: store i32 [[LB_I32]], ptr [[CNT:%.+]],100// CHECK: br label101// CHECK: [[VAL:%.+]] = load i32, ptr [[CNT]],102// CHECK: [[VAL_I64:%.+]] = sext i32 [[VAL]] to i64103// CHECK: [[UB_VAL:%.+]] = load i64, ptr [[UB]],104// CHECK: [[CMP:%.+]] = icmp ule i64 [[VAL_I64]], [[UB_VAL]]105// CHECK: br i1 [[CMP]], label %{{.+}}, label %{{.+}}106// CHECK: load i32, ptr %107// CHECK: store i32 %108// CHECK: load i32, ptr %109// CHECK: add nsw i32 %{{.+}}, 1110// CHECK: store i32 %{{.+}}, ptr %111// CHECK: br label %112// CHECK: ret i32 0113 114// CHECK: define internal noundef i32 [[TASK2]](115// CHECK: [[DOWN:%.+]] = getelementptr inbounds nuw [[TD_TY:%.+]], ptr %{{.+}}, i32 0, i32 5116// CHECK: [[DOWN_VAL:%.+]] = load i64, ptr [[DOWN]],117// CHECK: [[UP:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr %{{.+}}, i32 0, i32 6118// CHECK: [[UP_VAL:%.+]] = load i64, ptr [[UP]],119// CHECK: [[ST:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr %{{.+}}, i32 0, i32 7120// CHECK: [[ST_VAL:%.+]] = load i64, ptr [[ST]],121// CHECK: [[LITER:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr %{{.+}}, i32 0, i32 8122// CHECK: [[LITER_VAL:%.+]] = load i32, ptr [[LITER]],123// CHECK: store i64 [[DOWN_VAL]], ptr [[LB:%[^,]+]],124// CHECK: store i64 [[UP_VAL]], ptr [[UB:%[^,]+]],125// CHECK: store i64 [[ST_VAL]], ptr [[ST:%[^,]+]],126// CHECK: store i32 [[LITER_VAL]], ptr [[LITER:%[^,]+]],127// CHECK: [[LB_VAL:%.+]] = load i64, ptr [[LB]],128// CHECK: [[LB_I32:%.+]] = trunc i64 [[LB_VAL]] to i32129// CHECK: store i32 [[LB_I32]], ptr [[CNT:%.+]],130// CHECK: br label131// CHECK: [[VAL:%.+]] = load i32, ptr [[CNT]],132// CHECK: [[VAL_I64:%.+]] = sext i32 [[VAL]] to i64133// CHECK: [[UB_VAL:%.+]] = load i64, ptr [[UB]],134// CHECK: [[CMP:%.+]] = icmp ule i64 [[VAL_I64]], [[UB_VAL]]135// CHECK: br i1 [[CMP]], label %{{.+}}, label %{{.+}}136// CHECK: load i32, ptr %137// CHECK: store i32 %138// CHECK: load i32, ptr %139// CHECK: add nsw i32 %{{.+}}, 1140// CHECK: store i32 %{{.+}}, ptr %141// CHECK: br label %142// CHECK: ret i32 0143 144// CHECK: define internal noundef i32 [[TASK3]](145// CHECK: [[DOWN:%.+]] = getelementptr inbounds nuw [[TD_TY:%.+]], ptr %{{.+}}, i32 0, i32 5146// CHECK: [[DOWN_VAL:%.+]] = load i64, ptr [[DOWN]],147// CHECK: [[UP:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr %{{.+}}, i32 0, i32 6148// CHECK: [[UP_VAL:%.+]] = load i64, ptr [[UP]],149// CHECK: [[ST:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr %{{.+}}, i32 0, i32 7150// CHECK: [[ST_VAL:%.+]] = load i64, ptr [[ST]],151// CHECK: [[LITER:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr %{{.+}}, i32 0, i32 8152// CHECK: [[LITER_VAL:%.+]] = load i32, ptr [[LITER]],153// CHECK: store i64 [[DOWN_VAL]], ptr [[LB:%[^,]+]],154// CHECK: store i64 [[UP_VAL]], ptr [[UB:%[^,]+]],155// CHECK: store i64 [[ST_VAL]], ptr [[ST:%[^,]+]],156// CHECK: store i32 [[LITER_VAL]], ptr [[LITER:%[^,]+]],157// CHECK: [[LB_VAL:%.+]] = load i64, ptr [[LB]],158// CHECK: store i64 [[LB_VAL]], ptr [[CNT:%.+]],159// CHECK: br label160// CHECK: ret i32 0161 162// CHECK: define internal noundef i32 [[TASK_CANCEL]](163// CHECK: [[RES:%.+]] = call i32 @__kmpc_cancel(ptr @{{.+}}, i32 %{{.+}}, i32 4)164// CHECK: [[IS_CANCEL:%.+]] = icmp ne i32 [[RES]], 0165// CHECK: br i1 [[IS_CANCEL]], label %[[EXIT:.+]], label %[[CONTINUE:[^,]+]]166// CHECK: [[EXIT]]:167// CHECK: store i32 1, ptr [[CLEANUP_SLOT:%.+]],168// CHECK: br label %[[DONE:[^,]+]]169// CHECK: [[CONTINUE]]:170// CHECK: [[RES:%.+]] = call i32 @__kmpc_cancellationpoint(ptr @{{.+}}, i32 %{{.+}}, i32 4)171// CHECK: [[IS_CANCEL:%.+]] = icmp ne i32 [[RES]], 0172// CHECK: br i1 [[IS_CANCEL]], label %[[EXIT2:.+]], label %[[CONTINUE2:[^,]+]]173// CHECK: [[EXIT2]]:174// CHECK: store i32 1, ptr [[CLEANUP_SLOT]],175// CHECK: br label %[[DONE]]176// CHECK: store i32 0, ptr [[CLEANUP_SLOT]],177// CHECK: br label %[[DONE]]178// CHECK: [[DONE]]:179// CHECK: ret i32 0180 181// CHECK-LABEL: @_ZN1SC2Ei182struct S {183  int a;184  S(int c) {185// CHECK: [[GTID:%.+]] = call i32 @__kmpc_global_thread_num(ptr [[DEFLOC:@.+]])186// CHECK: [[TASKV:%.+]] = call ptr @__kmpc_omp_task_alloc(ptr [[DEFLOC]], i32 [[GTID]], i32 1, i64 80, i64 16, ptr [[TASK4:@.+]])187// CHECK: [[TASK_DATA:%.+]] = getelementptr inbounds nuw %{{.+}}, ptr [[TASKV]], i32 0, i32 0188// CHECK: [[DOWN:%.+]] = getelementptr inbounds nuw [[TD_TY:%.+]], ptr [[TASK_DATA]], i32 0, i32 5189// CHECK: store i64 0, ptr [[DOWN]],190// CHECK: [[UP:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr [[TASK_DATA]], i32 0, i32 6191// CHECK: store i64 %{{.+}}, ptr [[UP]],192// CHECK: [[ST:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr [[TASK_DATA]], i32 0, i32 7193// CHECK: store i64 1, ptr [[ST]],194// CHECK: [[ST_VAL:%.+]] = load i64, ptr [[ST]],195// CHECK: [[NUM_TASKS:%.+]] = zext i32 %{{.+}} to i64196// CHECK: call void @__kmpc_taskloop(ptr [[DEFLOC]], i32 [[GTID]], ptr [[TASKV]], i32 1, ptr [[DOWN]], ptr [[UP]], i64 [[ST_VAL]], i32 1, i32 2, i64 [[NUM_TASKS]], ptr null)197#pragma omp taskloop shared(c) num_tasks(a)198    for (a = 0; a < c; ++a)199      ;200  }201} s(1);202 203// CHECK: define internal noundef i32 [[TASK4]](204// CHECK: [[DOWN:%.+]] = getelementptr inbounds nuw [[TD_TY:%.+]], ptr %{{.+}}, i32 0, i32 5205// CHECK: [[DOWN_VAL:%.+]] = load i64, ptr [[DOWN]],206// CHECK: [[UP:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr %{{.+}}, i32 0, i32 6207// CHECK: [[UP_VAL:%.+]] = load i64, ptr [[UP]],208// CHECK: [[ST:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr %{{.+}}, i32 0, i32 7209// CHECK: [[ST_VAL:%.+]] = load i64, ptr [[ST]],210// CHECK: [[LITER:%.+]] = getelementptr inbounds nuw [[TD_TY]], ptr %{{.+}}, i32 0, i32 8211// CHECK: [[LITER_VAL:%.+]] = load i32, ptr [[LITER]],212// CHECK: store i64 [[DOWN_VAL]], ptr [[LB:%[^,]+]],213// CHECK: store i64 [[UP_VAL]], ptr [[UB:%[^,]+]],214// CHECK: store i64 [[ST_VAL]], ptr [[ST:%[^,]+]],215// CHECK: store i32 [[LITER_VAL]], ptr [[LITER:%[^,]+]],216// CHECK: [[LB_VAL:%.+]] = load i64, ptr [[LB]],217// CHECK: [[LB_I32:%.+]] = trunc i64 [[LB_VAL]] to i32218// CHECK: store i32 [[LB_I32]], ptr [[CNT:%.+]],219// CHECK: br label220// CHECK: [[VAL:%.+]] = load i32, ptr [[CNT]],221// CHECK: [[VAL_I64:%.+]] = sext i32 [[VAL]] to i64222// CHECK: [[UB_VAL:%.+]] = load i64, ptr [[UB]],223// CHECK: [[CMP:%.+]] = icmp ule i64 [[VAL_I64]], [[UB_VAL]]224// CHECK: br i1 [[CMP]], label %{{.+}}, label %{{.+}}225// CHECK: load i32, ptr %226// CHECK: store i32 %227// CHECK: load i32, ptr %228// CHECK: add nsw i32 %{{.+}}, 1229// CHECK: store i32 %{{.+}}, ptr %230// CHECK: br label %231// CHECK: ret i32 0232 233class St {234public:235  operator int();236  St &operator+=(int);237};238 239// CHECK-LABEL: taskloop_with_class240void taskloop_with_class() {241  St s1;242  // CHECK: [[TD:%.+]] = call ptr @__kmpc_omp_task_alloc(ptr @{{.+}}, i32 [[GTID:%.+]], i32 1, i64 88, i64 8, ptr @{{.+}})243  // CHECK: call void @__kmpc_taskloop(ptr @{{.+}}, i32 [[GTID]], ptr [[TD]], i32 1, ptr %{{.+}}, ptr %{{.+}}, i64 %{{.+}}, i32 1, i32 0, i64 0, ptr @{{.+}})244#pragma omp taskloop245  for (St s = St(); s < s1; s += 1) {246  }247}248 249#ifdef OMP60250void test_threadset()251{252#pragma omp taskloop threadset(omp_team)253  for (int i = 0; i < 10; ++i) {254  }255#pragma omp taskloop threadset(omp_pool)256  for (int i = 0; i < 10; ++i) {257  }258}259#endif // OMP60260// CHECK6-LABEL: define void @_Z14test_threadsetv()261// CHECK6-NEXT:  entry:262// CHECK6-NEXT:       [[AGG_CAPTURED:%.*]] = alloca [[STRUCT_ANON_14:%.*]], align 1263// CHECK6-NEXT:       %[[TMP:.*]] = alloca i32, align 4264// CHECK6-NEXT:       [[AGG_CAPTURED1:%.*]] = alloca [[STRUCT_ANON_16:%.*]], align 1265// CHECK6-NEXT:       %[[TMP2:.*]] = alloca i32, align 4266// CHECK6-NEXT:       %[[TID0:.*]] = call i32 @__kmpc_global_thread_num(ptr @[[GLOB_PTR:[0-9]+]])267// CHECK6-NEXT:       call void @__kmpc_taskgroup(ptr @1, i32 %[[TID0:.*]])268// CHECK6-NEXT:       %[[TID1:.*]] = call ptr @__kmpc_omp_task_alloc(ptr @1, i32 %[[TID0:.*]], i32 1, i64 80, i64 1, ptr @.omp_task_entry..[[ENTRY1:[0-9]+]])269// CHECK6-NEXT:       %[[TID2:.*]] = getelementptr inbounds nuw %struct.kmp_task_t_with_privates{{.*}}, ptr %[[TID1:.*]], i32 0, i32 0270// CHECK6-NEXT:       %[[TID3:.*]] = getelementptr inbounds nuw %struct.kmp_task_t{{.*}}, ptr %[[TID2:.*]], i32 0, i32 5271// CHECK6-NEXT:       store i64 0, ptr %[[TID3:.*]], align 8272// CHECK6-NEXT:       %[[TID4:.*]] = getelementptr inbounds nuw %struct.kmp_task_t{{.*}}, ptr %[[TID2:.*]], i32 0, i32 6273// CHECK6-NEXT:       store i64 9, ptr %[[TID4:.*]], align 8274// CHECK6-NEXT:       %[[TID5:.*]] = getelementptr inbounds nuw %struct.kmp_task_t{{.*}}, ptr %[[TID2:.*]], i32 0, i32 7275// CHECK6-NEXT:       store i64 1, ptr %[[TID5:.*]], align 8276// CHECK6-NEXT:       %[[TID6:.*]] = getelementptr inbounds nuw %struct.kmp_task_t{{.*}}, ptr %[[TID2:.*]], i32 0, i32 9277// CHECK6-NEXT:       call void @llvm.memset.p0.i64(ptr align 8 %[[TID6:.*]], i8 0, i64 8, i1 false)278// CHECK6-NEXT:       %[[TID7:.*]] = load i64, ptr %[[TID5:.*]], align 8279// CHECK6-NEXT:       call void @__kmpc_taskloop(ptr @1, i32 %[[TID0:.*]], ptr %[[TID1:.*]], i32 1, ptr %[[TID3:.*]], ptr %4, i64 %[[TID7:.*]], i32 1, i32 0, i64 0, ptr null)280// CHECK6-NEXT:       call void @__kmpc_end_taskgroup(ptr @1, i32 %[[TID0:.*]])281// CHECK6-NEXT:       call void @__kmpc_taskgroup(ptr @1, i32 %[[TID0:.*]])282// CHECK6-NEXT:       %[[TID8:.*]] = call ptr @__kmpc_omp_task_alloc(ptr @1, i32 %[[TID0:.*]], i32 129, i64 80, i64 1, ptr @.omp_task_entry..[[ENTRY1:[0-9]+]])283// CHECK6-NEXT:       %[[TID9:.*]] = getelementptr inbounds nuw %struct.kmp_task_t_with_privates{{.*}}, ptr %[[TID8:.*]], i32 0, i32 0284// CHECK6-NEXT:       %[[TID10:.*]] = getelementptr inbounds nuw %struct.kmp_task_t{{.*}}, ptr %[[TID9:.*]], i32 0, i32 5285// CHECK6-NEXT:       store i64 0, ptr %[[TID10:.*]], align 8286// CHECK6-NEXT:       %[[TID11:.*]] = getelementptr inbounds nuw %struct.kmp_task_t{{.*}}, ptr %[[TID9:.*]], i32 0, i32 6287// CHECK6-NEXT:       store i64 9, ptr %[[TID11:.*]], align 8288// CHECK6-NEXT:       %[[TID12:.*]] = getelementptr inbounds nuw %struct.kmp_task_t{{.*}}, ptr %[[TID9:.*]], i32 0, i32 7289// CHECK6-NEXT:       store i64 1, ptr %[[TID12:.*]], align 8290// CHECK6-NEXT:       %[[TID13:.*]] = getelementptr inbounds nuw %struct.kmp_task_t{{.*}}, ptr %[[TID9:.*]], i32 0, i32 9291// CHECK6-NEXT:       call void @llvm.memset.p0.i64(ptr align 8 [[TID13:.*]], i8 0, i64 8, i1 false)292// CHECK6-NEXT:       %[[TID14:.*]] = load i64, ptr [[TID12:.*]], align 8293// CHECK6-NEXT:       call void @__kmpc_taskloop(ptr @1, i32 %[[TID0:.*]], ptr %[[TID8:.*]], i32 1, ptr %[[TID10:.*]], ptr %[[TID11:.*]], i64 %[[TID14:.*]], i32 1, i32 0, i64 0, ptr null)294// CHECK6-NEXT:       call void @__kmpc_end_taskgroup(ptr @1, i32 %[[TID0:.*]])295// CHECK6-NEXT:       ret void296 297#endif298