15c93a94fSMichael Kruse // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs --replace-value-regex "__omp_offloading_[0-9a-z]+_[0-9a-z]+" "reduction_size[.].+[.]" "pl_cond[.].+[.|,]" --prefix-filecheck-ir-name _ 25c93a94fSMichael Kruse 35c93a94fSMichael Kruse // expected-no-diagnostics 45c93a94fSMichael Kruse 55c93a94fSMichael Kruse // Check code generation 65c93a94fSMichael Kruse // RUN: %clang_cc1 -verify -triple x86_64-pc-linux-gnu -std=c++20 -fclang-abi-compat=latest -fopenmp -fopenmp-version=60 -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK1 75c93a94fSMichael Kruse 85c93a94fSMichael Kruse // Check same results after serialization round-trip 95c93a94fSMichael Kruse // FIXME: They should be exactly the same but currently differ in function order 105c93a94fSMichael Kruse // RUN: %clang_cc1 -verify -triple x86_64-pc-linux-gnu -std=c++20 -fclang-abi-compat=latest -fopenmp -fopenmp-version=60 -emit-pch -o %t %s 115c93a94fSMichael Kruse // RUN: %clang_cc1 -verify -triple x86_64-pc-linux-gnu -std=c++20 -fclang-abi-compat=latest -fopenmp -fopenmp-version=60 -include-pch %t -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK2 125c93a94fSMichael Kruse 135c93a94fSMichael Kruse #ifndef HEADER 145c93a94fSMichael Kruse #define HEADER 155c93a94fSMichael Kruse 165c93a94fSMichael Kruse // placeholder for loop body code. 175c93a94fSMichael Kruse extern "C" void body(...) {} 185c93a94fSMichael Kruse 195c93a94fSMichael Kruse 20*5b03efb8SMichael Kruse extern "C" void foo1(int start, int end, int step) { 21*5b03efb8SMichael Kruse int i; 22*5b03efb8SMichael Kruse #pragma omp interchange permutation(1) 23*5b03efb8SMichael Kruse for (i = start; i < end; i += step) 24*5b03efb8SMichael Kruse body(i); 25*5b03efb8SMichael Kruse } 265c93a94fSMichael Kruse 275c93a94fSMichael Kruse 285c93a94fSMichael Kruse extern "C" void foo2(int start1, int start2, int end1, int end2, int step1, int step2) { 295c93a94fSMichael Kruse #pragma omp interchange 305c93a94fSMichael Kruse for (int i = start1; i < end1; i += step1) 315c93a94fSMichael Kruse for (int j = start2; j < end2; j += step2) 325c93a94fSMichael Kruse body(i, j); 335c93a94fSMichael Kruse } 345c93a94fSMichael Kruse 355c93a94fSMichael Kruse 365c93a94fSMichael Kruse extern "C" void foo3() { 375c93a94fSMichael Kruse #pragma omp for 385c93a94fSMichael Kruse #pragma omp interchange 395c93a94fSMichael Kruse for (int i = 7; i < 17; i += 3) 405c93a94fSMichael Kruse for (int j = 7; j < 17; j += 3) 415c93a94fSMichael Kruse body(i, j); 425c93a94fSMichael Kruse } 435c93a94fSMichael Kruse 445c93a94fSMichael Kruse 455c93a94fSMichael Kruse extern "C" void foo4() { 465c93a94fSMichael Kruse #pragma omp for collapse(2) 475c93a94fSMichael Kruse for (int k = 7; k < 17; k += 3) 485c93a94fSMichael Kruse #pragma omp interchange 495c93a94fSMichael Kruse for (int i = 7; i < 17; i += 3) 505c93a94fSMichael Kruse for (int j = 7; j < 17; j += 3) 515c93a94fSMichael Kruse body(i, j); 525c93a94fSMichael Kruse } 535c93a94fSMichael Kruse 545c93a94fSMichael Kruse 55*5b03efb8SMichael Kruse extern "C" void foo5() { 56*5b03efb8SMichael Kruse #pragma omp for collapse(3) 57*5b03efb8SMichael Kruse for (int i = 7; i < 17; i += 3) 58*5b03efb8SMichael Kruse #pragma omp interchange permutation(1) 59*5b03efb8SMichael Kruse for (int j = 7; j < 17; j += 3) 60*5b03efb8SMichael Kruse for (int k = 7; k < 17; k += 3) 61*5b03efb8SMichael Kruse body(i, j, k); 62*5b03efb8SMichael Kruse } 63*5b03efb8SMichael Kruse 64*5b03efb8SMichael Kruse 655c93a94fSMichael Kruse extern "C" void foo6() { 665c93a94fSMichael Kruse #pragma omp for collapse(4) 675c93a94fSMichael Kruse for (int i = 7; i < 17; i += 3) 685c93a94fSMichael Kruse #pragma omp interchange 695c93a94fSMichael Kruse for (int j = 7; j < 17; j += 3) 705c93a94fSMichael Kruse for (int k = 7; k < 17; k += 3) 715c93a94fSMichael Kruse for (int l = 7; l < 17; l += 3) 725c93a94fSMichael Kruse body(i, j, k, l); 735c93a94fSMichael Kruse } 745c93a94fSMichael Kruse 755c93a94fSMichael Kruse 76*5b03efb8SMichael Kruse extern "C" void foo7() { 77*5b03efb8SMichael Kruse #pragma omp interchange permutation(2,3,4,1) 78*5b03efb8SMichael Kruse for (int i = 7; i < 17; i += 3) 79*5b03efb8SMichael Kruse for (int j = 7; j < 17; j += 3) 80*5b03efb8SMichael Kruse for (int k = 7; k < 17; k += 3) 81*5b03efb8SMichael Kruse for (int l = 7; l < 17; l += 3) 82*5b03efb8SMichael Kruse body(i, j, k, l); 83*5b03efb8SMichael Kruse } 84*5b03efb8SMichael Kruse 85*5b03efb8SMichael Kruse 86*5b03efb8SMichael Kruse template<int TILESIZE> 87*5b03efb8SMichael Kruse void foo8(int start, int end, int step) { 88*5b03efb8SMichael Kruse #pragma omp for collapse(4) 89*5b03efb8SMichael Kruse for (int i = start; i < end; i += step) 90*5b03efb8SMichael Kruse #pragma omp interchange permutation(1) 91*5b03efb8SMichael Kruse for (int j = start; j < end; j += step) 92*5b03efb8SMichael Kruse #pragma omp tile sizes(TILESIZE) 93*5b03efb8SMichael Kruse for (int k = start; k < end; k += step) 94*5b03efb8SMichael Kruse body(i, j, k); 95*5b03efb8SMichael Kruse } 96*5b03efb8SMichael Kruse 97*5b03efb8SMichael Kruse // Also test instantiating the template. 98*5b03efb8SMichael Kruse extern "C" void tfoo8() { 99*5b03efb8SMichael Kruse foo8<32>(0, 42, 1); 100*5b03efb8SMichael Kruse foo8<64>(0, 42, 3); 101*5b03efb8SMichael Kruse } 102*5b03efb8SMichael Kruse 103*5b03efb8SMichael Kruse 1045c93a94fSMichael Kruse extern "C" void foo9() { 1055c93a94fSMichael Kruse double arr[128]; 1065c93a94fSMichael Kruse #pragma omp interchange 1075c93a94fSMichael Kruse for (double c = 42; auto && v : arr) 1085c93a94fSMichael Kruse for (int i = 0; i < 42; i += 2) 1095c93a94fSMichael Kruse body(c, v, i); 1105c93a94fSMichael Kruse } 1115c93a94fSMichael Kruse 1125c93a94fSMichael Kruse 1135c93a94fSMichael Kruse extern "C" void foo10() { 1145c93a94fSMichael Kruse double A[128], B[16]; 1155c93a94fSMichael Kruse #pragma omp for collapse(4) 1165c93a94fSMichael Kruse for (int i = 0; i < 128; ++i) 1175c93a94fSMichael Kruse #pragma omp interchange 1185c93a94fSMichael Kruse for (double c = 42; auto aa : A) 1195c93a94fSMichael Kruse for (double d = 42; auto &bb : B) 1205c93a94fSMichael Kruse for (int j = 0; j < 128; ++j) 1215c93a94fSMichael Kruse body(i, c, aa, d, bb, j); 1225c93a94fSMichael Kruse } 1235c93a94fSMichael Kruse 1245c93a94fSMichael Kruse #endif /* HEADER */ 1255c93a94fSMichael Kruse 1265c93a94fSMichael Kruse // CHECK1-LABEL: define {{[^@]+}}@body 1275c93a94fSMichael Kruse // CHECK1-SAME: (...) #[[ATTR0:[0-9]+]] { 1285c93a94fSMichael Kruse // CHECK1-NEXT: entry: 1295c93a94fSMichael Kruse // CHECK1-NEXT: ret void 1305c93a94fSMichael Kruse // 1315c93a94fSMichael Kruse // 132*5b03efb8SMichael Kruse // CHECK1-LABEL: define {{[^@]+}}@foo1 133*5b03efb8SMichael Kruse // CHECK1-SAME: (i32 noundef [[START:%.*]], i32 noundef [[END:%.*]], i32 noundef [[STEP:%.*]]) #[[ATTR0]] { 134*5b03efb8SMichael Kruse // CHECK1-NEXT: entry: 135*5b03efb8SMichael Kruse // CHECK1-NEXT: [[START_ADDR:%.*]] = alloca i32, align 4 136*5b03efb8SMichael Kruse // CHECK1-NEXT: [[END_ADDR:%.*]] = alloca i32, align 4 137*5b03efb8SMichael Kruse // CHECK1-NEXT: [[STEP_ADDR:%.*]] = alloca i32, align 4 138*5b03efb8SMichael Kruse // CHECK1-NEXT: [[I:%.*]] = alloca i32, align 4 139*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[START]], ptr [[START_ADDR]], align 4 140*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[END]], ptr [[END_ADDR]], align 4 141*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[STEP]], ptr [[STEP_ADDR]], align 4 142*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP0:%.*]] = load i32, ptr [[START_ADDR]], align 4 143*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP0]], ptr [[I]], align 4 144*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_COND:%.*]] 145*5b03efb8SMichael Kruse // CHECK1: for.cond: 146*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP1:%.*]] = load i32, ptr [[I]], align 4 147*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP2:%.*]] = load i32, ptr [[END_ADDR]], align 4 148*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP:%.*]] = icmp slt i32 [[TMP1]], [[TMP2]] 149*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP]], label [[FOR_BODY:%.*]], label [[FOR_END:%.*]] 150*5b03efb8SMichael Kruse // CHECK1: for.body: 151*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP3:%.*]] = load i32, ptr [[I]], align 4 152*5b03efb8SMichael Kruse // CHECK1-NEXT: call void (...) @body(i32 noundef [[TMP3]]) 153*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_INC:%.*]] 154*5b03efb8SMichael Kruse // CHECK1: for.inc: 155*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP4:%.*]] = load i32, ptr [[STEP_ADDR]], align 4 156*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP5:%.*]] = load i32, ptr [[I]], align 4 157*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD:%.*]] = add nsw i32 [[TMP5]], [[TMP4]] 158*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[ADD]], ptr [[I]], align 4 159*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_COND]], !llvm.loop [[LOOP3:![0-9]+]] 160*5b03efb8SMichael Kruse // CHECK1: for.end: 161*5b03efb8SMichael Kruse // CHECK1-NEXT: ret void 162*5b03efb8SMichael Kruse // 163*5b03efb8SMichael Kruse // 1645c93a94fSMichael Kruse // CHECK1-LABEL: define {{[^@]+}}@foo2 1655c93a94fSMichael Kruse // CHECK1-SAME: (i32 noundef [[START1:%.*]], i32 noundef [[START2:%.*]], i32 noundef [[END1:%.*]], i32 noundef [[END2:%.*]], i32 noundef [[STEP1:%.*]], i32 noundef [[STEP2:%.*]]) #[[ATTR0]] { 1665c93a94fSMichael Kruse // CHECK1-NEXT: entry: 1675c93a94fSMichael Kruse // CHECK1-NEXT: [[START1_ADDR:%.*]] = alloca i32, align 4 1685c93a94fSMichael Kruse // CHECK1-NEXT: [[START2_ADDR:%.*]] = alloca i32, align 4 1695c93a94fSMichael Kruse // CHECK1-NEXT: [[END1_ADDR:%.*]] = alloca i32, align 4 1705c93a94fSMichael Kruse // CHECK1-NEXT: [[END2_ADDR:%.*]] = alloca i32, align 4 1715c93a94fSMichael Kruse // CHECK1-NEXT: [[STEP1_ADDR:%.*]] = alloca i32, align 4 1725c93a94fSMichael Kruse // CHECK1-NEXT: [[STEP2_ADDR:%.*]] = alloca i32, align 4 1735c93a94fSMichael Kruse // CHECK1-NEXT: [[I:%.*]] = alloca i32, align 4 1745c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_:%.*]] = alloca i32, align 4 1755c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_1:%.*]] = alloca i32, align 4 1765c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTNEW_STEP:%.*]] = alloca i32, align 4 1775c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_2:%.*]] = alloca i32, align 4 1785c93a94fSMichael Kruse // CHECK1-NEXT: [[J:%.*]] = alloca i32, align 4 1795c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_5:%.*]] = alloca i32, align 4 1805c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_6:%.*]] = alloca i32, align 4 1815c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTNEW_STEP7:%.*]] = alloca i32, align 4 1825c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_8:%.*]] = alloca i32, align 4 1835c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTPERMUTED_0_IV_J:%.*]] = alloca i32, align 4 1845c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTPERMUTED_1_IV_I:%.*]] = alloca i32, align 4 1855c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[START1]], ptr [[START1_ADDR]], align 4 1865c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[START2]], ptr [[START2_ADDR]], align 4 1875c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[END1]], ptr [[END1_ADDR]], align 4 1885c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[END2]], ptr [[END2_ADDR]], align 4 1895c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[STEP1]], ptr [[STEP1_ADDR]], align 4 1905c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[STEP2]], ptr [[STEP2_ADDR]], align 4 1915c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP0:%.*]] = load i32, ptr [[START1_ADDR]], align 4 1925c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[TMP0]], ptr [[I]], align 4 1935c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP1:%.*]] = load i32, ptr [[START1_ADDR]], align 4 1945c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[TMP1]], ptr [[DOTCAPTURE_EXPR_]], align 4 1955c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP2:%.*]] = load i32, ptr [[END1_ADDR]], align 4 1965c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[TMP2]], ptr [[DOTCAPTURE_EXPR_1]], align 4 1975c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP3:%.*]] = load i32, ptr [[STEP1_ADDR]], align 4 1985c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[TMP3]], ptr [[DOTNEW_STEP]], align 4 1995c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP4:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_1]], align 4 2005c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP5:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 2015c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB:%.*]] = sub i32 [[TMP4]], [[TMP5]] 2025c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB3:%.*]] = sub i32 [[SUB]], 1 2035c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP6:%.*]] = load i32, ptr [[DOTNEW_STEP]], align 4 2045c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD:%.*]] = add i32 [[SUB3]], [[TMP6]] 2055c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP7:%.*]] = load i32, ptr [[DOTNEW_STEP]], align 4 2065c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV:%.*]] = udiv i32 [[ADD]], [[TMP7]] 2075c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB4:%.*]] = sub i32 [[DIV]], 1 2085c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[SUB4]], ptr [[DOTCAPTURE_EXPR_2]], align 4 2095c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP8:%.*]] = load i32, ptr [[START2_ADDR]], align 4 2105c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[TMP8]], ptr [[J]], align 4 2115c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP9:%.*]] = load i32, ptr [[START2_ADDR]], align 4 2125c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[TMP9]], ptr [[DOTCAPTURE_EXPR_5]], align 4 2135c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP10:%.*]] = load i32, ptr [[END2_ADDR]], align 4 2145c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[TMP10]], ptr [[DOTCAPTURE_EXPR_6]], align 4 2155c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP11:%.*]] = load i32, ptr [[STEP2_ADDR]], align 4 2165c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[TMP11]], ptr [[DOTNEW_STEP7]], align 4 2175c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP12:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 2185c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP13:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 2195c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB9:%.*]] = sub i32 [[TMP12]], [[TMP13]] 2205c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB10:%.*]] = sub i32 [[SUB9]], 1 2215c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP14:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 2225c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD11:%.*]] = add i32 [[SUB10]], [[TMP14]] 2235c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP15:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 2245c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV12:%.*]] = udiv i32 [[ADD11]], [[TMP15]] 2255c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB13:%.*]] = sub i32 [[DIV12]], 1 2265c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[SUB13]], ptr [[DOTCAPTURE_EXPR_8]], align 4 2275c93a94fSMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTPERMUTED_0_IV_J]], align 4 2285c93a94fSMichael Kruse // CHECK1-NEXT: br label [[FOR_COND:%.*]] 2295c93a94fSMichael Kruse // CHECK1: for.cond: 2305c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP16:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_J]], align 4 2315c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP17:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_8]], align 4 2325c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD14:%.*]] = add i32 [[TMP17]], 1 2335c93a94fSMichael Kruse // CHECK1-NEXT: [[CMP:%.*]] = icmp ult i32 [[TMP16]], [[ADD14]] 2345c93a94fSMichael Kruse // CHECK1-NEXT: br i1 [[CMP]], label [[FOR_BODY:%.*]], label [[FOR_END24:%.*]] 2355c93a94fSMichael Kruse // CHECK1: for.body: 2365c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP18:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 2375c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP19:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_J]], align 4 2385c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP20:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 2395c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL:%.*]] = mul i32 [[TMP19]], [[TMP20]] 2405c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD15:%.*]] = add i32 [[TMP18]], [[MUL]] 2415c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[ADD15]], ptr [[J]], align 4 2425c93a94fSMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTPERMUTED_1_IV_I]], align 4 2435c93a94fSMichael Kruse // CHECK1-NEXT: br label [[FOR_COND16:%.*]] 2445c93a94fSMichael Kruse // CHECK1: for.cond16: 2455c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP21:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_I]], align 4 2465c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP22:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_2]], align 4 2475c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD17:%.*]] = add i32 [[TMP22]], 1 2485c93a94fSMichael Kruse // CHECK1-NEXT: [[CMP18:%.*]] = icmp ult i32 [[TMP21]], [[ADD17]] 2495c93a94fSMichael Kruse // CHECK1-NEXT: br i1 [[CMP18]], label [[FOR_BODY19:%.*]], label [[FOR_END:%.*]] 2505c93a94fSMichael Kruse // CHECK1: for.body19: 2515c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP23:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 2525c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP24:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_I]], align 4 2535c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP25:%.*]] = load i32, ptr [[DOTNEW_STEP]], align 4 2545c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL20:%.*]] = mul i32 [[TMP24]], [[TMP25]] 2555c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD21:%.*]] = add i32 [[TMP23]], [[MUL20]] 2565c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[ADD21]], ptr [[I]], align 4 2575c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP26:%.*]] = load i32, ptr [[I]], align 4 2585c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP27:%.*]] = load i32, ptr [[J]], align 4 2595c93a94fSMichael Kruse // CHECK1-NEXT: call void (...) @body(i32 noundef [[TMP26]], i32 noundef [[TMP27]]) 2605c93a94fSMichael Kruse // CHECK1-NEXT: br label [[FOR_INC:%.*]] 2615c93a94fSMichael Kruse // CHECK1: for.inc: 2625c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP28:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_I]], align 4 2635c93a94fSMichael Kruse // CHECK1-NEXT: [[INC:%.*]] = add i32 [[TMP28]], 1 2645c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[INC]], ptr [[DOTPERMUTED_1_IV_I]], align 4 265*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_COND16]], !llvm.loop [[LOOP5:![0-9]+]] 2665c93a94fSMichael Kruse // CHECK1: for.end: 2675c93a94fSMichael Kruse // CHECK1-NEXT: br label [[FOR_INC22:%.*]] 2685c93a94fSMichael Kruse // CHECK1: for.inc22: 2695c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP29:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_J]], align 4 2705c93a94fSMichael Kruse // CHECK1-NEXT: [[INC23:%.*]] = add i32 [[TMP29]], 1 2715c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[INC23]], ptr [[DOTPERMUTED_0_IV_J]], align 4 272*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_COND]], !llvm.loop [[LOOP6:![0-9]+]] 2735c93a94fSMichael Kruse // CHECK1: for.end24: 2745c93a94fSMichael Kruse // CHECK1-NEXT: ret void 2755c93a94fSMichael Kruse // 2765c93a94fSMichael Kruse // 2775c93a94fSMichael Kruse // CHECK1-LABEL: define {{[^@]+}}@foo3 2785c93a94fSMichael Kruse // CHECK1-SAME: () #[[ATTR0]] { 2795c93a94fSMichael Kruse // CHECK1-NEXT: entry: 2805c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_IV:%.*]] = alloca i32, align 4 2815c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP:%.*]] = alloca i32, align 4 2825c93a94fSMichael Kruse // CHECK1-NEXT: [[I:%.*]] = alloca i32, align 4 2835c93a94fSMichael Kruse // CHECK1-NEXT: [[J:%.*]] = alloca i32, align 4 2845c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_LB:%.*]] = alloca i32, align 4 2855c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_UB:%.*]] = alloca i32, align 4 2865c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_STRIDE:%.*]] = alloca i32, align 4 2875c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_IS_LAST:%.*]] = alloca i32, align 4 2885c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTPERMUTED_0_IV_J:%.*]] = alloca i32, align 4 2895c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTPERMUTED_1_IV_I:%.*]] = alloca i32, align 4 2905c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP0:%.*]] = call i32 @__kmpc_global_thread_num(ptr @[[GLOB2:[0-9]+]]) 2915c93a94fSMichael Kruse // CHECK1-NEXT: store i32 7, ptr [[I]], align 4 2925c93a94fSMichael Kruse // CHECK1-NEXT: store i32 7, ptr [[J]], align 4 2935c93a94fSMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTOMP_LB]], align 4 2945c93a94fSMichael Kruse // CHECK1-NEXT: store i32 3, ptr [[DOTOMP_UB]], align 4 2955c93a94fSMichael Kruse // CHECK1-NEXT: store i32 1, ptr [[DOTOMP_STRIDE]], align 4 2965c93a94fSMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTOMP_IS_LAST]], align 4 2975c93a94fSMichael Kruse // CHECK1-NEXT: call void @__kmpc_for_static_init_4(ptr @[[GLOB1:[0-9]+]], i32 [[TMP0]], i32 34, ptr [[DOTOMP_IS_LAST]], ptr [[DOTOMP_LB]], ptr [[DOTOMP_UB]], ptr [[DOTOMP_STRIDE]], i32 1, i32 1) 2985c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP1:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 2995c93a94fSMichael Kruse // CHECK1-NEXT: [[CMP:%.*]] = icmp sgt i32 [[TMP1]], 3 3005c93a94fSMichael Kruse // CHECK1-NEXT: br i1 [[CMP]], label [[COND_TRUE:%.*]], label [[COND_FALSE:%.*]] 3015c93a94fSMichael Kruse // CHECK1: cond.true: 3025c93a94fSMichael Kruse // CHECK1-NEXT: br label [[COND_END:%.*]] 3035c93a94fSMichael Kruse // CHECK1: cond.false: 3045c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP2:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 3055c93a94fSMichael Kruse // CHECK1-NEXT: br label [[COND_END]] 3065c93a94fSMichael Kruse // CHECK1: cond.end: 3075c93a94fSMichael Kruse // CHECK1-NEXT: [[COND:%.*]] = phi i32 [ 3, [[COND_TRUE]] ], [ [[TMP2]], [[COND_FALSE]] ] 3085c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[COND]], ptr [[DOTOMP_UB]], align 4 3095c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP3:%.*]] = load i32, ptr [[DOTOMP_LB]], align 4 3105c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[TMP3]], ptr [[DOTOMP_IV]], align 4 3115c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_COND:%.*]] 3125c93a94fSMichael Kruse // CHECK1: omp.inner.for.cond: 3135c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP4:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 3145c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP5:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 3155c93a94fSMichael Kruse // CHECK1-NEXT: [[CMP1:%.*]] = icmp sle i32 [[TMP4]], [[TMP5]] 3165c93a94fSMichael Kruse // CHECK1-NEXT: br i1 [[CMP1]], label [[OMP_INNER_FOR_BODY:%.*]], label [[OMP_INNER_FOR_END:%.*]] 3175c93a94fSMichael Kruse // CHECK1: omp.inner.for.body: 3185c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP6:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 3195c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL:%.*]] = mul nsw i32 [[TMP6]], 1 3205c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD:%.*]] = add nsw i32 0, [[MUL]] 3215c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[ADD]], ptr [[DOTPERMUTED_0_IV_J]], align 4 3225c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP7:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_J]], align 4 3235c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL2:%.*]] = mul nsw i32 [[TMP7]], 3 3245c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD3:%.*]] = add nsw i32 7, [[MUL2]] 3255c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[ADD3]], ptr [[J]], align 4 3265c93a94fSMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTPERMUTED_1_IV_I]], align 4 3275c93a94fSMichael Kruse // CHECK1-NEXT: br label [[FOR_COND:%.*]] 3285c93a94fSMichael Kruse // CHECK1: for.cond: 3295c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP8:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_I]], align 4 3305c93a94fSMichael Kruse // CHECK1-NEXT: [[CMP4:%.*]] = icmp slt i32 [[TMP8]], 4 3315c93a94fSMichael Kruse // CHECK1-NEXT: br i1 [[CMP4]], label [[FOR_BODY:%.*]], label [[FOR_END:%.*]] 3325c93a94fSMichael Kruse // CHECK1: for.body: 3335c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP9:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_I]], align 4 3345c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL5:%.*]] = mul nsw i32 [[TMP9]], 3 3355c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD6:%.*]] = add nsw i32 7, [[MUL5]] 3365c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[ADD6]], ptr [[I]], align 4 3375c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP10:%.*]] = load i32, ptr [[I]], align 4 3385c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP11:%.*]] = load i32, ptr [[J]], align 4 3395c93a94fSMichael Kruse // CHECK1-NEXT: call void (...) @body(i32 noundef [[TMP10]], i32 noundef [[TMP11]]) 3405c93a94fSMichael Kruse // CHECK1-NEXT: br label [[FOR_INC:%.*]] 3415c93a94fSMichael Kruse // CHECK1: for.inc: 3425c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP12:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_I]], align 4 3435c93a94fSMichael Kruse // CHECK1-NEXT: [[INC:%.*]] = add nsw i32 [[TMP12]], 1 3445c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[INC]], ptr [[DOTPERMUTED_1_IV_I]], align 4 345*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_COND]], !llvm.loop [[LOOP7:![0-9]+]] 3465c93a94fSMichael Kruse // CHECK1: for.end: 3475c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_BODY_CONTINUE:%.*]] 3485c93a94fSMichael Kruse // CHECK1: omp.body.continue: 3495c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_INC:%.*]] 3505c93a94fSMichael Kruse // CHECK1: omp.inner.for.inc: 3515c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP13:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 3525c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD7:%.*]] = add nsw i32 [[TMP13]], 1 3535c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[ADD7]], ptr [[DOTOMP_IV]], align 4 3545c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_COND]] 3555c93a94fSMichael Kruse // CHECK1: omp.inner.for.end: 3565c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_LOOP_EXIT:%.*]] 3575c93a94fSMichael Kruse // CHECK1: omp.loop.exit: 3585c93a94fSMichael Kruse // CHECK1-NEXT: call void @__kmpc_for_static_fini(ptr @[[GLOB1]], i32 [[TMP0]]) 3595c93a94fSMichael Kruse // CHECK1-NEXT: call void @__kmpc_barrier(ptr @[[GLOB3:[0-9]+]], i32 [[TMP0]]) 3605c93a94fSMichael Kruse // CHECK1-NEXT: ret void 3615c93a94fSMichael Kruse // 3625c93a94fSMichael Kruse // 3635c93a94fSMichael Kruse // CHECK1-LABEL: define {{[^@]+}}@foo4 3645c93a94fSMichael Kruse // CHECK1-SAME: () #[[ATTR0]] { 3655c93a94fSMichael Kruse // CHECK1-NEXT: entry: 3665c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_IV:%.*]] = alloca i32, align 4 3675c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP:%.*]] = alloca i32, align 4 3685c93a94fSMichael Kruse // CHECK1-NEXT: [[_TMP1:%.*]] = alloca i32, align 4 3695c93a94fSMichael Kruse // CHECK1-NEXT: [[I:%.*]] = alloca i32, align 4 3705c93a94fSMichael Kruse // CHECK1-NEXT: [[J:%.*]] = alloca i32, align 4 3715c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_LB:%.*]] = alloca i32, align 4 3725c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_UB:%.*]] = alloca i32, align 4 3735c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_STRIDE:%.*]] = alloca i32, align 4 3745c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_IS_LAST:%.*]] = alloca i32, align 4 3755c93a94fSMichael Kruse // CHECK1-NEXT: [[K:%.*]] = alloca i32, align 4 3765c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTPERMUTED_0_IV_J:%.*]] = alloca i32, align 4 3775c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTPERMUTED_1_IV_I:%.*]] = alloca i32, align 4 3785c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP0:%.*]] = call i32 @__kmpc_global_thread_num(ptr @[[GLOB2]]) 3795c93a94fSMichael Kruse // CHECK1-NEXT: store i32 7, ptr [[I]], align 4 3805c93a94fSMichael Kruse // CHECK1-NEXT: store i32 7, ptr [[J]], align 4 3815c93a94fSMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTOMP_LB]], align 4 3825c93a94fSMichael Kruse // CHECK1-NEXT: store i32 15, ptr [[DOTOMP_UB]], align 4 3835c93a94fSMichael Kruse // CHECK1-NEXT: store i32 1, ptr [[DOTOMP_STRIDE]], align 4 3845c93a94fSMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTOMP_IS_LAST]], align 4 3855c93a94fSMichael Kruse // CHECK1-NEXT: call void @__kmpc_for_static_init_4(ptr @[[GLOB1]], i32 [[TMP0]], i32 34, ptr [[DOTOMP_IS_LAST]], ptr [[DOTOMP_LB]], ptr [[DOTOMP_UB]], ptr [[DOTOMP_STRIDE]], i32 1, i32 1) 3865c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP1:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 3875c93a94fSMichael Kruse // CHECK1-NEXT: [[CMP:%.*]] = icmp sgt i32 [[TMP1]], 15 3885c93a94fSMichael Kruse // CHECK1-NEXT: br i1 [[CMP]], label [[COND_TRUE:%.*]], label [[COND_FALSE:%.*]] 3895c93a94fSMichael Kruse // CHECK1: cond.true: 3905c93a94fSMichael Kruse // CHECK1-NEXT: br label [[COND_END:%.*]] 3915c93a94fSMichael Kruse // CHECK1: cond.false: 3925c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP2:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 3935c93a94fSMichael Kruse // CHECK1-NEXT: br label [[COND_END]] 3945c93a94fSMichael Kruse // CHECK1: cond.end: 3955c93a94fSMichael Kruse // CHECK1-NEXT: [[COND:%.*]] = phi i32 [ 15, [[COND_TRUE]] ], [ [[TMP2]], [[COND_FALSE]] ] 3965c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[COND]], ptr [[DOTOMP_UB]], align 4 3975c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP3:%.*]] = load i32, ptr [[DOTOMP_LB]], align 4 3985c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[TMP3]], ptr [[DOTOMP_IV]], align 4 3995c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_COND:%.*]] 4005c93a94fSMichael Kruse // CHECK1: omp.inner.for.cond: 4015c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP4:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 4025c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP5:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 4035c93a94fSMichael Kruse // CHECK1-NEXT: [[CMP2:%.*]] = icmp sle i32 [[TMP4]], [[TMP5]] 4045c93a94fSMichael Kruse // CHECK1-NEXT: br i1 [[CMP2]], label [[OMP_INNER_FOR_BODY:%.*]], label [[OMP_INNER_FOR_END:%.*]] 4055c93a94fSMichael Kruse // CHECK1: omp.inner.for.body: 4065c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP6:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 4075c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV:%.*]] = sdiv i32 [[TMP6]], 4 4085c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL:%.*]] = mul nsw i32 [[DIV]], 3 4095c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD:%.*]] = add nsw i32 7, [[MUL]] 4105c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[ADD]], ptr [[K]], align 4 4115c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP7:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 4125c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP8:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 4135c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV3:%.*]] = sdiv i32 [[TMP8]], 4 4145c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL4:%.*]] = mul nsw i32 [[DIV3]], 4 4155c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB:%.*]] = sub nsw i32 [[TMP7]], [[MUL4]] 4165c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL5:%.*]] = mul nsw i32 [[SUB]], 1 4175c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD6:%.*]] = add nsw i32 0, [[MUL5]] 4185c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[ADD6]], ptr [[DOTPERMUTED_0_IV_J]], align 4 4195c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP9:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_J]], align 4 4205c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL7:%.*]] = mul nsw i32 [[TMP9]], 3 4215c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD8:%.*]] = add nsw i32 7, [[MUL7]] 4225c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[ADD8]], ptr [[J]], align 4 4235c93a94fSMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTPERMUTED_1_IV_I]], align 4 4245c93a94fSMichael Kruse // CHECK1-NEXT: br label [[FOR_COND:%.*]] 4255c93a94fSMichael Kruse // CHECK1: for.cond: 4265c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP10:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_I]], align 4 4275c93a94fSMichael Kruse // CHECK1-NEXT: [[CMP9:%.*]] = icmp slt i32 [[TMP10]], 4 4285c93a94fSMichael Kruse // CHECK1-NEXT: br i1 [[CMP9]], label [[FOR_BODY:%.*]], label [[FOR_END:%.*]] 4295c93a94fSMichael Kruse // CHECK1: for.body: 4305c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP11:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_I]], align 4 4315c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL10:%.*]] = mul nsw i32 [[TMP11]], 3 4325c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD11:%.*]] = add nsw i32 7, [[MUL10]] 4335c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[ADD11]], ptr [[I]], align 4 4345c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP12:%.*]] = load i32, ptr [[I]], align 4 4355c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP13:%.*]] = load i32, ptr [[J]], align 4 4365c93a94fSMichael Kruse // CHECK1-NEXT: call void (...) @body(i32 noundef [[TMP12]], i32 noundef [[TMP13]]) 4375c93a94fSMichael Kruse // CHECK1-NEXT: br label [[FOR_INC:%.*]] 4385c93a94fSMichael Kruse // CHECK1: for.inc: 4395c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP14:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_I]], align 4 4405c93a94fSMichael Kruse // CHECK1-NEXT: [[INC:%.*]] = add nsw i32 [[TMP14]], 1 4415c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[INC]], ptr [[DOTPERMUTED_1_IV_I]], align 4 442*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_COND]], !llvm.loop [[LOOP8:![0-9]+]] 4435c93a94fSMichael Kruse // CHECK1: for.end: 4445c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_BODY_CONTINUE:%.*]] 4455c93a94fSMichael Kruse // CHECK1: omp.body.continue: 4465c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_INC:%.*]] 4475c93a94fSMichael Kruse // CHECK1: omp.inner.for.inc: 4485c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP15:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 4495c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD12:%.*]] = add nsw i32 [[TMP15]], 1 4505c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[ADD12]], ptr [[DOTOMP_IV]], align 4 4515c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_COND]] 4525c93a94fSMichael Kruse // CHECK1: omp.inner.for.end: 4535c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_LOOP_EXIT:%.*]] 4545c93a94fSMichael Kruse // CHECK1: omp.loop.exit: 4555c93a94fSMichael Kruse // CHECK1-NEXT: call void @__kmpc_for_static_fini(ptr @[[GLOB1]], i32 [[TMP0]]) 4565c93a94fSMichael Kruse // CHECK1-NEXT: call void @__kmpc_barrier(ptr @[[GLOB3]], i32 [[TMP0]]) 4575c93a94fSMichael Kruse // CHECK1-NEXT: ret void 4585c93a94fSMichael Kruse // 4595c93a94fSMichael Kruse // 460*5b03efb8SMichael Kruse // CHECK1-LABEL: define {{[^@]+}}@foo5 461*5b03efb8SMichael Kruse // CHECK1-SAME: () #[[ATTR0]] { 462*5b03efb8SMichael Kruse // CHECK1-NEXT: entry: 463*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTOMP_IV:%.*]] = alloca i32, align 4 464*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP:%.*]] = alloca i32, align 4 465*5b03efb8SMichael Kruse // CHECK1-NEXT: [[_TMP1:%.*]] = alloca i32, align 4 466*5b03efb8SMichael Kruse // CHECK1-NEXT: [[_TMP2:%.*]] = alloca i32, align 4 467*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTOMP_LB:%.*]] = alloca i32, align 4 468*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTOMP_UB:%.*]] = alloca i32, align 4 469*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTOMP_STRIDE:%.*]] = alloca i32, align 4 470*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTOMP_IS_LAST:%.*]] = alloca i32, align 4 471*5b03efb8SMichael Kruse // CHECK1-NEXT: [[I:%.*]] = alloca i32, align 4 472*5b03efb8SMichael Kruse // CHECK1-NEXT: [[J:%.*]] = alloca i32, align 4 473*5b03efb8SMichael Kruse // CHECK1-NEXT: [[K:%.*]] = alloca i32, align 4 474*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP0:%.*]] = call i32 @__kmpc_global_thread_num(ptr @[[GLOB2]]) 475*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTOMP_LB]], align 4 476*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 63, ptr [[DOTOMP_UB]], align 4 477*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 1, ptr [[DOTOMP_STRIDE]], align 4 478*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTOMP_IS_LAST]], align 4 479*5b03efb8SMichael Kruse // CHECK1-NEXT: call void @__kmpc_for_static_init_4(ptr @[[GLOB1]], i32 [[TMP0]], i32 34, ptr [[DOTOMP_IS_LAST]], ptr [[DOTOMP_LB]], ptr [[DOTOMP_UB]], ptr [[DOTOMP_STRIDE]], i32 1, i32 1) 480*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP1:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 481*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP:%.*]] = icmp sgt i32 [[TMP1]], 63 482*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP]], label [[COND_TRUE:%.*]], label [[COND_FALSE:%.*]] 483*5b03efb8SMichael Kruse // CHECK1: cond.true: 484*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[COND_END:%.*]] 485*5b03efb8SMichael Kruse // CHECK1: cond.false: 486*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP2:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 487*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[COND_END]] 488*5b03efb8SMichael Kruse // CHECK1: cond.end: 489*5b03efb8SMichael Kruse // CHECK1-NEXT: [[COND:%.*]] = phi i32 [ 63, [[COND_TRUE]] ], [ [[TMP2]], [[COND_FALSE]] ] 490*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[COND]], ptr [[DOTOMP_UB]], align 4 491*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP3:%.*]] = load i32, ptr [[DOTOMP_LB]], align 4 492*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP3]], ptr [[DOTOMP_IV]], align 4 493*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_COND:%.*]] 494*5b03efb8SMichael Kruse // CHECK1: omp.inner.for.cond: 495*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP4:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 496*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP5:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 497*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP3:%.*]] = icmp sle i32 [[TMP4]], [[TMP5]] 498*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP3]], label [[OMP_INNER_FOR_BODY:%.*]], label [[OMP_INNER_FOR_END:%.*]] 499*5b03efb8SMichael Kruse // CHECK1: omp.inner.for.body: 500*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP6:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 501*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV:%.*]] = sdiv i32 [[TMP6]], 16 502*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL:%.*]] = mul nsw i32 [[DIV]], 3 503*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD:%.*]] = add nsw i32 7, [[MUL]] 504*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[ADD]], ptr [[I]], align 4 505*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP7:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 506*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP8:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 507*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV4:%.*]] = sdiv i32 [[TMP8]], 16 508*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL5:%.*]] = mul nsw i32 [[DIV4]], 16 509*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB:%.*]] = sub nsw i32 [[TMP7]], [[MUL5]] 510*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV6:%.*]] = sdiv i32 [[SUB]], 4 511*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL7:%.*]] = mul nsw i32 [[DIV6]], 3 512*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD8:%.*]] = add nsw i32 7, [[MUL7]] 513*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[ADD8]], ptr [[J]], align 4 514*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP9:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 515*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP10:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 516*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV9:%.*]] = sdiv i32 [[TMP10]], 16 517*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL10:%.*]] = mul nsw i32 [[DIV9]], 16 518*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB11:%.*]] = sub nsw i32 [[TMP9]], [[MUL10]] 519*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP11:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 520*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP12:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 521*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV12:%.*]] = sdiv i32 [[TMP12]], 16 522*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL13:%.*]] = mul nsw i32 [[DIV12]], 16 523*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB14:%.*]] = sub nsw i32 [[TMP11]], [[MUL13]] 524*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV15:%.*]] = sdiv i32 [[SUB14]], 4 525*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL16:%.*]] = mul nsw i32 [[DIV15]], 4 526*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB17:%.*]] = sub nsw i32 [[SUB11]], [[MUL16]] 527*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL18:%.*]] = mul nsw i32 [[SUB17]], 3 528*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD19:%.*]] = add nsw i32 7, [[MUL18]] 529*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[ADD19]], ptr [[K]], align 4 530*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP13:%.*]] = load i32, ptr [[I]], align 4 531*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP14:%.*]] = load i32, ptr [[J]], align 4 532*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP15:%.*]] = load i32, ptr [[K]], align 4 533*5b03efb8SMichael Kruse // CHECK1-NEXT: call void (...) @body(i32 noundef [[TMP13]], i32 noundef [[TMP14]], i32 noundef [[TMP15]]) 534*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[OMP_BODY_CONTINUE:%.*]] 535*5b03efb8SMichael Kruse // CHECK1: omp.body.continue: 536*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_INC:%.*]] 537*5b03efb8SMichael Kruse // CHECK1: omp.inner.for.inc: 538*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP16:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 539*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD20:%.*]] = add nsw i32 [[TMP16]], 1 540*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[ADD20]], ptr [[DOTOMP_IV]], align 4 541*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_COND]] 542*5b03efb8SMichael Kruse // CHECK1: omp.inner.for.end: 543*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[OMP_LOOP_EXIT:%.*]] 544*5b03efb8SMichael Kruse // CHECK1: omp.loop.exit: 545*5b03efb8SMichael Kruse // CHECK1-NEXT: call void @__kmpc_for_static_fini(ptr @[[GLOB1]], i32 [[TMP0]]) 546*5b03efb8SMichael Kruse // CHECK1-NEXT: call void @__kmpc_barrier(ptr @[[GLOB3]], i32 [[TMP0]]) 547*5b03efb8SMichael Kruse // CHECK1-NEXT: ret void 548*5b03efb8SMichael Kruse // 549*5b03efb8SMichael Kruse // 5505c93a94fSMichael Kruse // CHECK1-LABEL: define {{[^@]+}}@foo6 5515c93a94fSMichael Kruse // CHECK1-SAME: () #[[ATTR0]] { 5525c93a94fSMichael Kruse // CHECK1-NEXT: entry: 5535c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_IV:%.*]] = alloca i32, align 4 5545c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP:%.*]] = alloca i32, align 4 5555c93a94fSMichael Kruse // CHECK1-NEXT: [[_TMP1:%.*]] = alloca i32, align 4 5565c93a94fSMichael Kruse // CHECK1-NEXT: [[_TMP2:%.*]] = alloca i32, align 4 5575c93a94fSMichael Kruse // CHECK1-NEXT: [[_TMP3:%.*]] = alloca i32, align 4 5585c93a94fSMichael Kruse // CHECK1-NEXT: [[J:%.*]] = alloca i32, align 4 5595c93a94fSMichael Kruse // CHECK1-NEXT: [[K:%.*]] = alloca i32, align 4 5605c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_LB:%.*]] = alloca i32, align 4 5615c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_UB:%.*]] = alloca i32, align 4 5625c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_STRIDE:%.*]] = alloca i32, align 4 5635c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_IS_LAST:%.*]] = alloca i32, align 4 5645c93a94fSMichael Kruse // CHECK1-NEXT: [[I:%.*]] = alloca i32, align 4 5655c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTPERMUTED_0_IV_K:%.*]] = alloca i32, align 4 5665c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTPERMUTED_1_IV_J:%.*]] = alloca i32, align 4 5675c93a94fSMichael Kruse // CHECK1-NEXT: [[L:%.*]] = alloca i32, align 4 5685c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP0:%.*]] = call i32 @__kmpc_global_thread_num(ptr @[[GLOB2]]) 5695c93a94fSMichael Kruse // CHECK1-NEXT: store i32 7, ptr [[J]], align 4 5705c93a94fSMichael Kruse // CHECK1-NEXT: store i32 7, ptr [[K]], align 4 5715c93a94fSMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTOMP_LB]], align 4 5725c93a94fSMichael Kruse // CHECK1-NEXT: store i32 255, ptr [[DOTOMP_UB]], align 4 5735c93a94fSMichael Kruse // CHECK1-NEXT: store i32 1, ptr [[DOTOMP_STRIDE]], align 4 5745c93a94fSMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTOMP_IS_LAST]], align 4 5755c93a94fSMichael Kruse // CHECK1-NEXT: call void @__kmpc_for_static_init_4(ptr @[[GLOB1]], i32 [[TMP0]], i32 34, ptr [[DOTOMP_IS_LAST]], ptr [[DOTOMP_LB]], ptr [[DOTOMP_UB]], ptr [[DOTOMP_STRIDE]], i32 1, i32 1) 5765c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP1:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 5775c93a94fSMichael Kruse // CHECK1-NEXT: [[CMP:%.*]] = icmp sgt i32 [[TMP1]], 255 5785c93a94fSMichael Kruse // CHECK1-NEXT: br i1 [[CMP]], label [[COND_TRUE:%.*]], label [[COND_FALSE:%.*]] 5795c93a94fSMichael Kruse // CHECK1: cond.true: 5805c93a94fSMichael Kruse // CHECK1-NEXT: br label [[COND_END:%.*]] 5815c93a94fSMichael Kruse // CHECK1: cond.false: 5825c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP2:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 5835c93a94fSMichael Kruse // CHECK1-NEXT: br label [[COND_END]] 5845c93a94fSMichael Kruse // CHECK1: cond.end: 5855c93a94fSMichael Kruse // CHECK1-NEXT: [[COND:%.*]] = phi i32 [ 255, [[COND_TRUE]] ], [ [[TMP2]], [[COND_FALSE]] ] 5865c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[COND]], ptr [[DOTOMP_UB]], align 4 5875c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP3:%.*]] = load i32, ptr [[DOTOMP_LB]], align 4 5885c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[TMP3]], ptr [[DOTOMP_IV]], align 4 5895c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_COND:%.*]] 5905c93a94fSMichael Kruse // CHECK1: omp.inner.for.cond: 5915c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP4:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 5925c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP5:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 5935c93a94fSMichael Kruse // CHECK1-NEXT: [[CMP4:%.*]] = icmp sle i32 [[TMP4]], [[TMP5]] 5945c93a94fSMichael Kruse // CHECK1-NEXT: br i1 [[CMP4]], label [[OMP_INNER_FOR_BODY:%.*]], label [[OMP_INNER_FOR_END:%.*]] 5955c93a94fSMichael Kruse // CHECK1: omp.inner.for.body: 5965c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP6:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 5975c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV:%.*]] = sdiv i32 [[TMP6]], 64 5985c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL:%.*]] = mul nsw i32 [[DIV]], 3 5995c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD:%.*]] = add nsw i32 7, [[MUL]] 6005c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[ADD]], ptr [[I]], align 4 6015c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP7:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 6025c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP8:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 6035c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV5:%.*]] = sdiv i32 [[TMP8]], 64 6045c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL6:%.*]] = mul nsw i32 [[DIV5]], 64 6055c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB:%.*]] = sub nsw i32 [[TMP7]], [[MUL6]] 6065c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV7:%.*]] = sdiv i32 [[SUB]], 16 6075c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL8:%.*]] = mul nsw i32 [[DIV7]], 1 6085c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD9:%.*]] = add nsw i32 0, [[MUL8]] 6095c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[ADD9]], ptr [[DOTPERMUTED_0_IV_K]], align 4 6105c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP9:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 6115c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP10:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 6125c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV10:%.*]] = sdiv i32 [[TMP10]], 64 6135c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL11:%.*]] = mul nsw i32 [[DIV10]], 64 6145c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB12:%.*]] = sub nsw i32 [[TMP9]], [[MUL11]] 6155c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP11:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 6165c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP12:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 6175c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV13:%.*]] = sdiv i32 [[TMP12]], 64 6185c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL14:%.*]] = mul nsw i32 [[DIV13]], 64 6195c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB15:%.*]] = sub nsw i32 [[TMP11]], [[MUL14]] 6205c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV16:%.*]] = sdiv i32 [[SUB15]], 16 6215c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL17:%.*]] = mul nsw i32 [[DIV16]], 16 6225c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB18:%.*]] = sub nsw i32 [[SUB12]], [[MUL17]] 6235c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV19:%.*]] = sdiv i32 [[SUB18]], 4 6245c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL20:%.*]] = mul nsw i32 [[DIV19]], 1 6255c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD21:%.*]] = add nsw i32 0, [[MUL20]] 6265c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[ADD21]], ptr [[DOTPERMUTED_1_IV_J]], align 4 6275c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP13:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 6285c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP14:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 6295c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV22:%.*]] = sdiv i32 [[TMP14]], 64 6305c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL23:%.*]] = mul nsw i32 [[DIV22]], 64 6315c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB24:%.*]] = sub nsw i32 [[TMP13]], [[MUL23]] 6325c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP15:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 6335c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP16:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 6345c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV25:%.*]] = sdiv i32 [[TMP16]], 64 6355c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL26:%.*]] = mul nsw i32 [[DIV25]], 64 6365c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB27:%.*]] = sub nsw i32 [[TMP15]], [[MUL26]] 6375c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV28:%.*]] = sdiv i32 [[SUB27]], 16 6385c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL29:%.*]] = mul nsw i32 [[DIV28]], 16 6395c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB30:%.*]] = sub nsw i32 [[SUB24]], [[MUL29]] 6405c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP17:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 6415c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP18:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 6425c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV31:%.*]] = sdiv i32 [[TMP18]], 64 6435c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL32:%.*]] = mul nsw i32 [[DIV31]], 64 6445c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB33:%.*]] = sub nsw i32 [[TMP17]], [[MUL32]] 6455c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP19:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 6465c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP20:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 6475c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV34:%.*]] = sdiv i32 [[TMP20]], 64 6485c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL35:%.*]] = mul nsw i32 [[DIV34]], 64 6495c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB36:%.*]] = sub nsw i32 [[TMP19]], [[MUL35]] 6505c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV37:%.*]] = sdiv i32 [[SUB36]], 16 6515c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL38:%.*]] = mul nsw i32 [[DIV37]], 16 6525c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB39:%.*]] = sub nsw i32 [[SUB33]], [[MUL38]] 6535c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV40:%.*]] = sdiv i32 [[SUB39]], 4 6545c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL41:%.*]] = mul nsw i32 [[DIV40]], 4 6555c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB42:%.*]] = sub nsw i32 [[SUB30]], [[MUL41]] 6565c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL43:%.*]] = mul nsw i32 [[SUB42]], 3 6575c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD44:%.*]] = add nsw i32 7, [[MUL43]] 6585c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[ADD44]], ptr [[L]], align 4 6595c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP21:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_K]], align 4 6605c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL45:%.*]] = mul nsw i32 [[TMP21]], 3 6615c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD46:%.*]] = add nsw i32 7, [[MUL45]] 6625c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[ADD46]], ptr [[K]], align 4 6635c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP22:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_J]], align 4 6645c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL47:%.*]] = mul nsw i32 [[TMP22]], 3 6655c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD48:%.*]] = add nsw i32 7, [[MUL47]] 6665c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[ADD48]], ptr [[J]], align 4 6675c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP23:%.*]] = load i32, ptr [[I]], align 4 6685c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP24:%.*]] = load i32, ptr [[J]], align 4 6695c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP25:%.*]] = load i32, ptr [[K]], align 4 6705c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP26:%.*]] = load i32, ptr [[L]], align 4 6715c93a94fSMichael Kruse // CHECK1-NEXT: call void (...) @body(i32 noundef [[TMP23]], i32 noundef [[TMP24]], i32 noundef [[TMP25]], i32 noundef [[TMP26]]) 6725c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_BODY_CONTINUE:%.*]] 6735c93a94fSMichael Kruse // CHECK1: omp.body.continue: 6745c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_INC:%.*]] 6755c93a94fSMichael Kruse // CHECK1: omp.inner.for.inc: 6765c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP27:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 6775c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD49:%.*]] = add nsw i32 [[TMP27]], 1 6785c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[ADD49]], ptr [[DOTOMP_IV]], align 4 6795c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_COND]] 6805c93a94fSMichael Kruse // CHECK1: omp.inner.for.end: 6815c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_LOOP_EXIT:%.*]] 6825c93a94fSMichael Kruse // CHECK1: omp.loop.exit: 6835c93a94fSMichael Kruse // CHECK1-NEXT: call void @__kmpc_for_static_fini(ptr @[[GLOB1]], i32 [[TMP0]]) 6845c93a94fSMichael Kruse // CHECK1-NEXT: call void @__kmpc_barrier(ptr @[[GLOB3]], i32 [[TMP0]]) 6855c93a94fSMichael Kruse // CHECK1-NEXT: ret void 6865c93a94fSMichael Kruse // 6875c93a94fSMichael Kruse // 688*5b03efb8SMichael Kruse // CHECK1-LABEL: define {{[^@]+}}@foo7 689*5b03efb8SMichael Kruse // CHECK1-SAME: () #[[ATTR0]] { 690*5b03efb8SMichael Kruse // CHECK1-NEXT: entry: 691*5b03efb8SMichael Kruse // CHECK1-NEXT: [[I:%.*]] = alloca i32, align 4 692*5b03efb8SMichael Kruse // CHECK1-NEXT: [[J:%.*]] = alloca i32, align 4 693*5b03efb8SMichael Kruse // CHECK1-NEXT: [[K:%.*]] = alloca i32, align 4 694*5b03efb8SMichael Kruse // CHECK1-NEXT: [[L:%.*]] = alloca i32, align 4 695*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTPERMUTED_0_IV_J:%.*]] = alloca i32, align 4 696*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTPERMUTED_1_IV_K:%.*]] = alloca i32, align 4 697*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTPERMUTED_2_IV_L:%.*]] = alloca i32, align 4 698*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTPERMUTED_3_IV_I:%.*]] = alloca i32, align 4 699*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 7, ptr [[I]], align 4 700*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 7, ptr [[J]], align 4 701*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 7, ptr [[K]], align 4 702*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 7, ptr [[L]], align 4 703*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTPERMUTED_0_IV_J]], align 4 704*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_COND:%.*]] 705*5b03efb8SMichael Kruse // CHECK1: for.cond: 706*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP0:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_J]], align 4 707*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP:%.*]] = icmp slt i32 [[TMP0]], 4 708*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP]], label [[FOR_BODY:%.*]], label [[FOR_END24:%.*]] 709*5b03efb8SMichael Kruse // CHECK1: for.body: 710*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP1:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_J]], align 4 711*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL:%.*]] = mul nsw i32 [[TMP1]], 3 712*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD:%.*]] = add nsw i32 7, [[MUL]] 713*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[ADD]], ptr [[J]], align 4 714*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTPERMUTED_1_IV_K]], align 4 715*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_COND1:%.*]] 716*5b03efb8SMichael Kruse // CHECK1: for.cond1: 717*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP2:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_K]], align 4 718*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP2:%.*]] = icmp slt i32 [[TMP2]], 4 719*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP2]], label [[FOR_BODY3:%.*]], label [[FOR_END21:%.*]] 720*5b03efb8SMichael Kruse // CHECK1: for.body3: 721*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP3:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_K]], align 4 722*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL4:%.*]] = mul nsw i32 [[TMP3]], 3 723*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD5:%.*]] = add nsw i32 7, [[MUL4]] 724*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[ADD5]], ptr [[K]], align 4 725*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTPERMUTED_2_IV_L]], align 4 726*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_COND6:%.*]] 727*5b03efb8SMichael Kruse // CHECK1: for.cond6: 728*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP4:%.*]] = load i32, ptr [[DOTPERMUTED_2_IV_L]], align 4 729*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP7:%.*]] = icmp slt i32 [[TMP4]], 4 730*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP7]], label [[FOR_BODY8:%.*]], label [[FOR_END18:%.*]] 731*5b03efb8SMichael Kruse // CHECK1: for.body8: 732*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP5:%.*]] = load i32, ptr [[DOTPERMUTED_2_IV_L]], align 4 733*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL9:%.*]] = mul nsw i32 [[TMP5]], 3 734*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD10:%.*]] = add nsw i32 7, [[MUL9]] 735*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[ADD10]], ptr [[L]], align 4 736*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTPERMUTED_3_IV_I]], align 4 737*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_COND11:%.*]] 738*5b03efb8SMichael Kruse // CHECK1: for.cond11: 739*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP6:%.*]] = load i32, ptr [[DOTPERMUTED_3_IV_I]], align 4 740*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP12:%.*]] = icmp slt i32 [[TMP6]], 4 741*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP12]], label [[FOR_BODY13:%.*]], label [[FOR_END:%.*]] 742*5b03efb8SMichael Kruse // CHECK1: for.body13: 743*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP7:%.*]] = load i32, ptr [[DOTPERMUTED_3_IV_I]], align 4 744*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL14:%.*]] = mul nsw i32 [[TMP7]], 3 745*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD15:%.*]] = add nsw i32 7, [[MUL14]] 746*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[ADD15]], ptr [[I]], align 4 747*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP8:%.*]] = load i32, ptr [[I]], align 4 748*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP9:%.*]] = load i32, ptr [[J]], align 4 749*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP10:%.*]] = load i32, ptr [[K]], align 4 750*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP11:%.*]] = load i32, ptr [[L]], align 4 751*5b03efb8SMichael Kruse // CHECK1-NEXT: call void (...) @body(i32 noundef [[TMP8]], i32 noundef [[TMP9]], i32 noundef [[TMP10]], i32 noundef [[TMP11]]) 752*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_INC:%.*]] 753*5b03efb8SMichael Kruse // CHECK1: for.inc: 754*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP12:%.*]] = load i32, ptr [[DOTPERMUTED_3_IV_I]], align 4 755*5b03efb8SMichael Kruse // CHECK1-NEXT: [[INC:%.*]] = add nsw i32 [[TMP12]], 1 756*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[INC]], ptr [[DOTPERMUTED_3_IV_I]], align 4 757*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_COND11]], !llvm.loop [[LOOP9:![0-9]+]] 758*5b03efb8SMichael Kruse // CHECK1: for.end: 759*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_INC16:%.*]] 760*5b03efb8SMichael Kruse // CHECK1: for.inc16: 761*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP13:%.*]] = load i32, ptr [[DOTPERMUTED_2_IV_L]], align 4 762*5b03efb8SMichael Kruse // CHECK1-NEXT: [[INC17:%.*]] = add nsw i32 [[TMP13]], 1 763*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[INC17]], ptr [[DOTPERMUTED_2_IV_L]], align 4 764*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_COND6]], !llvm.loop [[LOOP10:![0-9]+]] 765*5b03efb8SMichael Kruse // CHECK1: for.end18: 766*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_INC19:%.*]] 767*5b03efb8SMichael Kruse // CHECK1: for.inc19: 768*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP14:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_K]], align 4 769*5b03efb8SMichael Kruse // CHECK1-NEXT: [[INC20:%.*]] = add nsw i32 [[TMP14]], 1 770*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[INC20]], ptr [[DOTPERMUTED_1_IV_K]], align 4 771*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_COND1]], !llvm.loop [[LOOP11:![0-9]+]] 772*5b03efb8SMichael Kruse // CHECK1: for.end21: 773*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_INC22:%.*]] 774*5b03efb8SMichael Kruse // CHECK1: for.inc22: 775*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP15:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_J]], align 4 776*5b03efb8SMichael Kruse // CHECK1-NEXT: [[INC23:%.*]] = add nsw i32 [[TMP15]], 1 777*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[INC23]], ptr [[DOTPERMUTED_0_IV_J]], align 4 778*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_COND]], !llvm.loop [[LOOP12:![0-9]+]] 779*5b03efb8SMichael Kruse // CHECK1: for.end24: 780*5b03efb8SMichael Kruse // CHECK1-NEXT: ret void 781*5b03efb8SMichael Kruse // 782*5b03efb8SMichael Kruse // 783*5b03efb8SMichael Kruse // CHECK1-LABEL: define {{[^@]+}}@tfoo8 784*5b03efb8SMichael Kruse // CHECK1-SAME: () #[[ATTR0]] { 785*5b03efb8SMichael Kruse // CHECK1-NEXT: entry: 786*5b03efb8SMichael Kruse // CHECK1-NEXT: call void @_Z4foo8ILi32EEviii(i32 noundef 0, i32 noundef 42, i32 noundef 1) 787*5b03efb8SMichael Kruse // CHECK1-NEXT: call void @_Z4foo8ILi64EEviii(i32 noundef 0, i32 noundef 42, i32 noundef 3) 788*5b03efb8SMichael Kruse // CHECK1-NEXT: ret void 789*5b03efb8SMichael Kruse // 790*5b03efb8SMichael Kruse // 791*5b03efb8SMichael Kruse // CHECK1-LABEL: define {{[^@]+}}@_Z4foo8ILi32EEviii 792*5b03efb8SMichael Kruse // CHECK1-SAME: (i32 noundef [[START:%.*]], i32 noundef [[END:%.*]], i32 noundef [[STEP:%.*]]) #[[ATTR0]] comdat { 793*5b03efb8SMichael Kruse // CHECK1-NEXT: entry: 794*5b03efb8SMichael Kruse // CHECK1-NEXT: [[START_ADDR:%.*]] = alloca i32, align 4 795*5b03efb8SMichael Kruse // CHECK1-NEXT: [[END_ADDR:%.*]] = alloca i32, align 4 796*5b03efb8SMichael Kruse // CHECK1-NEXT: [[STEP_ADDR:%.*]] = alloca i32, align 4 797*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTOMP_IV:%.*]] = alloca i64, align 8 798*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP:%.*]] = alloca i32, align 4 799*5b03efb8SMichael Kruse // CHECK1-NEXT: [[_TMP1:%.*]] = alloca i32, align 4 800*5b03efb8SMichael Kruse // CHECK1-NEXT: [[_TMP2:%.*]] = alloca i32, align 4 801*5b03efb8SMichael Kruse // CHECK1-NEXT: [[_TMP3:%.*]] = alloca i32, align 4 802*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_:%.*]] = alloca i32, align 4 803*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_4:%.*]] = alloca i32, align 4 804*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTNEW_STEP:%.*]] = alloca i32, align 4 805*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_5:%.*]] = alloca i32, align 4 806*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_6:%.*]] = alloca i32, align 4 807*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTNEW_STEP7:%.*]] = alloca i32, align 4 808*5b03efb8SMichael Kruse // CHECK1-NEXT: [[K:%.*]] = alloca i32, align 4 809*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_8:%.*]] = alloca i32, align 4 810*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_9:%.*]] = alloca i32, align 4 811*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTNEW_STEP10:%.*]] = alloca i32, align 4 812*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_11:%.*]] = alloca i32, align 4 813*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_14:%.*]] = alloca i32, align 4 814*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_16:%.*]] = alloca i32, align 4 815*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_17:%.*]] = alloca i32, align 4 816*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_22:%.*]] = alloca i64, align 8 817*5b03efb8SMichael Kruse // CHECK1-NEXT: [[I:%.*]] = alloca i32, align 4 818*5b03efb8SMichael Kruse // CHECK1-NEXT: [[J:%.*]] = alloca i32, align 4 819*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTFLOOR_0_IV_K:%.*]] = alloca i32, align 4 820*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTTILE_0_IV_K:%.*]] = alloca i32, align 4 821*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTOMP_LB:%.*]] = alloca i64, align 8 822*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTOMP_UB:%.*]] = alloca i64, align 8 823*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTOMP_STRIDE:%.*]] = alloca i64, align 8 824*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTOMP_IS_LAST:%.*]] = alloca i32, align 4 825*5b03efb8SMichael Kruse // CHECK1-NEXT: [[I49:%.*]] = alloca i32, align 4 826*5b03efb8SMichael Kruse // CHECK1-NEXT: [[J50:%.*]] = alloca i32, align 4 827*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTFLOOR_0_IV_K51:%.*]] = alloca i32, align 4 828*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTTILE_0_IV_K52:%.*]] = alloca i32, align 4 829*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP0:%.*]] = call i32 @__kmpc_global_thread_num(ptr @[[GLOB2]]) 830*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[START]], ptr [[START_ADDR]], align 4 831*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[END]], ptr [[END_ADDR]], align 4 832*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[STEP]], ptr [[STEP_ADDR]], align 4 833*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP1:%.*]] = load i32, ptr [[START_ADDR]], align 4 834*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP1]], ptr [[DOTCAPTURE_EXPR_]], align 4 835*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP2:%.*]] = load i32, ptr [[END_ADDR]], align 4 836*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP2]], ptr [[DOTCAPTURE_EXPR_4]], align 4 837*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP3:%.*]] = load i32, ptr [[STEP_ADDR]], align 4 838*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP3]], ptr [[DOTNEW_STEP]], align 4 839*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP4:%.*]] = load i32, ptr [[START_ADDR]], align 4 840*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP4]], ptr [[DOTCAPTURE_EXPR_5]], align 4 841*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP5:%.*]] = load i32, ptr [[END_ADDR]], align 4 842*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP5]], ptr [[DOTCAPTURE_EXPR_6]], align 4 843*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP6:%.*]] = load i32, ptr [[STEP_ADDR]], align 4 844*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP6]], ptr [[DOTNEW_STEP7]], align 4 845*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP7:%.*]] = load i32, ptr [[START_ADDR]], align 4 846*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP7]], ptr [[K]], align 4 847*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP8:%.*]] = load i32, ptr [[START_ADDR]], align 4 848*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP8]], ptr [[DOTCAPTURE_EXPR_8]], align 4 849*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP9:%.*]] = load i32, ptr [[END_ADDR]], align 4 850*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP9]], ptr [[DOTCAPTURE_EXPR_9]], align 4 851*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP10:%.*]] = load i32, ptr [[STEP_ADDR]], align 4 852*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP10]], ptr [[DOTNEW_STEP10]], align 4 853*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP11:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_9]], align 4 854*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP12:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_8]], align 4 855*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB:%.*]] = sub i32 [[TMP11]], [[TMP12]] 856*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB12:%.*]] = sub i32 [[SUB]], 1 857*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP13:%.*]] = load i32, ptr [[DOTNEW_STEP10]], align 4 858*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD:%.*]] = add i32 [[SUB12]], [[TMP13]] 859*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP14:%.*]] = load i32, ptr [[DOTNEW_STEP10]], align 4 860*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV:%.*]] = udiv i32 [[ADD]], [[TMP14]] 861*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB13:%.*]] = sub i32 [[DIV]], 1 862*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[SUB13]], ptr [[DOTCAPTURE_EXPR_11]], align 4 863*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP15:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_11]], align 4 864*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD15:%.*]] = add i32 [[TMP15]], 1 865*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[ADD15]], ptr [[DOTCAPTURE_EXPR_14]], align 4 866*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP16:%.*]] = load i32, ptr [[_TMP2]], align 4 867*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP16]], ptr [[DOTCAPTURE_EXPR_16]], align 4 868*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP17:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_11]], align 4 869*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD18:%.*]] = add i32 [[TMP17]], 1 870*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP18:%.*]] = load i32, ptr [[_TMP2]], align 4 871*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD19:%.*]] = add i32 [[TMP18]], 32 872*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP:%.*]] = icmp ult i32 [[ADD18]], [[ADD19]] 873*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP]], label [[COND_TRUE:%.*]], label [[COND_FALSE:%.*]] 874*5b03efb8SMichael Kruse // CHECK1: cond.true: 875*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP19:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_11]], align 4 876*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD20:%.*]] = add i32 [[TMP19]], 1 877*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[COND_END:%.*]] 878*5b03efb8SMichael Kruse // CHECK1: cond.false: 879*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP20:%.*]] = load i32, ptr [[_TMP2]], align 4 880*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD21:%.*]] = add i32 [[TMP20]], 32 881*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[COND_END]] 882*5b03efb8SMichael Kruse // CHECK1: cond.end: 883*5b03efb8SMichael Kruse // CHECK1-NEXT: [[COND:%.*]] = phi i32 [ [[ADD20]], [[COND_TRUE]] ], [ [[ADD21]], [[COND_FALSE]] ] 884*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[COND]], ptr [[DOTCAPTURE_EXPR_17]], align 4 885*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP21:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_4]], align 4 886*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP22:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 887*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB23:%.*]] = sub i32 [[TMP21]], [[TMP22]] 888*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB24:%.*]] = sub i32 [[SUB23]], 1 889*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP23:%.*]] = load i32, ptr [[DOTNEW_STEP]], align 4 890*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD25:%.*]] = add i32 [[SUB24]], [[TMP23]] 891*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP24:%.*]] = load i32, ptr [[DOTNEW_STEP]], align 4 892*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV26:%.*]] = udiv i32 [[ADD25]], [[TMP24]] 893*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV:%.*]] = zext i32 [[DIV26]] to i64 894*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP25:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 895*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP26:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 896*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB27:%.*]] = sub i32 [[TMP25]], [[TMP26]] 897*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB28:%.*]] = sub i32 [[SUB27]], 1 898*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP27:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 899*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD29:%.*]] = add i32 [[SUB28]], [[TMP27]] 900*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP28:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 901*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV30:%.*]] = udiv i32 [[ADD29]], [[TMP28]] 902*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV31:%.*]] = zext i32 [[DIV30]] to i64 903*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL:%.*]] = mul nsw i64 [[CONV]], [[CONV31]] 904*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP29:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 905*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB32:%.*]] = sub i32 [[TMP29]], -31 906*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV33:%.*]] = udiv i32 [[SUB32]], 32 907*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV34:%.*]] = zext i32 [[DIV33]] to i64 908*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL35:%.*]] = mul nsw i64 [[MUL]], [[CONV34]] 909*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP30:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 910*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP31:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 911*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB36:%.*]] = sub i32 [[TMP30]], [[TMP31]] 912*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB37:%.*]] = sub i32 [[SUB36]], 1 913*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD38:%.*]] = add i32 [[SUB37]], 1 914*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV39:%.*]] = udiv i32 [[ADD38]], 1 915*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV40:%.*]] = zext i32 [[DIV39]] to i64 916*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL41:%.*]] = mul nsw i64 [[MUL35]], [[CONV40]] 917*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB42:%.*]] = sub nsw i64 [[MUL41]], 1 918*5b03efb8SMichael Kruse // CHECK1-NEXT: store i64 [[SUB42]], ptr [[DOTCAPTURE_EXPR_22]], align 8 919*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP32:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 920*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP32]], ptr [[I]], align 4 921*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP33:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 922*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP33]], ptr [[J]], align 4 923*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTFLOOR_0_IV_K]], align 4 924*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP34:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 925*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP34]], ptr [[DOTTILE_0_IV_K]], align 4 926*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP35:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 927*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP36:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_4]], align 4 928*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP43:%.*]] = icmp slt i32 [[TMP35]], [[TMP36]] 929*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP43]], label [[LAND_LHS_TRUE:%.*]], label [[OMP_PRECOND_END:%.*]] 930*5b03efb8SMichael Kruse // CHECK1: land.lhs.true: 931*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP37:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 932*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP38:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 933*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP44:%.*]] = icmp slt i32 [[TMP37]], [[TMP38]] 934*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP44]], label [[LAND_LHS_TRUE45:%.*]], label [[OMP_PRECOND_END]] 935*5b03efb8SMichael Kruse // CHECK1: land.lhs.true45: 936*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP39:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 937*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP46:%.*]] = icmp ult i32 0, [[TMP39]] 938*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP46]], label [[LAND_LHS_TRUE47:%.*]], label [[OMP_PRECOND_END]] 939*5b03efb8SMichael Kruse // CHECK1: land.lhs.true47: 940*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP40:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 941*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP41:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 942*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP48:%.*]] = icmp ult i32 [[TMP40]], [[TMP41]] 943*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP48]], label [[OMP_PRECOND_THEN:%.*]], label [[OMP_PRECOND_END]] 944*5b03efb8SMichael Kruse // CHECK1: omp.precond.then: 945*5b03efb8SMichael Kruse // CHECK1-NEXT: store i64 0, ptr [[DOTOMP_LB]], align 8 946*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP42:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_22]], align 8 947*5b03efb8SMichael Kruse // CHECK1-NEXT: store i64 [[TMP42]], ptr [[DOTOMP_UB]], align 8 948*5b03efb8SMichael Kruse // CHECK1-NEXT: store i64 1, ptr [[DOTOMP_STRIDE]], align 8 949*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTOMP_IS_LAST]], align 4 950*5b03efb8SMichael Kruse // CHECK1-NEXT: call void @__kmpc_for_static_init_8(ptr @[[GLOB1]], i32 [[TMP0]], i32 34, ptr [[DOTOMP_IS_LAST]], ptr [[DOTOMP_LB]], ptr [[DOTOMP_UB]], ptr [[DOTOMP_STRIDE]], i64 1, i64 1) 951*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP43:%.*]] = load i64, ptr [[DOTOMP_UB]], align 8 952*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP44:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_22]], align 8 953*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP53:%.*]] = icmp sgt i64 [[TMP43]], [[TMP44]] 954*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP53]], label [[COND_TRUE54:%.*]], label [[COND_FALSE55:%.*]] 955*5b03efb8SMichael Kruse // CHECK1: cond.true54: 956*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP45:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_22]], align 8 957*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[COND_END56:%.*]] 958*5b03efb8SMichael Kruse // CHECK1: cond.false55: 959*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP46:%.*]] = load i64, ptr [[DOTOMP_UB]], align 8 960*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[COND_END56]] 961*5b03efb8SMichael Kruse // CHECK1: cond.end56: 962*5b03efb8SMichael Kruse // CHECK1-NEXT: [[COND57:%.*]] = phi i64 [ [[TMP45]], [[COND_TRUE54]] ], [ [[TMP46]], [[COND_FALSE55]] ] 963*5b03efb8SMichael Kruse // CHECK1-NEXT: store i64 [[COND57]], ptr [[DOTOMP_UB]], align 8 964*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP47:%.*]] = load i64, ptr [[DOTOMP_LB]], align 8 965*5b03efb8SMichael Kruse // CHECK1-NEXT: store i64 [[TMP47]], ptr [[DOTOMP_IV]], align 8 966*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_COND:%.*]] 967*5b03efb8SMichael Kruse // CHECK1: omp.inner.for.cond: 968*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP48:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 969*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP49:%.*]] = load i64, ptr [[DOTOMP_UB]], align 8 970*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP58:%.*]] = icmp sle i64 [[TMP48]], [[TMP49]] 971*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP58]], label [[OMP_INNER_FOR_BODY:%.*]], label [[OMP_INNER_FOR_END:%.*]] 972*5b03efb8SMichael Kruse // CHECK1: omp.inner.for.body: 973*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP50:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 974*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV59:%.*]] = sext i32 [[TMP50]] to i64 975*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP51:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 976*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP52:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 977*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP53:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 978*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB60:%.*]] = sub i32 [[TMP52]], [[TMP53]] 979*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB61:%.*]] = sub i32 [[SUB60]], 1 980*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP54:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 981*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD62:%.*]] = add i32 [[SUB61]], [[TMP54]] 982*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP55:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 983*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV63:%.*]] = udiv i32 [[ADD62]], [[TMP55]] 984*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL64:%.*]] = mul i32 1, [[DIV63]] 985*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP56:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 986*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB65:%.*]] = sub i32 [[TMP56]], -31 987*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV66:%.*]] = udiv i32 [[SUB65]], 32 988*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL67:%.*]] = mul i32 [[MUL64]], [[DIV66]] 989*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP57:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 990*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP58:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 991*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB68:%.*]] = sub i32 [[TMP57]], [[TMP58]] 992*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB69:%.*]] = sub i32 [[SUB68]], 1 993*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD70:%.*]] = add i32 [[SUB69]], 1 994*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV71:%.*]] = udiv i32 [[ADD70]], 1 995*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL72:%.*]] = mul i32 [[MUL67]], [[DIV71]] 996*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV73:%.*]] = zext i32 [[MUL72]] to i64 997*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV74:%.*]] = sdiv i64 [[TMP51]], [[CONV73]] 998*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP59:%.*]] = load i32, ptr [[DOTNEW_STEP]], align 4 999*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV75:%.*]] = sext i32 [[TMP59]] to i64 1000*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL76:%.*]] = mul nsw i64 [[DIV74]], [[CONV75]] 1001*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD77:%.*]] = add nsw i64 [[CONV59]], [[MUL76]] 1002*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV78:%.*]] = trunc i64 [[ADD77]] to i32 1003*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[CONV78]], ptr [[I49]], align 4 1004*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP60:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1005*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV79:%.*]] = sext i32 [[TMP60]] to i64 1006*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP61:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1007*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP62:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1008*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP63:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1009*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP64:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1010*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB80:%.*]] = sub i32 [[TMP63]], [[TMP64]] 1011*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB81:%.*]] = sub i32 [[SUB80]], 1 1012*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP65:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1013*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD82:%.*]] = add i32 [[SUB81]], [[TMP65]] 1014*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP66:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1015*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV83:%.*]] = udiv i32 [[ADD82]], [[TMP66]] 1016*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL84:%.*]] = mul i32 1, [[DIV83]] 1017*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP67:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1018*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB85:%.*]] = sub i32 [[TMP67]], -31 1019*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV86:%.*]] = udiv i32 [[SUB85]], 32 1020*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL87:%.*]] = mul i32 [[MUL84]], [[DIV86]] 1021*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP68:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1022*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP69:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1023*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB88:%.*]] = sub i32 [[TMP68]], [[TMP69]] 1024*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB89:%.*]] = sub i32 [[SUB88]], 1 1025*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD90:%.*]] = add i32 [[SUB89]], 1 1026*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV91:%.*]] = udiv i32 [[ADD90]], 1 1027*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL92:%.*]] = mul i32 [[MUL87]], [[DIV91]] 1028*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV93:%.*]] = zext i32 [[MUL92]] to i64 1029*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV94:%.*]] = sdiv i64 [[TMP62]], [[CONV93]] 1030*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP70:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1031*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP71:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1032*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB95:%.*]] = sub i32 [[TMP70]], [[TMP71]] 1033*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB96:%.*]] = sub i32 [[SUB95]], 1 1034*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP72:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1035*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD97:%.*]] = add i32 [[SUB96]], [[TMP72]] 1036*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP73:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1037*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV98:%.*]] = udiv i32 [[ADD97]], [[TMP73]] 1038*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL99:%.*]] = mul i32 1, [[DIV98]] 1039*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP74:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1040*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB100:%.*]] = sub i32 [[TMP74]], -31 1041*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV101:%.*]] = udiv i32 [[SUB100]], 32 1042*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL102:%.*]] = mul i32 [[MUL99]], [[DIV101]] 1043*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP75:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1044*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP76:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1045*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB103:%.*]] = sub i32 [[TMP75]], [[TMP76]] 1046*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB104:%.*]] = sub i32 [[SUB103]], 1 1047*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD105:%.*]] = add i32 [[SUB104]], 1 1048*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV106:%.*]] = udiv i32 [[ADD105]], 1 1049*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL107:%.*]] = mul i32 [[MUL102]], [[DIV106]] 1050*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV108:%.*]] = zext i32 [[MUL107]] to i64 1051*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL109:%.*]] = mul nsw i64 [[DIV94]], [[CONV108]] 1052*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB110:%.*]] = sub nsw i64 [[TMP61]], [[MUL109]] 1053*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP77:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1054*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB111:%.*]] = sub i32 [[TMP77]], -31 1055*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV112:%.*]] = udiv i32 [[SUB111]], 32 1056*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL113:%.*]] = mul i32 1, [[DIV112]] 1057*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP78:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1058*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP79:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1059*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB114:%.*]] = sub i32 [[TMP78]], [[TMP79]] 1060*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB115:%.*]] = sub i32 [[SUB114]], 1 1061*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD116:%.*]] = add i32 [[SUB115]], 1 1062*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV117:%.*]] = udiv i32 [[ADD116]], 1 1063*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL118:%.*]] = mul i32 [[MUL113]], [[DIV117]] 1064*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV119:%.*]] = zext i32 [[MUL118]] to i64 1065*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV120:%.*]] = sdiv i64 [[SUB110]], [[CONV119]] 1066*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP80:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1067*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV121:%.*]] = sext i32 [[TMP80]] to i64 1068*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL122:%.*]] = mul nsw i64 [[DIV120]], [[CONV121]] 1069*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD123:%.*]] = add nsw i64 [[CONV79]], [[MUL122]] 1070*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV124:%.*]] = trunc i64 [[ADD123]] to i32 1071*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[CONV124]], ptr [[J50]], align 4 1072*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP81:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1073*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP82:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1074*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP83:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1075*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP84:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1076*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB125:%.*]] = sub i32 [[TMP83]], [[TMP84]] 1077*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB126:%.*]] = sub i32 [[SUB125]], 1 1078*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP85:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1079*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD127:%.*]] = add i32 [[SUB126]], [[TMP85]] 1080*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP86:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1081*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV128:%.*]] = udiv i32 [[ADD127]], [[TMP86]] 1082*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL129:%.*]] = mul i32 1, [[DIV128]] 1083*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP87:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1084*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB130:%.*]] = sub i32 [[TMP87]], -31 1085*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV131:%.*]] = udiv i32 [[SUB130]], 32 1086*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL132:%.*]] = mul i32 [[MUL129]], [[DIV131]] 1087*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP88:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1088*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP89:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1089*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB133:%.*]] = sub i32 [[TMP88]], [[TMP89]] 1090*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB134:%.*]] = sub i32 [[SUB133]], 1 1091*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD135:%.*]] = add i32 [[SUB134]], 1 1092*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV136:%.*]] = udiv i32 [[ADD135]], 1 1093*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL137:%.*]] = mul i32 [[MUL132]], [[DIV136]] 1094*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV138:%.*]] = zext i32 [[MUL137]] to i64 1095*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV139:%.*]] = sdiv i64 [[TMP82]], [[CONV138]] 1096*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP90:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1097*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP91:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1098*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB140:%.*]] = sub i32 [[TMP90]], [[TMP91]] 1099*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB141:%.*]] = sub i32 [[SUB140]], 1 1100*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP92:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1101*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD142:%.*]] = add i32 [[SUB141]], [[TMP92]] 1102*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP93:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1103*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV143:%.*]] = udiv i32 [[ADD142]], [[TMP93]] 1104*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL144:%.*]] = mul i32 1, [[DIV143]] 1105*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP94:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1106*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB145:%.*]] = sub i32 [[TMP94]], -31 1107*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV146:%.*]] = udiv i32 [[SUB145]], 32 1108*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL147:%.*]] = mul i32 [[MUL144]], [[DIV146]] 1109*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP95:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1110*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP96:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1111*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB148:%.*]] = sub i32 [[TMP95]], [[TMP96]] 1112*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB149:%.*]] = sub i32 [[SUB148]], 1 1113*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD150:%.*]] = add i32 [[SUB149]], 1 1114*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV151:%.*]] = udiv i32 [[ADD150]], 1 1115*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL152:%.*]] = mul i32 [[MUL147]], [[DIV151]] 1116*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV153:%.*]] = zext i32 [[MUL152]] to i64 1117*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL154:%.*]] = mul nsw i64 [[DIV139]], [[CONV153]] 1118*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB155:%.*]] = sub nsw i64 [[TMP81]], [[MUL154]] 1119*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP97:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1120*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP98:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1121*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP99:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1122*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP100:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1123*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB156:%.*]] = sub i32 [[TMP99]], [[TMP100]] 1124*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB157:%.*]] = sub i32 [[SUB156]], 1 1125*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP101:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1126*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD158:%.*]] = add i32 [[SUB157]], [[TMP101]] 1127*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP102:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1128*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV159:%.*]] = udiv i32 [[ADD158]], [[TMP102]] 1129*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL160:%.*]] = mul i32 1, [[DIV159]] 1130*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP103:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1131*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB161:%.*]] = sub i32 [[TMP103]], -31 1132*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV162:%.*]] = udiv i32 [[SUB161]], 32 1133*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL163:%.*]] = mul i32 [[MUL160]], [[DIV162]] 1134*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP104:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1135*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP105:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1136*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB164:%.*]] = sub i32 [[TMP104]], [[TMP105]] 1137*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB165:%.*]] = sub i32 [[SUB164]], 1 1138*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD166:%.*]] = add i32 [[SUB165]], 1 1139*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV167:%.*]] = udiv i32 [[ADD166]], 1 1140*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL168:%.*]] = mul i32 [[MUL163]], [[DIV167]] 1141*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV169:%.*]] = zext i32 [[MUL168]] to i64 1142*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV170:%.*]] = sdiv i64 [[TMP98]], [[CONV169]] 1143*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP106:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1144*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP107:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1145*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB171:%.*]] = sub i32 [[TMP106]], [[TMP107]] 1146*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB172:%.*]] = sub i32 [[SUB171]], 1 1147*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP108:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1148*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD173:%.*]] = add i32 [[SUB172]], [[TMP108]] 1149*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP109:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1150*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV174:%.*]] = udiv i32 [[ADD173]], [[TMP109]] 1151*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL175:%.*]] = mul i32 1, [[DIV174]] 1152*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP110:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1153*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB176:%.*]] = sub i32 [[TMP110]], -31 1154*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV177:%.*]] = udiv i32 [[SUB176]], 32 1155*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL178:%.*]] = mul i32 [[MUL175]], [[DIV177]] 1156*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP111:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1157*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP112:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1158*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB179:%.*]] = sub i32 [[TMP111]], [[TMP112]] 1159*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB180:%.*]] = sub i32 [[SUB179]], 1 1160*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD181:%.*]] = add i32 [[SUB180]], 1 1161*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV182:%.*]] = udiv i32 [[ADD181]], 1 1162*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL183:%.*]] = mul i32 [[MUL178]], [[DIV182]] 1163*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV184:%.*]] = zext i32 [[MUL183]] to i64 1164*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL185:%.*]] = mul nsw i64 [[DIV170]], [[CONV184]] 1165*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB186:%.*]] = sub nsw i64 [[TMP97]], [[MUL185]] 1166*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP113:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1167*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB187:%.*]] = sub i32 [[TMP113]], -31 1168*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV188:%.*]] = udiv i32 [[SUB187]], 32 1169*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL189:%.*]] = mul i32 1, [[DIV188]] 1170*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP114:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1171*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP115:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1172*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB190:%.*]] = sub i32 [[TMP114]], [[TMP115]] 1173*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB191:%.*]] = sub i32 [[SUB190]], 1 1174*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD192:%.*]] = add i32 [[SUB191]], 1 1175*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV193:%.*]] = udiv i32 [[ADD192]], 1 1176*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL194:%.*]] = mul i32 [[MUL189]], [[DIV193]] 1177*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV195:%.*]] = zext i32 [[MUL194]] to i64 1178*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV196:%.*]] = sdiv i64 [[SUB186]], [[CONV195]] 1179*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP116:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1180*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB197:%.*]] = sub i32 [[TMP116]], -31 1181*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV198:%.*]] = udiv i32 [[SUB197]], 32 1182*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL199:%.*]] = mul i32 1, [[DIV198]] 1183*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP117:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1184*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP118:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1185*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB200:%.*]] = sub i32 [[TMP117]], [[TMP118]] 1186*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB201:%.*]] = sub i32 [[SUB200]], 1 1187*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD202:%.*]] = add i32 [[SUB201]], 1 1188*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV203:%.*]] = udiv i32 [[ADD202]], 1 1189*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL204:%.*]] = mul i32 [[MUL199]], [[DIV203]] 1190*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV205:%.*]] = zext i32 [[MUL204]] to i64 1191*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL206:%.*]] = mul nsw i64 [[DIV196]], [[CONV205]] 1192*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB207:%.*]] = sub nsw i64 [[SUB155]], [[MUL206]] 1193*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP119:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1194*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP120:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1195*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB208:%.*]] = sub i32 [[TMP119]], [[TMP120]] 1196*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB209:%.*]] = sub i32 [[SUB208]], 1 1197*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD210:%.*]] = add i32 [[SUB209]], 1 1198*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV211:%.*]] = udiv i32 [[ADD210]], 1 1199*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL212:%.*]] = mul i32 1, [[DIV211]] 1200*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV213:%.*]] = zext i32 [[MUL212]] to i64 1201*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV214:%.*]] = sdiv i64 [[SUB207]], [[CONV213]] 1202*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL215:%.*]] = mul nsw i64 [[DIV214]], 32 1203*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD216:%.*]] = add nsw i64 0, [[MUL215]] 1204*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV217:%.*]] = trunc i64 [[ADD216]] to i32 1205*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[CONV217]], ptr [[DOTFLOOR_0_IV_K51]], align 4 1206*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP121:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1207*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV218:%.*]] = zext i32 [[TMP121]] to i64 1208*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP122:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1209*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP123:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1210*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP124:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1211*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP125:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1212*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB219:%.*]] = sub i32 [[TMP124]], [[TMP125]] 1213*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB220:%.*]] = sub i32 [[SUB219]], 1 1214*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP126:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1215*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD221:%.*]] = add i32 [[SUB220]], [[TMP126]] 1216*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP127:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1217*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV222:%.*]] = udiv i32 [[ADD221]], [[TMP127]] 1218*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL223:%.*]] = mul i32 1, [[DIV222]] 1219*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP128:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1220*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB224:%.*]] = sub i32 [[TMP128]], -31 1221*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV225:%.*]] = udiv i32 [[SUB224]], 32 1222*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL226:%.*]] = mul i32 [[MUL223]], [[DIV225]] 1223*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP129:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1224*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP130:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1225*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB227:%.*]] = sub i32 [[TMP129]], [[TMP130]] 1226*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB228:%.*]] = sub i32 [[SUB227]], 1 1227*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD229:%.*]] = add i32 [[SUB228]], 1 1228*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV230:%.*]] = udiv i32 [[ADD229]], 1 1229*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL231:%.*]] = mul i32 [[MUL226]], [[DIV230]] 1230*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV232:%.*]] = zext i32 [[MUL231]] to i64 1231*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV233:%.*]] = sdiv i64 [[TMP123]], [[CONV232]] 1232*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP131:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1233*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP132:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1234*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB234:%.*]] = sub i32 [[TMP131]], [[TMP132]] 1235*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB235:%.*]] = sub i32 [[SUB234]], 1 1236*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP133:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1237*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD236:%.*]] = add i32 [[SUB235]], [[TMP133]] 1238*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP134:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1239*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV237:%.*]] = udiv i32 [[ADD236]], [[TMP134]] 1240*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL238:%.*]] = mul i32 1, [[DIV237]] 1241*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP135:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1242*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB239:%.*]] = sub i32 [[TMP135]], -31 1243*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV240:%.*]] = udiv i32 [[SUB239]], 32 1244*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL241:%.*]] = mul i32 [[MUL238]], [[DIV240]] 1245*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP136:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1246*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP137:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1247*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB242:%.*]] = sub i32 [[TMP136]], [[TMP137]] 1248*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB243:%.*]] = sub i32 [[SUB242]], 1 1249*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD244:%.*]] = add i32 [[SUB243]], 1 1250*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV245:%.*]] = udiv i32 [[ADD244]], 1 1251*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL246:%.*]] = mul i32 [[MUL241]], [[DIV245]] 1252*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV247:%.*]] = zext i32 [[MUL246]] to i64 1253*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL248:%.*]] = mul nsw i64 [[DIV233]], [[CONV247]] 1254*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB249:%.*]] = sub nsw i64 [[TMP122]], [[MUL248]] 1255*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP138:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1256*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP139:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1257*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP140:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1258*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP141:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1259*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB250:%.*]] = sub i32 [[TMP140]], [[TMP141]] 1260*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB251:%.*]] = sub i32 [[SUB250]], 1 1261*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP142:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1262*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD252:%.*]] = add i32 [[SUB251]], [[TMP142]] 1263*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP143:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1264*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV253:%.*]] = udiv i32 [[ADD252]], [[TMP143]] 1265*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL254:%.*]] = mul i32 1, [[DIV253]] 1266*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP144:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1267*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB255:%.*]] = sub i32 [[TMP144]], -31 1268*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV256:%.*]] = udiv i32 [[SUB255]], 32 1269*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL257:%.*]] = mul i32 [[MUL254]], [[DIV256]] 1270*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP145:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1271*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP146:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1272*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB258:%.*]] = sub i32 [[TMP145]], [[TMP146]] 1273*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB259:%.*]] = sub i32 [[SUB258]], 1 1274*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD260:%.*]] = add i32 [[SUB259]], 1 1275*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV261:%.*]] = udiv i32 [[ADD260]], 1 1276*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL262:%.*]] = mul i32 [[MUL257]], [[DIV261]] 1277*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV263:%.*]] = zext i32 [[MUL262]] to i64 1278*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV264:%.*]] = sdiv i64 [[TMP139]], [[CONV263]] 1279*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP147:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1280*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP148:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1281*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB265:%.*]] = sub i32 [[TMP147]], [[TMP148]] 1282*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB266:%.*]] = sub i32 [[SUB265]], 1 1283*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP149:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1284*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD267:%.*]] = add i32 [[SUB266]], [[TMP149]] 1285*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP150:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1286*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV268:%.*]] = udiv i32 [[ADD267]], [[TMP150]] 1287*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL269:%.*]] = mul i32 1, [[DIV268]] 1288*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP151:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1289*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB270:%.*]] = sub i32 [[TMP151]], -31 1290*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV271:%.*]] = udiv i32 [[SUB270]], 32 1291*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL272:%.*]] = mul i32 [[MUL269]], [[DIV271]] 1292*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP152:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1293*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP153:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1294*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB273:%.*]] = sub i32 [[TMP152]], [[TMP153]] 1295*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB274:%.*]] = sub i32 [[SUB273]], 1 1296*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD275:%.*]] = add i32 [[SUB274]], 1 1297*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV276:%.*]] = udiv i32 [[ADD275]], 1 1298*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL277:%.*]] = mul i32 [[MUL272]], [[DIV276]] 1299*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV278:%.*]] = zext i32 [[MUL277]] to i64 1300*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL279:%.*]] = mul nsw i64 [[DIV264]], [[CONV278]] 1301*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB280:%.*]] = sub nsw i64 [[TMP138]], [[MUL279]] 1302*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP154:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1303*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB281:%.*]] = sub i32 [[TMP154]], -31 1304*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV282:%.*]] = udiv i32 [[SUB281]], 32 1305*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL283:%.*]] = mul i32 1, [[DIV282]] 1306*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP155:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1307*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP156:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1308*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB284:%.*]] = sub i32 [[TMP155]], [[TMP156]] 1309*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB285:%.*]] = sub i32 [[SUB284]], 1 1310*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD286:%.*]] = add i32 [[SUB285]], 1 1311*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV287:%.*]] = udiv i32 [[ADD286]], 1 1312*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL288:%.*]] = mul i32 [[MUL283]], [[DIV287]] 1313*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV289:%.*]] = zext i32 [[MUL288]] to i64 1314*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV290:%.*]] = sdiv i64 [[SUB280]], [[CONV289]] 1315*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP157:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1316*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB291:%.*]] = sub i32 [[TMP157]], -31 1317*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV292:%.*]] = udiv i32 [[SUB291]], 32 1318*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL293:%.*]] = mul i32 1, [[DIV292]] 1319*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP158:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1320*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP159:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1321*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB294:%.*]] = sub i32 [[TMP158]], [[TMP159]] 1322*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB295:%.*]] = sub i32 [[SUB294]], 1 1323*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD296:%.*]] = add i32 [[SUB295]], 1 1324*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV297:%.*]] = udiv i32 [[ADD296]], 1 1325*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL298:%.*]] = mul i32 [[MUL293]], [[DIV297]] 1326*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV299:%.*]] = zext i32 [[MUL298]] to i64 1327*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL300:%.*]] = mul nsw i64 [[DIV290]], [[CONV299]] 1328*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB301:%.*]] = sub nsw i64 [[SUB249]], [[MUL300]] 1329*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP160:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1330*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP161:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1331*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP162:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1332*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP163:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1333*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB302:%.*]] = sub i32 [[TMP162]], [[TMP163]] 1334*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB303:%.*]] = sub i32 [[SUB302]], 1 1335*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP164:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1336*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD304:%.*]] = add i32 [[SUB303]], [[TMP164]] 1337*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP165:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1338*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV305:%.*]] = udiv i32 [[ADD304]], [[TMP165]] 1339*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL306:%.*]] = mul i32 1, [[DIV305]] 1340*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP166:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1341*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB307:%.*]] = sub i32 [[TMP166]], -31 1342*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV308:%.*]] = udiv i32 [[SUB307]], 32 1343*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL309:%.*]] = mul i32 [[MUL306]], [[DIV308]] 1344*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP167:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1345*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP168:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1346*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB310:%.*]] = sub i32 [[TMP167]], [[TMP168]] 1347*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB311:%.*]] = sub i32 [[SUB310]], 1 1348*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD312:%.*]] = add i32 [[SUB311]], 1 1349*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV313:%.*]] = udiv i32 [[ADD312]], 1 1350*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL314:%.*]] = mul i32 [[MUL309]], [[DIV313]] 1351*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV315:%.*]] = zext i32 [[MUL314]] to i64 1352*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV316:%.*]] = sdiv i64 [[TMP161]], [[CONV315]] 1353*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP169:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1354*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP170:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1355*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB317:%.*]] = sub i32 [[TMP169]], [[TMP170]] 1356*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB318:%.*]] = sub i32 [[SUB317]], 1 1357*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP171:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1358*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD319:%.*]] = add i32 [[SUB318]], [[TMP171]] 1359*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP172:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1360*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV320:%.*]] = udiv i32 [[ADD319]], [[TMP172]] 1361*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL321:%.*]] = mul i32 1, [[DIV320]] 1362*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP173:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1363*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB322:%.*]] = sub i32 [[TMP173]], -31 1364*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV323:%.*]] = udiv i32 [[SUB322]], 32 1365*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL324:%.*]] = mul i32 [[MUL321]], [[DIV323]] 1366*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP174:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1367*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP175:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1368*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB325:%.*]] = sub i32 [[TMP174]], [[TMP175]] 1369*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB326:%.*]] = sub i32 [[SUB325]], 1 1370*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD327:%.*]] = add i32 [[SUB326]], 1 1371*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV328:%.*]] = udiv i32 [[ADD327]], 1 1372*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL329:%.*]] = mul i32 [[MUL324]], [[DIV328]] 1373*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV330:%.*]] = zext i32 [[MUL329]] to i64 1374*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL331:%.*]] = mul nsw i64 [[DIV316]], [[CONV330]] 1375*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB332:%.*]] = sub nsw i64 [[TMP160]], [[MUL331]] 1376*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP176:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1377*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP177:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1378*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP178:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1379*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP179:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1380*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB333:%.*]] = sub i32 [[TMP178]], [[TMP179]] 1381*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB334:%.*]] = sub i32 [[SUB333]], 1 1382*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP180:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1383*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD335:%.*]] = add i32 [[SUB334]], [[TMP180]] 1384*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP181:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1385*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV336:%.*]] = udiv i32 [[ADD335]], [[TMP181]] 1386*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL337:%.*]] = mul i32 1, [[DIV336]] 1387*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP182:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1388*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB338:%.*]] = sub i32 [[TMP182]], -31 1389*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV339:%.*]] = udiv i32 [[SUB338]], 32 1390*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL340:%.*]] = mul i32 [[MUL337]], [[DIV339]] 1391*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP183:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1392*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP184:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1393*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB341:%.*]] = sub i32 [[TMP183]], [[TMP184]] 1394*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB342:%.*]] = sub i32 [[SUB341]], 1 1395*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD343:%.*]] = add i32 [[SUB342]], 1 1396*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV344:%.*]] = udiv i32 [[ADD343]], 1 1397*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL345:%.*]] = mul i32 [[MUL340]], [[DIV344]] 1398*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV346:%.*]] = zext i32 [[MUL345]] to i64 1399*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV347:%.*]] = sdiv i64 [[TMP177]], [[CONV346]] 1400*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP185:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1401*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP186:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1402*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB348:%.*]] = sub i32 [[TMP185]], [[TMP186]] 1403*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB349:%.*]] = sub i32 [[SUB348]], 1 1404*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP187:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1405*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD350:%.*]] = add i32 [[SUB349]], [[TMP187]] 1406*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP188:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1407*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV351:%.*]] = udiv i32 [[ADD350]], [[TMP188]] 1408*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL352:%.*]] = mul i32 1, [[DIV351]] 1409*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP189:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1410*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB353:%.*]] = sub i32 [[TMP189]], -31 1411*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV354:%.*]] = udiv i32 [[SUB353]], 32 1412*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL355:%.*]] = mul i32 [[MUL352]], [[DIV354]] 1413*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP190:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1414*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP191:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1415*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB356:%.*]] = sub i32 [[TMP190]], [[TMP191]] 1416*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB357:%.*]] = sub i32 [[SUB356]], 1 1417*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD358:%.*]] = add i32 [[SUB357]], 1 1418*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV359:%.*]] = udiv i32 [[ADD358]], 1 1419*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL360:%.*]] = mul i32 [[MUL355]], [[DIV359]] 1420*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV361:%.*]] = zext i32 [[MUL360]] to i64 1421*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL362:%.*]] = mul nsw i64 [[DIV347]], [[CONV361]] 1422*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB363:%.*]] = sub nsw i64 [[TMP176]], [[MUL362]] 1423*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP192:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1424*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB364:%.*]] = sub i32 [[TMP192]], -31 1425*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV365:%.*]] = udiv i32 [[SUB364]], 32 1426*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL366:%.*]] = mul i32 1, [[DIV365]] 1427*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP193:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1428*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP194:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1429*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB367:%.*]] = sub i32 [[TMP193]], [[TMP194]] 1430*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB368:%.*]] = sub i32 [[SUB367]], 1 1431*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD369:%.*]] = add i32 [[SUB368]], 1 1432*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV370:%.*]] = udiv i32 [[ADD369]], 1 1433*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL371:%.*]] = mul i32 [[MUL366]], [[DIV370]] 1434*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV372:%.*]] = zext i32 [[MUL371]] to i64 1435*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV373:%.*]] = sdiv i64 [[SUB363]], [[CONV372]] 1436*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP195:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1437*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB374:%.*]] = sub i32 [[TMP195]], -31 1438*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV375:%.*]] = udiv i32 [[SUB374]], 32 1439*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL376:%.*]] = mul i32 1, [[DIV375]] 1440*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP196:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1441*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP197:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1442*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB377:%.*]] = sub i32 [[TMP196]], [[TMP197]] 1443*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB378:%.*]] = sub i32 [[SUB377]], 1 1444*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD379:%.*]] = add i32 [[SUB378]], 1 1445*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV380:%.*]] = udiv i32 [[ADD379]], 1 1446*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL381:%.*]] = mul i32 [[MUL376]], [[DIV380]] 1447*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV382:%.*]] = zext i32 [[MUL381]] to i64 1448*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL383:%.*]] = mul nsw i64 [[DIV373]], [[CONV382]] 1449*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB384:%.*]] = sub nsw i64 [[SUB332]], [[MUL383]] 1450*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP198:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1451*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP199:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1452*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB385:%.*]] = sub i32 [[TMP198]], [[TMP199]] 1453*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB386:%.*]] = sub i32 [[SUB385]], 1 1454*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD387:%.*]] = add i32 [[SUB386]], 1 1455*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV388:%.*]] = udiv i32 [[ADD387]], 1 1456*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL389:%.*]] = mul i32 1, [[DIV388]] 1457*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV390:%.*]] = zext i32 [[MUL389]] to i64 1458*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV391:%.*]] = sdiv i64 [[SUB384]], [[CONV390]] 1459*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP200:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1460*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP201:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1461*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB392:%.*]] = sub i32 [[TMP200]], [[TMP201]] 1462*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB393:%.*]] = sub i32 [[SUB392]], 1 1463*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD394:%.*]] = add i32 [[SUB393]], 1 1464*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV395:%.*]] = udiv i32 [[ADD394]], 1 1465*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL396:%.*]] = mul i32 1, [[DIV395]] 1466*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV397:%.*]] = zext i32 [[MUL396]] to i64 1467*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL398:%.*]] = mul nsw i64 [[DIV391]], [[CONV397]] 1468*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB399:%.*]] = sub nsw i64 [[SUB301]], [[MUL398]] 1469*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL400:%.*]] = mul nsw i64 [[SUB399]], 1 1470*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD401:%.*]] = add nsw i64 [[CONV218]], [[MUL400]] 1471*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV402:%.*]] = trunc i64 [[ADD401]] to i32 1472*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[CONV402]], ptr [[DOTTILE_0_IV_K52]], align 4 1473*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP202:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_8]], align 4 1474*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP203:%.*]] = load i32, ptr [[DOTTILE_0_IV_K52]], align 4 1475*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP204:%.*]] = load i32, ptr [[DOTNEW_STEP10]], align 4 1476*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL403:%.*]] = mul i32 [[TMP203]], [[TMP204]] 1477*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD404:%.*]] = add i32 [[TMP202]], [[MUL403]] 1478*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[ADD404]], ptr [[K]], align 4 1479*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP205:%.*]] = load i32, ptr [[I49]], align 4 1480*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP206:%.*]] = load i32, ptr [[J50]], align 4 1481*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP207:%.*]] = load i32, ptr [[K]], align 4 1482*5b03efb8SMichael Kruse // CHECK1-NEXT: call void (...) @body(i32 noundef [[TMP205]], i32 noundef [[TMP206]], i32 noundef [[TMP207]]) 1483*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[OMP_BODY_CONTINUE:%.*]] 1484*5b03efb8SMichael Kruse // CHECK1: omp.body.continue: 1485*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_INC:%.*]] 1486*5b03efb8SMichael Kruse // CHECK1: omp.inner.for.inc: 1487*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP208:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1488*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD405:%.*]] = add nsw i64 [[TMP208]], 1 1489*5b03efb8SMichael Kruse // CHECK1-NEXT: store i64 [[ADD405]], ptr [[DOTOMP_IV]], align 8 1490*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_COND]] 1491*5b03efb8SMichael Kruse // CHECK1: omp.inner.for.end: 1492*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[OMP_LOOP_EXIT:%.*]] 1493*5b03efb8SMichael Kruse // CHECK1: omp.loop.exit: 1494*5b03efb8SMichael Kruse // CHECK1-NEXT: call void @__kmpc_for_static_fini(ptr @[[GLOB1]], i32 [[TMP0]]) 1495*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[OMP_PRECOND_END]] 1496*5b03efb8SMichael Kruse // CHECK1: omp.precond.end: 1497*5b03efb8SMichael Kruse // CHECK1-NEXT: call void @__kmpc_barrier(ptr @[[GLOB3]], i32 [[TMP0]]) 1498*5b03efb8SMichael Kruse // CHECK1-NEXT: ret void 1499*5b03efb8SMichael Kruse // 1500*5b03efb8SMichael Kruse // 1501*5b03efb8SMichael Kruse // CHECK1-LABEL: define {{[^@]+}}@_Z4foo8ILi64EEviii 1502*5b03efb8SMichael Kruse // CHECK1-SAME: (i32 noundef [[START:%.*]], i32 noundef [[END:%.*]], i32 noundef [[STEP:%.*]]) #[[ATTR0]] comdat { 1503*5b03efb8SMichael Kruse // CHECK1-NEXT: entry: 1504*5b03efb8SMichael Kruse // CHECK1-NEXT: [[START_ADDR:%.*]] = alloca i32, align 4 1505*5b03efb8SMichael Kruse // CHECK1-NEXT: [[END_ADDR:%.*]] = alloca i32, align 4 1506*5b03efb8SMichael Kruse // CHECK1-NEXT: [[STEP_ADDR:%.*]] = alloca i32, align 4 1507*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTOMP_IV:%.*]] = alloca i64, align 8 1508*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP:%.*]] = alloca i32, align 4 1509*5b03efb8SMichael Kruse // CHECK1-NEXT: [[_TMP1:%.*]] = alloca i32, align 4 1510*5b03efb8SMichael Kruse // CHECK1-NEXT: [[_TMP2:%.*]] = alloca i32, align 4 1511*5b03efb8SMichael Kruse // CHECK1-NEXT: [[_TMP3:%.*]] = alloca i32, align 4 1512*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_:%.*]] = alloca i32, align 4 1513*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_4:%.*]] = alloca i32, align 4 1514*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTNEW_STEP:%.*]] = alloca i32, align 4 1515*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_5:%.*]] = alloca i32, align 4 1516*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_6:%.*]] = alloca i32, align 4 1517*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTNEW_STEP7:%.*]] = alloca i32, align 4 1518*5b03efb8SMichael Kruse // CHECK1-NEXT: [[K:%.*]] = alloca i32, align 4 1519*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_8:%.*]] = alloca i32, align 4 1520*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_9:%.*]] = alloca i32, align 4 1521*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTNEW_STEP10:%.*]] = alloca i32, align 4 1522*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_11:%.*]] = alloca i32, align 4 1523*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_14:%.*]] = alloca i32, align 4 1524*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_16:%.*]] = alloca i32, align 4 1525*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_17:%.*]] = alloca i32, align 4 1526*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_22:%.*]] = alloca i64, align 8 1527*5b03efb8SMichael Kruse // CHECK1-NEXT: [[I:%.*]] = alloca i32, align 4 1528*5b03efb8SMichael Kruse // CHECK1-NEXT: [[J:%.*]] = alloca i32, align 4 1529*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTFLOOR_0_IV_K:%.*]] = alloca i32, align 4 1530*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTTILE_0_IV_K:%.*]] = alloca i32, align 4 1531*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTOMP_LB:%.*]] = alloca i64, align 8 1532*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTOMP_UB:%.*]] = alloca i64, align 8 1533*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTOMP_STRIDE:%.*]] = alloca i64, align 8 1534*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTOMP_IS_LAST:%.*]] = alloca i32, align 4 1535*5b03efb8SMichael Kruse // CHECK1-NEXT: [[I49:%.*]] = alloca i32, align 4 1536*5b03efb8SMichael Kruse // CHECK1-NEXT: [[J50:%.*]] = alloca i32, align 4 1537*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTFLOOR_0_IV_K51:%.*]] = alloca i32, align 4 1538*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DOTTILE_0_IV_K52:%.*]] = alloca i32, align 4 1539*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP0:%.*]] = call i32 @__kmpc_global_thread_num(ptr @[[GLOB2]]) 1540*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[START]], ptr [[START_ADDR]], align 4 1541*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[END]], ptr [[END_ADDR]], align 4 1542*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[STEP]], ptr [[STEP_ADDR]], align 4 1543*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP1:%.*]] = load i32, ptr [[START_ADDR]], align 4 1544*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP1]], ptr [[DOTCAPTURE_EXPR_]], align 4 1545*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP2:%.*]] = load i32, ptr [[END_ADDR]], align 4 1546*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP2]], ptr [[DOTCAPTURE_EXPR_4]], align 4 1547*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP3:%.*]] = load i32, ptr [[STEP_ADDR]], align 4 1548*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP3]], ptr [[DOTNEW_STEP]], align 4 1549*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP4:%.*]] = load i32, ptr [[START_ADDR]], align 4 1550*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP4]], ptr [[DOTCAPTURE_EXPR_5]], align 4 1551*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP5:%.*]] = load i32, ptr [[END_ADDR]], align 4 1552*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP5]], ptr [[DOTCAPTURE_EXPR_6]], align 4 1553*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP6:%.*]] = load i32, ptr [[STEP_ADDR]], align 4 1554*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP6]], ptr [[DOTNEW_STEP7]], align 4 1555*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP7:%.*]] = load i32, ptr [[START_ADDR]], align 4 1556*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP7]], ptr [[K]], align 4 1557*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP8:%.*]] = load i32, ptr [[START_ADDR]], align 4 1558*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP8]], ptr [[DOTCAPTURE_EXPR_8]], align 4 1559*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP9:%.*]] = load i32, ptr [[END_ADDR]], align 4 1560*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP9]], ptr [[DOTCAPTURE_EXPR_9]], align 4 1561*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP10:%.*]] = load i32, ptr [[STEP_ADDR]], align 4 1562*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP10]], ptr [[DOTNEW_STEP10]], align 4 1563*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP11:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_9]], align 4 1564*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP12:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_8]], align 4 1565*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB:%.*]] = sub i32 [[TMP11]], [[TMP12]] 1566*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB12:%.*]] = sub i32 [[SUB]], 1 1567*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP13:%.*]] = load i32, ptr [[DOTNEW_STEP10]], align 4 1568*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD:%.*]] = add i32 [[SUB12]], [[TMP13]] 1569*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP14:%.*]] = load i32, ptr [[DOTNEW_STEP10]], align 4 1570*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV:%.*]] = udiv i32 [[ADD]], [[TMP14]] 1571*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB13:%.*]] = sub i32 [[DIV]], 1 1572*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[SUB13]], ptr [[DOTCAPTURE_EXPR_11]], align 4 1573*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP15:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_11]], align 4 1574*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD15:%.*]] = add i32 [[TMP15]], 1 1575*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[ADD15]], ptr [[DOTCAPTURE_EXPR_14]], align 4 1576*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP16:%.*]] = load i32, ptr [[_TMP2]], align 4 1577*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP16]], ptr [[DOTCAPTURE_EXPR_16]], align 4 1578*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP17:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_11]], align 4 1579*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD18:%.*]] = add i32 [[TMP17]], 1 1580*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP18:%.*]] = load i32, ptr [[_TMP2]], align 4 1581*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD19:%.*]] = add i32 [[TMP18]], 64 1582*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP:%.*]] = icmp ult i32 [[ADD18]], [[ADD19]] 1583*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP]], label [[COND_TRUE:%.*]], label [[COND_FALSE:%.*]] 1584*5b03efb8SMichael Kruse // CHECK1: cond.true: 1585*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP19:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_11]], align 4 1586*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD20:%.*]] = add i32 [[TMP19]], 1 1587*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[COND_END:%.*]] 1588*5b03efb8SMichael Kruse // CHECK1: cond.false: 1589*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP20:%.*]] = load i32, ptr [[_TMP2]], align 4 1590*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD21:%.*]] = add i32 [[TMP20]], 64 1591*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[COND_END]] 1592*5b03efb8SMichael Kruse // CHECK1: cond.end: 1593*5b03efb8SMichael Kruse // CHECK1-NEXT: [[COND:%.*]] = phi i32 [ [[ADD20]], [[COND_TRUE]] ], [ [[ADD21]], [[COND_FALSE]] ] 1594*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[COND]], ptr [[DOTCAPTURE_EXPR_17]], align 4 1595*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP21:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_4]], align 4 1596*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP22:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 1597*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB23:%.*]] = sub i32 [[TMP21]], [[TMP22]] 1598*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB24:%.*]] = sub i32 [[SUB23]], 1 1599*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP23:%.*]] = load i32, ptr [[DOTNEW_STEP]], align 4 1600*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD25:%.*]] = add i32 [[SUB24]], [[TMP23]] 1601*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP24:%.*]] = load i32, ptr [[DOTNEW_STEP]], align 4 1602*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV26:%.*]] = udiv i32 [[ADD25]], [[TMP24]] 1603*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV:%.*]] = zext i32 [[DIV26]] to i64 1604*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP25:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1605*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP26:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1606*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB27:%.*]] = sub i32 [[TMP25]], [[TMP26]] 1607*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB28:%.*]] = sub i32 [[SUB27]], 1 1608*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP27:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1609*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD29:%.*]] = add i32 [[SUB28]], [[TMP27]] 1610*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP28:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1611*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV30:%.*]] = udiv i32 [[ADD29]], [[TMP28]] 1612*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV31:%.*]] = zext i32 [[DIV30]] to i64 1613*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL:%.*]] = mul nsw i64 [[CONV]], [[CONV31]] 1614*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP29:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1615*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB32:%.*]] = sub i32 [[TMP29]], -63 1616*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV33:%.*]] = udiv i32 [[SUB32]], 64 1617*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV34:%.*]] = zext i32 [[DIV33]] to i64 1618*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL35:%.*]] = mul nsw i64 [[MUL]], [[CONV34]] 1619*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP30:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1620*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP31:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1621*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB36:%.*]] = sub i32 [[TMP30]], [[TMP31]] 1622*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB37:%.*]] = sub i32 [[SUB36]], 1 1623*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD38:%.*]] = add i32 [[SUB37]], 1 1624*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV39:%.*]] = udiv i32 [[ADD38]], 1 1625*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV40:%.*]] = zext i32 [[DIV39]] to i64 1626*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL41:%.*]] = mul nsw i64 [[MUL35]], [[CONV40]] 1627*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB42:%.*]] = sub nsw i64 [[MUL41]], 1 1628*5b03efb8SMichael Kruse // CHECK1-NEXT: store i64 [[SUB42]], ptr [[DOTCAPTURE_EXPR_22]], align 8 1629*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP32:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 1630*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP32]], ptr [[I]], align 4 1631*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP33:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1632*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP33]], ptr [[J]], align 4 1633*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTFLOOR_0_IV_K]], align 4 1634*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP34:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1635*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[TMP34]], ptr [[DOTTILE_0_IV_K]], align 4 1636*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP35:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 1637*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP36:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_4]], align 4 1638*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP43:%.*]] = icmp slt i32 [[TMP35]], [[TMP36]] 1639*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP43]], label [[LAND_LHS_TRUE:%.*]], label [[OMP_PRECOND_END:%.*]] 1640*5b03efb8SMichael Kruse // CHECK1: land.lhs.true: 1641*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP37:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1642*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP38:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1643*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP44:%.*]] = icmp slt i32 [[TMP37]], [[TMP38]] 1644*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP44]], label [[LAND_LHS_TRUE45:%.*]], label [[OMP_PRECOND_END]] 1645*5b03efb8SMichael Kruse // CHECK1: land.lhs.true45: 1646*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP39:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1647*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP46:%.*]] = icmp ult i32 0, [[TMP39]] 1648*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP46]], label [[LAND_LHS_TRUE47:%.*]], label [[OMP_PRECOND_END]] 1649*5b03efb8SMichael Kruse // CHECK1: land.lhs.true47: 1650*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP40:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1651*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP41:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1652*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP48:%.*]] = icmp ult i32 [[TMP40]], [[TMP41]] 1653*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP48]], label [[OMP_PRECOND_THEN:%.*]], label [[OMP_PRECOND_END]] 1654*5b03efb8SMichael Kruse // CHECK1: omp.precond.then: 1655*5b03efb8SMichael Kruse // CHECK1-NEXT: store i64 0, ptr [[DOTOMP_LB]], align 8 1656*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP42:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_22]], align 8 1657*5b03efb8SMichael Kruse // CHECK1-NEXT: store i64 [[TMP42]], ptr [[DOTOMP_UB]], align 8 1658*5b03efb8SMichael Kruse // CHECK1-NEXT: store i64 1, ptr [[DOTOMP_STRIDE]], align 8 1659*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTOMP_IS_LAST]], align 4 1660*5b03efb8SMichael Kruse // CHECK1-NEXT: call void @__kmpc_for_static_init_8(ptr @[[GLOB1]], i32 [[TMP0]], i32 34, ptr [[DOTOMP_IS_LAST]], ptr [[DOTOMP_LB]], ptr [[DOTOMP_UB]], ptr [[DOTOMP_STRIDE]], i64 1, i64 1) 1661*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP43:%.*]] = load i64, ptr [[DOTOMP_UB]], align 8 1662*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP44:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_22]], align 8 1663*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP53:%.*]] = icmp sgt i64 [[TMP43]], [[TMP44]] 1664*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP53]], label [[COND_TRUE54:%.*]], label [[COND_FALSE55:%.*]] 1665*5b03efb8SMichael Kruse // CHECK1: cond.true54: 1666*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP45:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_22]], align 8 1667*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[COND_END56:%.*]] 1668*5b03efb8SMichael Kruse // CHECK1: cond.false55: 1669*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP46:%.*]] = load i64, ptr [[DOTOMP_UB]], align 8 1670*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[COND_END56]] 1671*5b03efb8SMichael Kruse // CHECK1: cond.end56: 1672*5b03efb8SMichael Kruse // CHECK1-NEXT: [[COND57:%.*]] = phi i64 [ [[TMP45]], [[COND_TRUE54]] ], [ [[TMP46]], [[COND_FALSE55]] ] 1673*5b03efb8SMichael Kruse // CHECK1-NEXT: store i64 [[COND57]], ptr [[DOTOMP_UB]], align 8 1674*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP47:%.*]] = load i64, ptr [[DOTOMP_LB]], align 8 1675*5b03efb8SMichael Kruse // CHECK1-NEXT: store i64 [[TMP47]], ptr [[DOTOMP_IV]], align 8 1676*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_COND:%.*]] 1677*5b03efb8SMichael Kruse // CHECK1: omp.inner.for.cond: 1678*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP48:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1679*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP49:%.*]] = load i64, ptr [[DOTOMP_UB]], align 8 1680*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CMP58:%.*]] = icmp sle i64 [[TMP48]], [[TMP49]] 1681*5b03efb8SMichael Kruse // CHECK1-NEXT: br i1 [[CMP58]], label [[OMP_INNER_FOR_BODY:%.*]], label [[OMP_INNER_FOR_END:%.*]] 1682*5b03efb8SMichael Kruse // CHECK1: omp.inner.for.body: 1683*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP50:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 1684*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV59:%.*]] = sext i32 [[TMP50]] to i64 1685*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP51:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1686*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP52:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1687*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP53:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1688*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB60:%.*]] = sub i32 [[TMP52]], [[TMP53]] 1689*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB61:%.*]] = sub i32 [[SUB60]], 1 1690*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP54:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1691*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD62:%.*]] = add i32 [[SUB61]], [[TMP54]] 1692*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP55:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1693*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV63:%.*]] = udiv i32 [[ADD62]], [[TMP55]] 1694*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL64:%.*]] = mul i32 1, [[DIV63]] 1695*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP56:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1696*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB65:%.*]] = sub i32 [[TMP56]], -63 1697*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV66:%.*]] = udiv i32 [[SUB65]], 64 1698*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL67:%.*]] = mul i32 [[MUL64]], [[DIV66]] 1699*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP57:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1700*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP58:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1701*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB68:%.*]] = sub i32 [[TMP57]], [[TMP58]] 1702*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB69:%.*]] = sub i32 [[SUB68]], 1 1703*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD70:%.*]] = add i32 [[SUB69]], 1 1704*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV71:%.*]] = udiv i32 [[ADD70]], 1 1705*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL72:%.*]] = mul i32 [[MUL67]], [[DIV71]] 1706*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV73:%.*]] = zext i32 [[MUL72]] to i64 1707*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV74:%.*]] = sdiv i64 [[TMP51]], [[CONV73]] 1708*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP59:%.*]] = load i32, ptr [[DOTNEW_STEP]], align 4 1709*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV75:%.*]] = sext i32 [[TMP59]] to i64 1710*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL76:%.*]] = mul nsw i64 [[DIV74]], [[CONV75]] 1711*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD77:%.*]] = add nsw i64 [[CONV59]], [[MUL76]] 1712*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV78:%.*]] = trunc i64 [[ADD77]] to i32 1713*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[CONV78]], ptr [[I49]], align 4 1714*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP60:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1715*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV79:%.*]] = sext i32 [[TMP60]] to i64 1716*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP61:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1717*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP62:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1718*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP63:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1719*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP64:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1720*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB80:%.*]] = sub i32 [[TMP63]], [[TMP64]] 1721*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB81:%.*]] = sub i32 [[SUB80]], 1 1722*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP65:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1723*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD82:%.*]] = add i32 [[SUB81]], [[TMP65]] 1724*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP66:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1725*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV83:%.*]] = udiv i32 [[ADD82]], [[TMP66]] 1726*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL84:%.*]] = mul i32 1, [[DIV83]] 1727*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP67:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1728*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB85:%.*]] = sub i32 [[TMP67]], -63 1729*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV86:%.*]] = udiv i32 [[SUB85]], 64 1730*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL87:%.*]] = mul i32 [[MUL84]], [[DIV86]] 1731*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP68:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1732*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP69:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1733*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB88:%.*]] = sub i32 [[TMP68]], [[TMP69]] 1734*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB89:%.*]] = sub i32 [[SUB88]], 1 1735*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD90:%.*]] = add i32 [[SUB89]], 1 1736*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV91:%.*]] = udiv i32 [[ADD90]], 1 1737*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL92:%.*]] = mul i32 [[MUL87]], [[DIV91]] 1738*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV93:%.*]] = zext i32 [[MUL92]] to i64 1739*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV94:%.*]] = sdiv i64 [[TMP62]], [[CONV93]] 1740*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP70:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1741*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP71:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1742*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB95:%.*]] = sub i32 [[TMP70]], [[TMP71]] 1743*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB96:%.*]] = sub i32 [[SUB95]], 1 1744*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP72:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1745*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD97:%.*]] = add i32 [[SUB96]], [[TMP72]] 1746*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP73:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1747*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV98:%.*]] = udiv i32 [[ADD97]], [[TMP73]] 1748*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL99:%.*]] = mul i32 1, [[DIV98]] 1749*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP74:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1750*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB100:%.*]] = sub i32 [[TMP74]], -63 1751*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV101:%.*]] = udiv i32 [[SUB100]], 64 1752*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL102:%.*]] = mul i32 [[MUL99]], [[DIV101]] 1753*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP75:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1754*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP76:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1755*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB103:%.*]] = sub i32 [[TMP75]], [[TMP76]] 1756*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB104:%.*]] = sub i32 [[SUB103]], 1 1757*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD105:%.*]] = add i32 [[SUB104]], 1 1758*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV106:%.*]] = udiv i32 [[ADD105]], 1 1759*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL107:%.*]] = mul i32 [[MUL102]], [[DIV106]] 1760*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV108:%.*]] = zext i32 [[MUL107]] to i64 1761*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL109:%.*]] = mul nsw i64 [[DIV94]], [[CONV108]] 1762*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB110:%.*]] = sub nsw i64 [[TMP61]], [[MUL109]] 1763*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP77:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1764*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB111:%.*]] = sub i32 [[TMP77]], -63 1765*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV112:%.*]] = udiv i32 [[SUB111]], 64 1766*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL113:%.*]] = mul i32 1, [[DIV112]] 1767*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP78:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1768*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP79:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1769*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB114:%.*]] = sub i32 [[TMP78]], [[TMP79]] 1770*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB115:%.*]] = sub i32 [[SUB114]], 1 1771*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD116:%.*]] = add i32 [[SUB115]], 1 1772*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV117:%.*]] = udiv i32 [[ADD116]], 1 1773*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL118:%.*]] = mul i32 [[MUL113]], [[DIV117]] 1774*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV119:%.*]] = zext i32 [[MUL118]] to i64 1775*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV120:%.*]] = sdiv i64 [[SUB110]], [[CONV119]] 1776*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP80:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1777*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV121:%.*]] = sext i32 [[TMP80]] to i64 1778*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL122:%.*]] = mul nsw i64 [[DIV120]], [[CONV121]] 1779*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD123:%.*]] = add nsw i64 [[CONV79]], [[MUL122]] 1780*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV124:%.*]] = trunc i64 [[ADD123]] to i32 1781*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[CONV124]], ptr [[J50]], align 4 1782*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP81:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1783*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP82:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1784*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP83:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1785*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP84:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1786*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB125:%.*]] = sub i32 [[TMP83]], [[TMP84]] 1787*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB126:%.*]] = sub i32 [[SUB125]], 1 1788*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP85:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1789*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD127:%.*]] = add i32 [[SUB126]], [[TMP85]] 1790*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP86:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1791*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV128:%.*]] = udiv i32 [[ADD127]], [[TMP86]] 1792*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL129:%.*]] = mul i32 1, [[DIV128]] 1793*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP87:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1794*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB130:%.*]] = sub i32 [[TMP87]], -63 1795*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV131:%.*]] = udiv i32 [[SUB130]], 64 1796*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL132:%.*]] = mul i32 [[MUL129]], [[DIV131]] 1797*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP88:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1798*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP89:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1799*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB133:%.*]] = sub i32 [[TMP88]], [[TMP89]] 1800*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB134:%.*]] = sub i32 [[SUB133]], 1 1801*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD135:%.*]] = add i32 [[SUB134]], 1 1802*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV136:%.*]] = udiv i32 [[ADD135]], 1 1803*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL137:%.*]] = mul i32 [[MUL132]], [[DIV136]] 1804*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV138:%.*]] = zext i32 [[MUL137]] to i64 1805*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV139:%.*]] = sdiv i64 [[TMP82]], [[CONV138]] 1806*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP90:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1807*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP91:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1808*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB140:%.*]] = sub i32 [[TMP90]], [[TMP91]] 1809*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB141:%.*]] = sub i32 [[SUB140]], 1 1810*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP92:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1811*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD142:%.*]] = add i32 [[SUB141]], [[TMP92]] 1812*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP93:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1813*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV143:%.*]] = udiv i32 [[ADD142]], [[TMP93]] 1814*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL144:%.*]] = mul i32 1, [[DIV143]] 1815*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP94:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1816*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB145:%.*]] = sub i32 [[TMP94]], -63 1817*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV146:%.*]] = udiv i32 [[SUB145]], 64 1818*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL147:%.*]] = mul i32 [[MUL144]], [[DIV146]] 1819*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP95:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1820*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP96:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1821*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB148:%.*]] = sub i32 [[TMP95]], [[TMP96]] 1822*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB149:%.*]] = sub i32 [[SUB148]], 1 1823*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD150:%.*]] = add i32 [[SUB149]], 1 1824*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV151:%.*]] = udiv i32 [[ADD150]], 1 1825*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL152:%.*]] = mul i32 [[MUL147]], [[DIV151]] 1826*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV153:%.*]] = zext i32 [[MUL152]] to i64 1827*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL154:%.*]] = mul nsw i64 [[DIV139]], [[CONV153]] 1828*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB155:%.*]] = sub nsw i64 [[TMP81]], [[MUL154]] 1829*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP97:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1830*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP98:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1831*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP99:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1832*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP100:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1833*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB156:%.*]] = sub i32 [[TMP99]], [[TMP100]] 1834*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB157:%.*]] = sub i32 [[SUB156]], 1 1835*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP101:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1836*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD158:%.*]] = add i32 [[SUB157]], [[TMP101]] 1837*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP102:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1838*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV159:%.*]] = udiv i32 [[ADD158]], [[TMP102]] 1839*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL160:%.*]] = mul i32 1, [[DIV159]] 1840*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP103:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1841*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB161:%.*]] = sub i32 [[TMP103]], -63 1842*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV162:%.*]] = udiv i32 [[SUB161]], 64 1843*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL163:%.*]] = mul i32 [[MUL160]], [[DIV162]] 1844*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP104:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1845*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP105:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1846*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB164:%.*]] = sub i32 [[TMP104]], [[TMP105]] 1847*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB165:%.*]] = sub i32 [[SUB164]], 1 1848*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD166:%.*]] = add i32 [[SUB165]], 1 1849*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV167:%.*]] = udiv i32 [[ADD166]], 1 1850*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL168:%.*]] = mul i32 [[MUL163]], [[DIV167]] 1851*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV169:%.*]] = zext i32 [[MUL168]] to i64 1852*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV170:%.*]] = sdiv i64 [[TMP98]], [[CONV169]] 1853*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP106:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1854*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP107:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1855*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB171:%.*]] = sub i32 [[TMP106]], [[TMP107]] 1856*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB172:%.*]] = sub i32 [[SUB171]], 1 1857*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP108:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1858*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD173:%.*]] = add i32 [[SUB172]], [[TMP108]] 1859*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP109:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1860*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV174:%.*]] = udiv i32 [[ADD173]], [[TMP109]] 1861*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL175:%.*]] = mul i32 1, [[DIV174]] 1862*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP110:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1863*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB176:%.*]] = sub i32 [[TMP110]], -63 1864*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV177:%.*]] = udiv i32 [[SUB176]], 64 1865*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL178:%.*]] = mul i32 [[MUL175]], [[DIV177]] 1866*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP111:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1867*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP112:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1868*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB179:%.*]] = sub i32 [[TMP111]], [[TMP112]] 1869*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB180:%.*]] = sub i32 [[SUB179]], 1 1870*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD181:%.*]] = add i32 [[SUB180]], 1 1871*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV182:%.*]] = udiv i32 [[ADD181]], 1 1872*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL183:%.*]] = mul i32 [[MUL178]], [[DIV182]] 1873*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV184:%.*]] = zext i32 [[MUL183]] to i64 1874*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL185:%.*]] = mul nsw i64 [[DIV170]], [[CONV184]] 1875*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB186:%.*]] = sub nsw i64 [[TMP97]], [[MUL185]] 1876*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP113:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1877*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB187:%.*]] = sub i32 [[TMP113]], -63 1878*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV188:%.*]] = udiv i32 [[SUB187]], 64 1879*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL189:%.*]] = mul i32 1, [[DIV188]] 1880*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP114:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1881*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP115:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1882*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB190:%.*]] = sub i32 [[TMP114]], [[TMP115]] 1883*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB191:%.*]] = sub i32 [[SUB190]], 1 1884*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD192:%.*]] = add i32 [[SUB191]], 1 1885*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV193:%.*]] = udiv i32 [[ADD192]], 1 1886*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL194:%.*]] = mul i32 [[MUL189]], [[DIV193]] 1887*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV195:%.*]] = zext i32 [[MUL194]] to i64 1888*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV196:%.*]] = sdiv i64 [[SUB186]], [[CONV195]] 1889*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP116:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1890*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB197:%.*]] = sub i32 [[TMP116]], -63 1891*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV198:%.*]] = udiv i32 [[SUB197]], 64 1892*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL199:%.*]] = mul i32 1, [[DIV198]] 1893*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP117:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1894*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP118:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1895*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB200:%.*]] = sub i32 [[TMP117]], [[TMP118]] 1896*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB201:%.*]] = sub i32 [[SUB200]], 1 1897*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD202:%.*]] = add i32 [[SUB201]], 1 1898*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV203:%.*]] = udiv i32 [[ADD202]], 1 1899*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL204:%.*]] = mul i32 [[MUL199]], [[DIV203]] 1900*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV205:%.*]] = zext i32 [[MUL204]] to i64 1901*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL206:%.*]] = mul nsw i64 [[DIV196]], [[CONV205]] 1902*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB207:%.*]] = sub nsw i64 [[SUB155]], [[MUL206]] 1903*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP119:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1904*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP120:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1905*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB208:%.*]] = sub i32 [[TMP119]], [[TMP120]] 1906*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB209:%.*]] = sub i32 [[SUB208]], 1 1907*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD210:%.*]] = add i32 [[SUB209]], 1 1908*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV211:%.*]] = udiv i32 [[ADD210]], 1 1909*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL212:%.*]] = mul i32 1, [[DIV211]] 1910*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV213:%.*]] = zext i32 [[MUL212]] to i64 1911*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV214:%.*]] = sdiv i64 [[SUB207]], [[CONV213]] 1912*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL215:%.*]] = mul nsw i64 [[DIV214]], 64 1913*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD216:%.*]] = add nsw i64 0, [[MUL215]] 1914*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV217:%.*]] = trunc i64 [[ADD216]] to i32 1915*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[CONV217]], ptr [[DOTFLOOR_0_IV_K51]], align 4 1916*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP121:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1917*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV218:%.*]] = zext i32 [[TMP121]] to i64 1918*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP122:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1919*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP123:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1920*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP124:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1921*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP125:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1922*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB219:%.*]] = sub i32 [[TMP124]], [[TMP125]] 1923*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB220:%.*]] = sub i32 [[SUB219]], 1 1924*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP126:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1925*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD221:%.*]] = add i32 [[SUB220]], [[TMP126]] 1926*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP127:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1927*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV222:%.*]] = udiv i32 [[ADD221]], [[TMP127]] 1928*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL223:%.*]] = mul i32 1, [[DIV222]] 1929*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP128:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1930*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB224:%.*]] = sub i32 [[TMP128]], -63 1931*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV225:%.*]] = udiv i32 [[SUB224]], 64 1932*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL226:%.*]] = mul i32 [[MUL223]], [[DIV225]] 1933*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP129:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1934*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP130:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1935*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB227:%.*]] = sub i32 [[TMP129]], [[TMP130]] 1936*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB228:%.*]] = sub i32 [[SUB227]], 1 1937*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD229:%.*]] = add i32 [[SUB228]], 1 1938*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV230:%.*]] = udiv i32 [[ADD229]], 1 1939*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL231:%.*]] = mul i32 [[MUL226]], [[DIV230]] 1940*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV232:%.*]] = zext i32 [[MUL231]] to i64 1941*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV233:%.*]] = sdiv i64 [[TMP123]], [[CONV232]] 1942*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP131:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1943*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP132:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1944*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB234:%.*]] = sub i32 [[TMP131]], [[TMP132]] 1945*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB235:%.*]] = sub i32 [[SUB234]], 1 1946*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP133:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1947*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD236:%.*]] = add i32 [[SUB235]], [[TMP133]] 1948*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP134:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1949*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV237:%.*]] = udiv i32 [[ADD236]], [[TMP134]] 1950*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL238:%.*]] = mul i32 1, [[DIV237]] 1951*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP135:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1952*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB239:%.*]] = sub i32 [[TMP135]], -63 1953*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV240:%.*]] = udiv i32 [[SUB239]], 64 1954*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL241:%.*]] = mul i32 [[MUL238]], [[DIV240]] 1955*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP136:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1956*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP137:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1957*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB242:%.*]] = sub i32 [[TMP136]], [[TMP137]] 1958*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB243:%.*]] = sub i32 [[SUB242]], 1 1959*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD244:%.*]] = add i32 [[SUB243]], 1 1960*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV245:%.*]] = udiv i32 [[ADD244]], 1 1961*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL246:%.*]] = mul i32 [[MUL241]], [[DIV245]] 1962*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV247:%.*]] = zext i32 [[MUL246]] to i64 1963*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL248:%.*]] = mul nsw i64 [[DIV233]], [[CONV247]] 1964*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB249:%.*]] = sub nsw i64 [[TMP122]], [[MUL248]] 1965*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP138:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1966*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP139:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 1967*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP140:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1968*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP141:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1969*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB250:%.*]] = sub i32 [[TMP140]], [[TMP141]] 1970*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB251:%.*]] = sub i32 [[SUB250]], 1 1971*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP142:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1972*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD252:%.*]] = add i32 [[SUB251]], [[TMP142]] 1973*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP143:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1974*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV253:%.*]] = udiv i32 [[ADD252]], [[TMP143]] 1975*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL254:%.*]] = mul i32 1, [[DIV253]] 1976*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP144:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1977*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB255:%.*]] = sub i32 [[TMP144]], -63 1978*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV256:%.*]] = udiv i32 [[SUB255]], 64 1979*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL257:%.*]] = mul i32 [[MUL254]], [[DIV256]] 1980*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP145:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 1981*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP146:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 1982*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB258:%.*]] = sub i32 [[TMP145]], [[TMP146]] 1983*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB259:%.*]] = sub i32 [[SUB258]], 1 1984*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD260:%.*]] = add i32 [[SUB259]], 1 1985*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV261:%.*]] = udiv i32 [[ADD260]], 1 1986*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL262:%.*]] = mul i32 [[MUL257]], [[DIV261]] 1987*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV263:%.*]] = zext i32 [[MUL262]] to i64 1988*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV264:%.*]] = sdiv i64 [[TMP139]], [[CONV263]] 1989*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP147:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 1990*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP148:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 1991*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB265:%.*]] = sub i32 [[TMP147]], [[TMP148]] 1992*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB266:%.*]] = sub i32 [[SUB265]], 1 1993*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP149:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1994*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD267:%.*]] = add i32 [[SUB266]], [[TMP149]] 1995*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP150:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 1996*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV268:%.*]] = udiv i32 [[ADD267]], [[TMP150]] 1997*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL269:%.*]] = mul i32 1, [[DIV268]] 1998*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP151:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 1999*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB270:%.*]] = sub i32 [[TMP151]], -63 2000*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV271:%.*]] = udiv i32 [[SUB270]], 64 2001*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL272:%.*]] = mul i32 [[MUL269]], [[DIV271]] 2002*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP152:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 2003*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP153:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 2004*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB273:%.*]] = sub i32 [[TMP152]], [[TMP153]] 2005*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB274:%.*]] = sub i32 [[SUB273]], 1 2006*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD275:%.*]] = add i32 [[SUB274]], 1 2007*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV276:%.*]] = udiv i32 [[ADD275]], 1 2008*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL277:%.*]] = mul i32 [[MUL272]], [[DIV276]] 2009*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV278:%.*]] = zext i32 [[MUL277]] to i64 2010*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL279:%.*]] = mul nsw i64 [[DIV264]], [[CONV278]] 2011*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB280:%.*]] = sub nsw i64 [[TMP138]], [[MUL279]] 2012*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP154:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 2013*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB281:%.*]] = sub i32 [[TMP154]], -63 2014*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV282:%.*]] = udiv i32 [[SUB281]], 64 2015*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL283:%.*]] = mul i32 1, [[DIV282]] 2016*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP155:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 2017*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP156:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 2018*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB284:%.*]] = sub i32 [[TMP155]], [[TMP156]] 2019*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB285:%.*]] = sub i32 [[SUB284]], 1 2020*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD286:%.*]] = add i32 [[SUB285]], 1 2021*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV287:%.*]] = udiv i32 [[ADD286]], 1 2022*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL288:%.*]] = mul i32 [[MUL283]], [[DIV287]] 2023*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV289:%.*]] = zext i32 [[MUL288]] to i64 2024*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV290:%.*]] = sdiv i64 [[SUB280]], [[CONV289]] 2025*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP157:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 2026*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB291:%.*]] = sub i32 [[TMP157]], -63 2027*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV292:%.*]] = udiv i32 [[SUB291]], 64 2028*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL293:%.*]] = mul i32 1, [[DIV292]] 2029*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP158:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 2030*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP159:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 2031*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB294:%.*]] = sub i32 [[TMP158]], [[TMP159]] 2032*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB295:%.*]] = sub i32 [[SUB294]], 1 2033*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD296:%.*]] = add i32 [[SUB295]], 1 2034*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV297:%.*]] = udiv i32 [[ADD296]], 1 2035*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL298:%.*]] = mul i32 [[MUL293]], [[DIV297]] 2036*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV299:%.*]] = zext i32 [[MUL298]] to i64 2037*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL300:%.*]] = mul nsw i64 [[DIV290]], [[CONV299]] 2038*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB301:%.*]] = sub nsw i64 [[SUB249]], [[MUL300]] 2039*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP160:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 2040*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP161:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 2041*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP162:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 2042*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP163:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 2043*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB302:%.*]] = sub i32 [[TMP162]], [[TMP163]] 2044*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB303:%.*]] = sub i32 [[SUB302]], 1 2045*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP164:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 2046*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD304:%.*]] = add i32 [[SUB303]], [[TMP164]] 2047*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP165:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 2048*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV305:%.*]] = udiv i32 [[ADD304]], [[TMP165]] 2049*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL306:%.*]] = mul i32 1, [[DIV305]] 2050*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP166:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 2051*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB307:%.*]] = sub i32 [[TMP166]], -63 2052*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV308:%.*]] = udiv i32 [[SUB307]], 64 2053*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL309:%.*]] = mul i32 [[MUL306]], [[DIV308]] 2054*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP167:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 2055*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP168:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 2056*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB310:%.*]] = sub i32 [[TMP167]], [[TMP168]] 2057*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB311:%.*]] = sub i32 [[SUB310]], 1 2058*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD312:%.*]] = add i32 [[SUB311]], 1 2059*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV313:%.*]] = udiv i32 [[ADD312]], 1 2060*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL314:%.*]] = mul i32 [[MUL309]], [[DIV313]] 2061*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV315:%.*]] = zext i32 [[MUL314]] to i64 2062*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV316:%.*]] = sdiv i64 [[TMP161]], [[CONV315]] 2063*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP169:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 2064*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP170:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 2065*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB317:%.*]] = sub i32 [[TMP169]], [[TMP170]] 2066*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB318:%.*]] = sub i32 [[SUB317]], 1 2067*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP171:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 2068*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD319:%.*]] = add i32 [[SUB318]], [[TMP171]] 2069*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP172:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 2070*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV320:%.*]] = udiv i32 [[ADD319]], [[TMP172]] 2071*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL321:%.*]] = mul i32 1, [[DIV320]] 2072*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP173:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 2073*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB322:%.*]] = sub i32 [[TMP173]], -63 2074*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV323:%.*]] = udiv i32 [[SUB322]], 64 2075*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL324:%.*]] = mul i32 [[MUL321]], [[DIV323]] 2076*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP174:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 2077*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP175:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 2078*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB325:%.*]] = sub i32 [[TMP174]], [[TMP175]] 2079*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB326:%.*]] = sub i32 [[SUB325]], 1 2080*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD327:%.*]] = add i32 [[SUB326]], 1 2081*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV328:%.*]] = udiv i32 [[ADD327]], 1 2082*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL329:%.*]] = mul i32 [[MUL324]], [[DIV328]] 2083*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV330:%.*]] = zext i32 [[MUL329]] to i64 2084*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL331:%.*]] = mul nsw i64 [[DIV316]], [[CONV330]] 2085*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB332:%.*]] = sub nsw i64 [[TMP160]], [[MUL331]] 2086*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP176:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 2087*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP177:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 2088*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP178:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 2089*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP179:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 2090*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB333:%.*]] = sub i32 [[TMP178]], [[TMP179]] 2091*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB334:%.*]] = sub i32 [[SUB333]], 1 2092*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP180:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 2093*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD335:%.*]] = add i32 [[SUB334]], [[TMP180]] 2094*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP181:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 2095*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV336:%.*]] = udiv i32 [[ADD335]], [[TMP181]] 2096*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL337:%.*]] = mul i32 1, [[DIV336]] 2097*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP182:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 2098*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB338:%.*]] = sub i32 [[TMP182]], -63 2099*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV339:%.*]] = udiv i32 [[SUB338]], 64 2100*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL340:%.*]] = mul i32 [[MUL337]], [[DIV339]] 2101*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP183:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 2102*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP184:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 2103*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB341:%.*]] = sub i32 [[TMP183]], [[TMP184]] 2104*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB342:%.*]] = sub i32 [[SUB341]], 1 2105*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD343:%.*]] = add i32 [[SUB342]], 1 2106*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV344:%.*]] = udiv i32 [[ADD343]], 1 2107*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL345:%.*]] = mul i32 [[MUL340]], [[DIV344]] 2108*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV346:%.*]] = zext i32 [[MUL345]] to i64 2109*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV347:%.*]] = sdiv i64 [[TMP177]], [[CONV346]] 2110*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP185:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 2111*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP186:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 2112*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB348:%.*]] = sub i32 [[TMP185]], [[TMP186]] 2113*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB349:%.*]] = sub i32 [[SUB348]], 1 2114*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP187:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 2115*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD350:%.*]] = add i32 [[SUB349]], [[TMP187]] 2116*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP188:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 2117*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV351:%.*]] = udiv i32 [[ADD350]], [[TMP188]] 2118*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL352:%.*]] = mul i32 1, [[DIV351]] 2119*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP189:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 2120*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB353:%.*]] = sub i32 [[TMP189]], -63 2121*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV354:%.*]] = udiv i32 [[SUB353]], 64 2122*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL355:%.*]] = mul i32 [[MUL352]], [[DIV354]] 2123*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP190:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 2124*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP191:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 2125*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB356:%.*]] = sub i32 [[TMP190]], [[TMP191]] 2126*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB357:%.*]] = sub i32 [[SUB356]], 1 2127*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD358:%.*]] = add i32 [[SUB357]], 1 2128*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV359:%.*]] = udiv i32 [[ADD358]], 1 2129*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL360:%.*]] = mul i32 [[MUL355]], [[DIV359]] 2130*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV361:%.*]] = zext i32 [[MUL360]] to i64 2131*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL362:%.*]] = mul nsw i64 [[DIV347]], [[CONV361]] 2132*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB363:%.*]] = sub nsw i64 [[TMP176]], [[MUL362]] 2133*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP192:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 2134*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB364:%.*]] = sub i32 [[TMP192]], -63 2135*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV365:%.*]] = udiv i32 [[SUB364]], 64 2136*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL366:%.*]] = mul i32 1, [[DIV365]] 2137*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP193:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 2138*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP194:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 2139*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB367:%.*]] = sub i32 [[TMP193]], [[TMP194]] 2140*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB368:%.*]] = sub i32 [[SUB367]], 1 2141*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD369:%.*]] = add i32 [[SUB368]], 1 2142*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV370:%.*]] = udiv i32 [[ADD369]], 1 2143*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL371:%.*]] = mul i32 [[MUL366]], [[DIV370]] 2144*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV372:%.*]] = zext i32 [[MUL371]] to i64 2145*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV373:%.*]] = sdiv i64 [[SUB363]], [[CONV372]] 2146*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP195:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 2147*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB374:%.*]] = sub i32 [[TMP195]], -63 2148*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV375:%.*]] = udiv i32 [[SUB374]], 64 2149*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL376:%.*]] = mul i32 1, [[DIV375]] 2150*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP196:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 2151*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP197:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 2152*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB377:%.*]] = sub i32 [[TMP196]], [[TMP197]] 2153*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB378:%.*]] = sub i32 [[SUB377]], 1 2154*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD379:%.*]] = add i32 [[SUB378]], 1 2155*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV380:%.*]] = udiv i32 [[ADD379]], 1 2156*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL381:%.*]] = mul i32 [[MUL376]], [[DIV380]] 2157*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV382:%.*]] = zext i32 [[MUL381]] to i64 2158*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL383:%.*]] = mul nsw i64 [[DIV373]], [[CONV382]] 2159*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB384:%.*]] = sub nsw i64 [[SUB332]], [[MUL383]] 2160*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP198:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 2161*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP199:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 2162*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB385:%.*]] = sub i32 [[TMP198]], [[TMP199]] 2163*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB386:%.*]] = sub i32 [[SUB385]], 1 2164*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD387:%.*]] = add i32 [[SUB386]], 1 2165*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV388:%.*]] = udiv i32 [[ADD387]], 1 2166*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL389:%.*]] = mul i32 1, [[DIV388]] 2167*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV390:%.*]] = zext i32 [[MUL389]] to i64 2168*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV391:%.*]] = sdiv i64 [[SUB384]], [[CONV390]] 2169*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP200:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 2170*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP201:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 2171*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB392:%.*]] = sub i32 [[TMP200]], [[TMP201]] 2172*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB393:%.*]] = sub i32 [[SUB392]], 1 2173*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD394:%.*]] = add i32 [[SUB393]], 1 2174*5b03efb8SMichael Kruse // CHECK1-NEXT: [[DIV395:%.*]] = udiv i32 [[ADD394]], 1 2175*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL396:%.*]] = mul i32 1, [[DIV395]] 2176*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV397:%.*]] = zext i32 [[MUL396]] to i64 2177*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL398:%.*]] = mul nsw i64 [[DIV391]], [[CONV397]] 2178*5b03efb8SMichael Kruse // CHECK1-NEXT: [[SUB399:%.*]] = sub nsw i64 [[SUB301]], [[MUL398]] 2179*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL400:%.*]] = mul nsw i64 [[SUB399]], 1 2180*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD401:%.*]] = add nsw i64 [[CONV218]], [[MUL400]] 2181*5b03efb8SMichael Kruse // CHECK1-NEXT: [[CONV402:%.*]] = trunc i64 [[ADD401]] to i32 2182*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[CONV402]], ptr [[DOTTILE_0_IV_K52]], align 4 2183*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP202:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_8]], align 4 2184*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP203:%.*]] = load i32, ptr [[DOTTILE_0_IV_K52]], align 4 2185*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP204:%.*]] = load i32, ptr [[DOTNEW_STEP10]], align 4 2186*5b03efb8SMichael Kruse // CHECK1-NEXT: [[MUL403:%.*]] = mul i32 [[TMP203]], [[TMP204]] 2187*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD404:%.*]] = add i32 [[TMP202]], [[MUL403]] 2188*5b03efb8SMichael Kruse // CHECK1-NEXT: store i32 [[ADD404]], ptr [[K]], align 4 2189*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP205:%.*]] = load i32, ptr [[I49]], align 4 2190*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP206:%.*]] = load i32, ptr [[J50]], align 4 2191*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP207:%.*]] = load i32, ptr [[K]], align 4 2192*5b03efb8SMichael Kruse // CHECK1-NEXT: call void (...) @body(i32 noundef [[TMP205]], i32 noundef [[TMP206]], i32 noundef [[TMP207]]) 2193*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[OMP_BODY_CONTINUE:%.*]] 2194*5b03efb8SMichael Kruse // CHECK1: omp.body.continue: 2195*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_INC:%.*]] 2196*5b03efb8SMichael Kruse // CHECK1: omp.inner.for.inc: 2197*5b03efb8SMichael Kruse // CHECK1-NEXT: [[TMP208:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 2198*5b03efb8SMichael Kruse // CHECK1-NEXT: [[ADD405:%.*]] = add nsw i64 [[TMP208]], 1 2199*5b03efb8SMichael Kruse // CHECK1-NEXT: store i64 [[ADD405]], ptr [[DOTOMP_IV]], align 8 2200*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_COND]] 2201*5b03efb8SMichael Kruse // CHECK1: omp.inner.for.end: 2202*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[OMP_LOOP_EXIT:%.*]] 2203*5b03efb8SMichael Kruse // CHECK1: omp.loop.exit: 2204*5b03efb8SMichael Kruse // CHECK1-NEXT: call void @__kmpc_for_static_fini(ptr @[[GLOB1]], i32 [[TMP0]]) 2205*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[OMP_PRECOND_END]] 2206*5b03efb8SMichael Kruse // CHECK1: omp.precond.end: 2207*5b03efb8SMichael Kruse // CHECK1-NEXT: call void @__kmpc_barrier(ptr @[[GLOB3]], i32 [[TMP0]]) 2208*5b03efb8SMichael Kruse // CHECK1-NEXT: ret void 2209*5b03efb8SMichael Kruse // 2210*5b03efb8SMichael Kruse // 22115c93a94fSMichael Kruse // CHECK1-LABEL: define {{[^@]+}}@foo9 22125c93a94fSMichael Kruse // CHECK1-SAME: () #[[ATTR0]] { 22135c93a94fSMichael Kruse // CHECK1-NEXT: entry: 22145c93a94fSMichael Kruse // CHECK1-NEXT: [[ARR:%.*]] = alloca [128 x double], align 16 22155c93a94fSMichael Kruse // CHECK1-NEXT: [[C:%.*]] = alloca double, align 8 22165c93a94fSMichael Kruse // CHECK1-NEXT: [[__RANGE2:%.*]] = alloca ptr, align 8 22175c93a94fSMichael Kruse // CHECK1-NEXT: [[__END2:%.*]] = alloca ptr, align 8 22185c93a94fSMichael Kruse // CHECK1-NEXT: [[__BEGIN2:%.*]] = alloca ptr, align 8 22195c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_:%.*]] = alloca ptr, align 8 22205c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_3:%.*]] = alloca ptr, align 8 22215c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_4:%.*]] = alloca i64, align 8 22225c93a94fSMichael Kruse // CHECK1-NEXT: [[I:%.*]] = alloca i32, align 4 22235c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTPERMUTED_0_IV_I:%.*]] = alloca i32, align 4 22245c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTPERMUTED_1_IV___BEGIN2:%.*]] = alloca i64, align 8 22255c93a94fSMichael Kruse // CHECK1-NEXT: [[V:%.*]] = alloca ptr, align 8 22265c93a94fSMichael Kruse // CHECK1-NEXT: store double 4.200000e+01, ptr [[C]], align 8 22275c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[ARR]], ptr [[__RANGE2]], align 8 22285c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP0:%.*]] = load ptr, ptr [[__RANGE2]], align 8 22295c93a94fSMichael Kruse // CHECK1-NEXT: [[ARRAYDECAY:%.*]] = getelementptr inbounds [128 x double], ptr [[TMP0]], i64 0, i64 0 22305c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD_PTR:%.*]] = getelementptr inbounds double, ptr [[ARRAYDECAY]], i64 128 22315c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[ADD_PTR]], ptr [[__END2]], align 8 22325c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP1:%.*]] = load ptr, ptr [[__RANGE2]], align 8 22335c93a94fSMichael Kruse // CHECK1-NEXT: [[ARRAYDECAY1:%.*]] = getelementptr inbounds [128 x double], ptr [[TMP1]], i64 0, i64 0 22345c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[ARRAYDECAY1]], ptr [[__BEGIN2]], align 8 22355c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP2:%.*]] = load ptr, ptr [[__RANGE2]], align 8 22365c93a94fSMichael Kruse // CHECK1-NEXT: [[ARRAYDECAY2:%.*]] = getelementptr inbounds [128 x double], ptr [[TMP2]], i64 0, i64 0 22375c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[ARRAYDECAY2]], ptr [[DOTCAPTURE_EXPR_]], align 8 22385c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP3:%.*]] = load ptr, ptr [[__END2]], align 8 22395c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[TMP3]], ptr [[DOTCAPTURE_EXPR_3]], align 8 22405c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP4:%.*]] = load ptr, ptr [[DOTCAPTURE_EXPR_3]], align 8 22415c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP5:%.*]] = load ptr, ptr [[DOTCAPTURE_EXPR_]], align 8 22425c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB_PTR_LHS_CAST:%.*]] = ptrtoint ptr [[TMP4]] to i64 22435c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB_PTR_RHS_CAST:%.*]] = ptrtoint ptr [[TMP5]] to i64 22445c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB_PTR_SUB:%.*]] = sub i64 [[SUB_PTR_LHS_CAST]], [[SUB_PTR_RHS_CAST]] 22455c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB_PTR_DIV:%.*]] = sdiv exact i64 [[SUB_PTR_SUB]], 8 22465c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB:%.*]] = sub nsw i64 [[SUB_PTR_DIV]], 1 22475c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD:%.*]] = add nsw i64 [[SUB]], 1 22485c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV:%.*]] = sdiv i64 [[ADD]], 1 22495c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB5:%.*]] = sub nsw i64 [[DIV]], 1 22505c93a94fSMichael Kruse // CHECK1-NEXT: store i64 [[SUB5]], ptr [[DOTCAPTURE_EXPR_4]], align 8 22515c93a94fSMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[I]], align 4 22525c93a94fSMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTPERMUTED_0_IV_I]], align 4 22535c93a94fSMichael Kruse // CHECK1-NEXT: br label [[FOR_COND:%.*]] 22545c93a94fSMichael Kruse // CHECK1: for.cond: 22555c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP6:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_I]], align 4 22565c93a94fSMichael Kruse // CHECK1-NEXT: [[CMP:%.*]] = icmp slt i32 [[TMP6]], 21 22575c93a94fSMichael Kruse // CHECK1-NEXT: br i1 [[CMP]], label [[FOR_BODY:%.*]], label [[FOR_END15:%.*]] 22585c93a94fSMichael Kruse // CHECK1: for.body: 22595c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP7:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_I]], align 4 22605c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL:%.*]] = mul nsw i32 [[TMP7]], 2 22615c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD6:%.*]] = add nsw i32 0, [[MUL]] 22625c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[ADD6]], ptr [[I]], align 4 22635c93a94fSMichael Kruse // CHECK1-NEXT: store i64 0, ptr [[DOTPERMUTED_1_IV___BEGIN2]], align 8 22645c93a94fSMichael Kruse // CHECK1-NEXT: br label [[FOR_COND7:%.*]] 22655c93a94fSMichael Kruse // CHECK1: for.cond7: 22665c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP8:%.*]] = load i64, ptr [[DOTPERMUTED_1_IV___BEGIN2]], align 8 22675c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP9:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_4]], align 8 22685c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD8:%.*]] = add nsw i64 [[TMP9]], 1 22695c93a94fSMichael Kruse // CHECK1-NEXT: [[CMP9:%.*]] = icmp slt i64 [[TMP8]], [[ADD8]] 22705c93a94fSMichael Kruse // CHECK1-NEXT: br i1 [[CMP9]], label [[FOR_BODY10:%.*]], label [[FOR_END:%.*]] 22715c93a94fSMichael Kruse // CHECK1: for.body10: 22725c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP10:%.*]] = load ptr, ptr [[DOTCAPTURE_EXPR_]], align 8 22735c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP11:%.*]] = load i64, ptr [[DOTPERMUTED_1_IV___BEGIN2]], align 8 22745c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL11:%.*]] = mul nsw i64 [[TMP11]], 1 22755c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD_PTR12:%.*]] = getelementptr inbounds double, ptr [[TMP10]], i64 [[MUL11]] 22765c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[ADD_PTR12]], ptr [[__BEGIN2]], align 8 22775c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP12:%.*]] = load ptr, ptr [[__BEGIN2]], align 8 22785c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[TMP12]], ptr [[V]], align 8 22795c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP13:%.*]] = load double, ptr [[C]], align 8 22805c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP14:%.*]] = load ptr, ptr [[V]], align 8 22815c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP15:%.*]] = load double, ptr [[TMP14]], align 8 22825c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP16:%.*]] = load i32, ptr [[I]], align 4 22835c93a94fSMichael Kruse // CHECK1-NEXT: call void (...) @body(double noundef [[TMP13]], double noundef [[TMP15]], i32 noundef [[TMP16]]) 22845c93a94fSMichael Kruse // CHECK1-NEXT: br label [[FOR_INC:%.*]] 22855c93a94fSMichael Kruse // CHECK1: for.inc: 22865c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP17:%.*]] = load i64, ptr [[DOTPERMUTED_1_IV___BEGIN2]], align 8 22875c93a94fSMichael Kruse // CHECK1-NEXT: [[INC:%.*]] = add nsw i64 [[TMP17]], 1 22885c93a94fSMichael Kruse // CHECK1-NEXT: store i64 [[INC]], ptr [[DOTPERMUTED_1_IV___BEGIN2]], align 8 2289*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_COND7]], !llvm.loop [[LOOP13:![0-9]+]] 22905c93a94fSMichael Kruse // CHECK1: for.end: 22915c93a94fSMichael Kruse // CHECK1-NEXT: br label [[FOR_INC13:%.*]] 22925c93a94fSMichael Kruse // CHECK1: for.inc13: 22935c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP18:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_I]], align 4 22945c93a94fSMichael Kruse // CHECK1-NEXT: [[INC14:%.*]] = add nsw i32 [[TMP18]], 1 22955c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[INC14]], ptr [[DOTPERMUTED_0_IV_I]], align 4 2296*5b03efb8SMichael Kruse // CHECK1-NEXT: br label [[FOR_COND]], !llvm.loop [[LOOP14:![0-9]+]] 22975c93a94fSMichael Kruse // CHECK1: for.end15: 22985c93a94fSMichael Kruse // CHECK1-NEXT: ret void 22995c93a94fSMichael Kruse // 23005c93a94fSMichael Kruse // 23015c93a94fSMichael Kruse // CHECK1-LABEL: define {{[^@]+}}@foo10 23025c93a94fSMichael Kruse // CHECK1-SAME: () #[[ATTR0]] { 23035c93a94fSMichael Kruse // CHECK1-NEXT: entry: 23045c93a94fSMichael Kruse // CHECK1-NEXT: [[A:%.*]] = alloca [128 x double], align 16 23055c93a94fSMichael Kruse // CHECK1-NEXT: [[B:%.*]] = alloca [16 x double], align 16 23065c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_IV:%.*]] = alloca i64, align 8 23075c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP:%.*]] = alloca i32, align 4 23085c93a94fSMichael Kruse // CHECK1-NEXT: [[_TMP1:%.*]] = alloca i64, align 8 23095c93a94fSMichael Kruse // CHECK1-NEXT: [[_TMP2:%.*]] = alloca i64, align 8 23105c93a94fSMichael Kruse // CHECK1-NEXT: [[_TMP3:%.*]] = alloca i32, align 4 23115c93a94fSMichael Kruse // CHECK1-NEXT: [[C:%.*]] = alloca double, align 8 23125c93a94fSMichael Kruse // CHECK1-NEXT: [[__RANGE3:%.*]] = alloca ptr, align 8 23135c93a94fSMichael Kruse // CHECK1-NEXT: [[__END3:%.*]] = alloca ptr, align 8 23145c93a94fSMichael Kruse // CHECK1-NEXT: [[__BEGIN3:%.*]] = alloca ptr, align 8 23155c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_:%.*]] = alloca ptr, align 8 23165c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_6:%.*]] = alloca ptr, align 8 23175c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_7:%.*]] = alloca i64, align 8 23185c93a94fSMichael Kruse // CHECK1-NEXT: [[D:%.*]] = alloca double, align 8 23195c93a94fSMichael Kruse // CHECK1-NEXT: [[__RANGE4:%.*]] = alloca ptr, align 8 23205c93a94fSMichael Kruse // CHECK1-NEXT: [[__END4:%.*]] = alloca ptr, align 8 23215c93a94fSMichael Kruse // CHECK1-NEXT: [[__BEGIN4:%.*]] = alloca ptr, align 8 23225c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_12:%.*]] = alloca ptr, align 8 23235c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_14:%.*]] = alloca ptr, align 8 23245c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_15:%.*]] = alloca i64, align 8 23255c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_24:%.*]] = alloca i64, align 8 23265c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_26:%.*]] = alloca i64, align 8 23275c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTCAPTURE_EXPR_28:%.*]] = alloca i64, align 8 23285c93a94fSMichael Kruse // CHECK1-NEXT: [[I:%.*]] = alloca i32, align 4 23295c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTPERMUTED_0_IV___BEGIN4:%.*]] = alloca i64, align 8 23305c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTPERMUTED_1_IV___BEGIN3:%.*]] = alloca i64, align 8 23315c93a94fSMichael Kruse // CHECK1-NEXT: [[J:%.*]] = alloca i32, align 4 23325c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_LB:%.*]] = alloca i64, align 8 23335c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_UB:%.*]] = alloca i64, align 8 23345c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_STRIDE:%.*]] = alloca i64, align 8 23355c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTOMP_IS_LAST:%.*]] = alloca i32, align 4 23365c93a94fSMichael Kruse // CHECK1-NEXT: [[I37:%.*]] = alloca i32, align 4 23375c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTPERMUTED_0_IV___BEGIN438:%.*]] = alloca i64, align 8 23385c93a94fSMichael Kruse // CHECK1-NEXT: [[DOTPERMUTED_1_IV___BEGIN339:%.*]] = alloca i64, align 8 23395c93a94fSMichael Kruse // CHECK1-NEXT: [[J40:%.*]] = alloca i32, align 4 23405c93a94fSMichael Kruse // CHECK1-NEXT: [[BB:%.*]] = alloca ptr, align 8 23415c93a94fSMichael Kruse // CHECK1-NEXT: [[AA:%.*]] = alloca double, align 8 23425c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP0:%.*]] = call i32 @__kmpc_global_thread_num(ptr @[[GLOB2]]) 23435c93a94fSMichael Kruse // CHECK1-NEXT: store double 4.200000e+01, ptr [[C]], align 8 23445c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[A]], ptr [[__RANGE3]], align 8 23455c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP1:%.*]] = load ptr, ptr [[__RANGE3]], align 8 23465c93a94fSMichael Kruse // CHECK1-NEXT: [[ARRAYDECAY:%.*]] = getelementptr inbounds [128 x double], ptr [[TMP1]], i64 0, i64 0 23475c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD_PTR:%.*]] = getelementptr inbounds double, ptr [[ARRAYDECAY]], i64 128 23485c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[ADD_PTR]], ptr [[__END3]], align 8 23495c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP2:%.*]] = load ptr, ptr [[__RANGE3]], align 8 23505c93a94fSMichael Kruse // CHECK1-NEXT: [[ARRAYDECAY4:%.*]] = getelementptr inbounds [128 x double], ptr [[TMP2]], i64 0, i64 0 23515c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[ARRAYDECAY4]], ptr [[__BEGIN3]], align 8 23525c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP3:%.*]] = load ptr, ptr [[__RANGE3]], align 8 23535c93a94fSMichael Kruse // CHECK1-NEXT: [[ARRAYDECAY5:%.*]] = getelementptr inbounds [128 x double], ptr [[TMP3]], i64 0, i64 0 23545c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[ARRAYDECAY5]], ptr [[DOTCAPTURE_EXPR_]], align 8 23555c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP4:%.*]] = load ptr, ptr [[__END3]], align 8 23565c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[TMP4]], ptr [[DOTCAPTURE_EXPR_6]], align 8 23575c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP5:%.*]] = load ptr, ptr [[DOTCAPTURE_EXPR_6]], align 8 23585c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP6:%.*]] = load ptr, ptr [[DOTCAPTURE_EXPR_]], align 8 23595c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB_PTR_LHS_CAST:%.*]] = ptrtoint ptr [[TMP5]] to i64 23605c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB_PTR_RHS_CAST:%.*]] = ptrtoint ptr [[TMP6]] to i64 23615c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB_PTR_SUB:%.*]] = sub i64 [[SUB_PTR_LHS_CAST]], [[SUB_PTR_RHS_CAST]] 23625c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB_PTR_DIV:%.*]] = sdiv exact i64 [[SUB_PTR_SUB]], 8 23635c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB:%.*]] = sub nsw i64 [[SUB_PTR_DIV]], 1 23645c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD:%.*]] = add nsw i64 [[SUB]], 1 23655c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV:%.*]] = sdiv i64 [[ADD]], 1 23665c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB8:%.*]] = sub nsw i64 [[DIV]], 1 23675c93a94fSMichael Kruse // CHECK1-NEXT: store i64 [[SUB8]], ptr [[DOTCAPTURE_EXPR_7]], align 8 23685c93a94fSMichael Kruse // CHECK1-NEXT: store double 4.200000e+01, ptr [[D]], align 8 23695c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[B]], ptr [[__RANGE4]], align 8 23705c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP7:%.*]] = load ptr, ptr [[__RANGE4]], align 8 23715c93a94fSMichael Kruse // CHECK1-NEXT: [[ARRAYDECAY9:%.*]] = getelementptr inbounds [16 x double], ptr [[TMP7]], i64 0, i64 0 23725c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD_PTR10:%.*]] = getelementptr inbounds double, ptr [[ARRAYDECAY9]], i64 16 23735c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[ADD_PTR10]], ptr [[__END4]], align 8 23745c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP8:%.*]] = load ptr, ptr [[__RANGE4]], align 8 23755c93a94fSMichael Kruse // CHECK1-NEXT: [[ARRAYDECAY11:%.*]] = getelementptr inbounds [16 x double], ptr [[TMP8]], i64 0, i64 0 23765c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[ARRAYDECAY11]], ptr [[__BEGIN4]], align 8 23775c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP9:%.*]] = load ptr, ptr [[__RANGE4]], align 8 23785c93a94fSMichael Kruse // CHECK1-NEXT: [[ARRAYDECAY13:%.*]] = getelementptr inbounds [16 x double], ptr [[TMP9]], i64 0, i64 0 23795c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[ARRAYDECAY13]], ptr [[DOTCAPTURE_EXPR_12]], align 8 23805c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP10:%.*]] = load ptr, ptr [[__END4]], align 8 23815c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[TMP10]], ptr [[DOTCAPTURE_EXPR_14]], align 8 23825c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP11:%.*]] = load ptr, ptr [[DOTCAPTURE_EXPR_14]], align 8 23835c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP12:%.*]] = load ptr, ptr [[DOTCAPTURE_EXPR_12]], align 8 23845c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB_PTR_LHS_CAST16:%.*]] = ptrtoint ptr [[TMP11]] to i64 23855c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB_PTR_RHS_CAST17:%.*]] = ptrtoint ptr [[TMP12]] to i64 23865c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB_PTR_SUB18:%.*]] = sub i64 [[SUB_PTR_LHS_CAST16]], [[SUB_PTR_RHS_CAST17]] 23875c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB_PTR_DIV19:%.*]] = sdiv exact i64 [[SUB_PTR_SUB18]], 8 23885c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB20:%.*]] = sub nsw i64 [[SUB_PTR_DIV19]], 1 23895c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD21:%.*]] = add nsw i64 [[SUB20]], 1 23905c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV22:%.*]] = sdiv i64 [[ADD21]], 1 23915c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB23:%.*]] = sub nsw i64 [[DIV22]], 1 23925c93a94fSMichael Kruse // CHECK1-NEXT: store i64 [[SUB23]], ptr [[DOTCAPTURE_EXPR_15]], align 8 23935c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP13:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_15]], align 8 23945c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD25:%.*]] = add nsw i64 [[TMP13]], 1 23955c93a94fSMichael Kruse // CHECK1-NEXT: store i64 [[ADD25]], ptr [[DOTCAPTURE_EXPR_24]], align 8 23965c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP14:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_7]], align 8 23975c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD27:%.*]] = add nsw i64 [[TMP14]], 1 23985c93a94fSMichael Kruse // CHECK1-NEXT: store i64 [[ADD27]], ptr [[DOTCAPTURE_EXPR_26]], align 8 23995c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP15:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 24005c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB29:%.*]] = sub nsw i64 [[TMP15]], 0 24015c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV30:%.*]] = sdiv i64 [[SUB29]], 1 24025c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL:%.*]] = mul nsw i64 128, [[DIV30]] 24035c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP16:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 24045c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB31:%.*]] = sub nsw i64 [[TMP16]], 0 24055c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV32:%.*]] = sdiv i64 [[SUB31]], 1 24065c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL33:%.*]] = mul nsw i64 [[MUL]], [[DIV32]] 24075c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL34:%.*]] = mul nsw i64 [[MUL33]], 128 24085c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB35:%.*]] = sub nsw i64 [[MUL34]], 1 24095c93a94fSMichael Kruse // CHECK1-NEXT: store i64 [[SUB35]], ptr [[DOTCAPTURE_EXPR_28]], align 8 24105c93a94fSMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[I]], align 4 24115c93a94fSMichael Kruse // CHECK1-NEXT: store i64 0, ptr [[DOTPERMUTED_0_IV___BEGIN4]], align 8 24125c93a94fSMichael Kruse // CHECK1-NEXT: store i64 0, ptr [[DOTPERMUTED_1_IV___BEGIN3]], align 8 24135c93a94fSMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[J]], align 4 24145c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP17:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 24155c93a94fSMichael Kruse // CHECK1-NEXT: [[CMP:%.*]] = icmp slt i64 0, [[TMP17]] 24165c93a94fSMichael Kruse // CHECK1-NEXT: br i1 [[CMP]], label [[LAND_LHS_TRUE:%.*]], label [[OMP_PRECOND_END:%.*]] 24175c93a94fSMichael Kruse // CHECK1: land.lhs.true: 24185c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP18:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 24195c93a94fSMichael Kruse // CHECK1-NEXT: [[CMP36:%.*]] = icmp slt i64 0, [[TMP18]] 24205c93a94fSMichael Kruse // CHECK1-NEXT: br i1 [[CMP36]], label [[OMP_PRECOND_THEN:%.*]], label [[OMP_PRECOND_END]] 24215c93a94fSMichael Kruse // CHECK1: omp.precond.then: 24225c93a94fSMichael Kruse // CHECK1-NEXT: store i64 0, ptr [[DOTOMP_LB]], align 8 24235c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP19:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_28]], align 8 24245c93a94fSMichael Kruse // CHECK1-NEXT: store i64 [[TMP19]], ptr [[DOTOMP_UB]], align 8 24255c93a94fSMichael Kruse // CHECK1-NEXT: store i64 1, ptr [[DOTOMP_STRIDE]], align 8 24265c93a94fSMichael Kruse // CHECK1-NEXT: store i32 0, ptr [[DOTOMP_IS_LAST]], align 4 24275c93a94fSMichael Kruse // CHECK1-NEXT: call void @__kmpc_for_static_init_8(ptr @[[GLOB1]], i32 [[TMP0]], i32 34, ptr [[DOTOMP_IS_LAST]], ptr [[DOTOMP_LB]], ptr [[DOTOMP_UB]], ptr [[DOTOMP_STRIDE]], i64 1, i64 1) 24285c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP20:%.*]] = load i64, ptr [[DOTOMP_UB]], align 8 24295c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP21:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_28]], align 8 24305c93a94fSMichael Kruse // CHECK1-NEXT: [[CMP41:%.*]] = icmp sgt i64 [[TMP20]], [[TMP21]] 24315c93a94fSMichael Kruse // CHECK1-NEXT: br i1 [[CMP41]], label [[COND_TRUE:%.*]], label [[COND_FALSE:%.*]] 24325c93a94fSMichael Kruse // CHECK1: cond.true: 24335c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP22:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_28]], align 8 24345c93a94fSMichael Kruse // CHECK1-NEXT: br label [[COND_END:%.*]] 24355c93a94fSMichael Kruse // CHECK1: cond.false: 24365c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP23:%.*]] = load i64, ptr [[DOTOMP_UB]], align 8 24375c93a94fSMichael Kruse // CHECK1-NEXT: br label [[COND_END]] 24385c93a94fSMichael Kruse // CHECK1: cond.end: 24395c93a94fSMichael Kruse // CHECK1-NEXT: [[COND:%.*]] = phi i64 [ [[TMP22]], [[COND_TRUE]] ], [ [[TMP23]], [[COND_FALSE]] ] 24405c93a94fSMichael Kruse // CHECK1-NEXT: store i64 [[COND]], ptr [[DOTOMP_UB]], align 8 24415c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP24:%.*]] = load i64, ptr [[DOTOMP_LB]], align 8 24425c93a94fSMichael Kruse // CHECK1-NEXT: store i64 [[TMP24]], ptr [[DOTOMP_IV]], align 8 24435c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_COND:%.*]] 24445c93a94fSMichael Kruse // CHECK1: omp.inner.for.cond: 24455c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP25:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 24465c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP26:%.*]] = load i64, ptr [[DOTOMP_UB]], align 8 24475c93a94fSMichael Kruse // CHECK1-NEXT: [[CMP42:%.*]] = icmp sle i64 [[TMP25]], [[TMP26]] 24485c93a94fSMichael Kruse // CHECK1-NEXT: br i1 [[CMP42]], label [[OMP_INNER_FOR_BODY:%.*]], label [[OMP_INNER_FOR_END:%.*]] 24495c93a94fSMichael Kruse // CHECK1: omp.inner.for.body: 24505c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP27:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 24515c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP28:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 24525c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB43:%.*]] = sub nsw i64 [[TMP28]], 0 24535c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV44:%.*]] = sdiv i64 [[SUB43]], 1 24545c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL45:%.*]] = mul nsw i64 1, [[DIV44]] 24555c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP29:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 24565c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB46:%.*]] = sub nsw i64 [[TMP29]], 0 24575c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV47:%.*]] = sdiv i64 [[SUB46]], 1 24585c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL48:%.*]] = mul nsw i64 [[MUL45]], [[DIV47]] 24595c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL49:%.*]] = mul nsw i64 [[MUL48]], 128 24605c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV50:%.*]] = sdiv i64 [[TMP27]], [[MUL49]] 24615c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL51:%.*]] = mul nsw i64 [[DIV50]], 1 24625c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD52:%.*]] = add nsw i64 0, [[MUL51]] 24635c93a94fSMichael Kruse // CHECK1-NEXT: [[CONV:%.*]] = trunc i64 [[ADD52]] to i32 24645c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[CONV]], ptr [[I37]], align 4 24655c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP30:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 24665c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP31:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 24675c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP32:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 24685c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB53:%.*]] = sub nsw i64 [[TMP32]], 0 24695c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV54:%.*]] = sdiv i64 [[SUB53]], 1 24705c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL55:%.*]] = mul nsw i64 1, [[DIV54]] 24715c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP33:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 24725c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB56:%.*]] = sub nsw i64 [[TMP33]], 0 24735c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV57:%.*]] = sdiv i64 [[SUB56]], 1 24745c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL58:%.*]] = mul nsw i64 [[MUL55]], [[DIV57]] 24755c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL59:%.*]] = mul nsw i64 [[MUL58]], 128 24765c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV60:%.*]] = sdiv i64 [[TMP31]], [[MUL59]] 24775c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP34:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 24785c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB61:%.*]] = sub nsw i64 [[TMP34]], 0 24795c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV62:%.*]] = sdiv i64 [[SUB61]], 1 24805c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL63:%.*]] = mul nsw i64 1, [[DIV62]] 24815c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP35:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 24825c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB64:%.*]] = sub nsw i64 [[TMP35]], 0 24835c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV65:%.*]] = sdiv i64 [[SUB64]], 1 24845c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL66:%.*]] = mul nsw i64 [[MUL63]], [[DIV65]] 24855c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL67:%.*]] = mul nsw i64 [[MUL66]], 128 24865c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL68:%.*]] = mul nsw i64 [[DIV60]], [[MUL67]] 24875c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB69:%.*]] = sub nsw i64 [[TMP30]], [[MUL68]] 24885c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP36:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 24895c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB70:%.*]] = sub nsw i64 [[TMP36]], 0 24905c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV71:%.*]] = sdiv i64 [[SUB70]], 1 24915c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL72:%.*]] = mul nsw i64 1, [[DIV71]] 24925c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL73:%.*]] = mul nsw i64 [[MUL72]], 128 24935c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV74:%.*]] = sdiv i64 [[SUB69]], [[MUL73]] 24945c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL75:%.*]] = mul nsw i64 [[DIV74]], 1 24955c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD76:%.*]] = add nsw i64 0, [[MUL75]] 24965c93a94fSMichael Kruse // CHECK1-NEXT: store i64 [[ADD76]], ptr [[DOTPERMUTED_0_IV___BEGIN438]], align 8 24975c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP37:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 24985c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP38:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 24995c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP39:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 25005c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB77:%.*]] = sub nsw i64 [[TMP39]], 0 25015c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV78:%.*]] = sdiv i64 [[SUB77]], 1 25025c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL79:%.*]] = mul nsw i64 1, [[DIV78]] 25035c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP40:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 25045c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB80:%.*]] = sub nsw i64 [[TMP40]], 0 25055c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV81:%.*]] = sdiv i64 [[SUB80]], 1 25065c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL82:%.*]] = mul nsw i64 [[MUL79]], [[DIV81]] 25075c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL83:%.*]] = mul nsw i64 [[MUL82]], 128 25085c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV84:%.*]] = sdiv i64 [[TMP38]], [[MUL83]] 25095c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP41:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 25105c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB85:%.*]] = sub nsw i64 [[TMP41]], 0 25115c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV86:%.*]] = sdiv i64 [[SUB85]], 1 25125c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL87:%.*]] = mul nsw i64 1, [[DIV86]] 25135c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP42:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 25145c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB88:%.*]] = sub nsw i64 [[TMP42]], 0 25155c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV89:%.*]] = sdiv i64 [[SUB88]], 1 25165c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL90:%.*]] = mul nsw i64 [[MUL87]], [[DIV89]] 25175c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL91:%.*]] = mul nsw i64 [[MUL90]], 128 25185c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL92:%.*]] = mul nsw i64 [[DIV84]], [[MUL91]] 25195c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB93:%.*]] = sub nsw i64 [[TMP37]], [[MUL92]] 25205c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP43:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 25215c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP44:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 25225c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP45:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 25235c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB94:%.*]] = sub nsw i64 [[TMP45]], 0 25245c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV95:%.*]] = sdiv i64 [[SUB94]], 1 25255c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL96:%.*]] = mul nsw i64 1, [[DIV95]] 25265c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP46:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 25275c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB97:%.*]] = sub nsw i64 [[TMP46]], 0 25285c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV98:%.*]] = sdiv i64 [[SUB97]], 1 25295c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL99:%.*]] = mul nsw i64 [[MUL96]], [[DIV98]] 25305c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL100:%.*]] = mul nsw i64 [[MUL99]], 128 25315c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV101:%.*]] = sdiv i64 [[TMP44]], [[MUL100]] 25325c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP47:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 25335c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB102:%.*]] = sub nsw i64 [[TMP47]], 0 25345c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV103:%.*]] = sdiv i64 [[SUB102]], 1 25355c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL104:%.*]] = mul nsw i64 1, [[DIV103]] 25365c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP48:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 25375c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB105:%.*]] = sub nsw i64 [[TMP48]], 0 25385c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV106:%.*]] = sdiv i64 [[SUB105]], 1 25395c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL107:%.*]] = mul nsw i64 [[MUL104]], [[DIV106]] 25405c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL108:%.*]] = mul nsw i64 [[MUL107]], 128 25415c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL109:%.*]] = mul nsw i64 [[DIV101]], [[MUL108]] 25425c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB110:%.*]] = sub nsw i64 [[TMP43]], [[MUL109]] 25435c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP49:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 25445c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB111:%.*]] = sub nsw i64 [[TMP49]], 0 25455c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV112:%.*]] = sdiv i64 [[SUB111]], 1 25465c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL113:%.*]] = mul nsw i64 1, [[DIV112]] 25475c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL114:%.*]] = mul nsw i64 [[MUL113]], 128 25485c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV115:%.*]] = sdiv i64 [[SUB110]], [[MUL114]] 25495c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP50:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 25505c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB116:%.*]] = sub nsw i64 [[TMP50]], 0 25515c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV117:%.*]] = sdiv i64 [[SUB116]], 1 25525c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL118:%.*]] = mul nsw i64 1, [[DIV117]] 25535c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL119:%.*]] = mul nsw i64 [[MUL118]], 128 25545c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL120:%.*]] = mul nsw i64 [[DIV115]], [[MUL119]] 25555c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB121:%.*]] = sub nsw i64 [[SUB93]], [[MUL120]] 25565c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV122:%.*]] = sdiv i64 [[SUB121]], 128 25575c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL123:%.*]] = mul nsw i64 [[DIV122]], 1 25585c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD124:%.*]] = add nsw i64 0, [[MUL123]] 25595c93a94fSMichael Kruse // CHECK1-NEXT: store i64 [[ADD124]], ptr [[DOTPERMUTED_1_IV___BEGIN339]], align 8 25605c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP51:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 25615c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP52:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 25625c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP53:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 25635c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB125:%.*]] = sub nsw i64 [[TMP53]], 0 25645c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV126:%.*]] = sdiv i64 [[SUB125]], 1 25655c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL127:%.*]] = mul nsw i64 1, [[DIV126]] 25665c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP54:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 25675c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB128:%.*]] = sub nsw i64 [[TMP54]], 0 25685c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV129:%.*]] = sdiv i64 [[SUB128]], 1 25695c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL130:%.*]] = mul nsw i64 [[MUL127]], [[DIV129]] 25705c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL131:%.*]] = mul nsw i64 [[MUL130]], 128 25715c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV132:%.*]] = sdiv i64 [[TMP52]], [[MUL131]] 25725c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP55:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 25735c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB133:%.*]] = sub nsw i64 [[TMP55]], 0 25745c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV134:%.*]] = sdiv i64 [[SUB133]], 1 25755c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL135:%.*]] = mul nsw i64 1, [[DIV134]] 25765c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP56:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 25775c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB136:%.*]] = sub nsw i64 [[TMP56]], 0 25785c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV137:%.*]] = sdiv i64 [[SUB136]], 1 25795c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL138:%.*]] = mul nsw i64 [[MUL135]], [[DIV137]] 25805c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL139:%.*]] = mul nsw i64 [[MUL138]], 128 25815c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL140:%.*]] = mul nsw i64 [[DIV132]], [[MUL139]] 25825c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB141:%.*]] = sub nsw i64 [[TMP51]], [[MUL140]] 25835c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP57:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 25845c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP58:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 25855c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP59:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 25865c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB142:%.*]] = sub nsw i64 [[TMP59]], 0 25875c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV143:%.*]] = sdiv i64 [[SUB142]], 1 25885c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL144:%.*]] = mul nsw i64 1, [[DIV143]] 25895c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP60:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 25905c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB145:%.*]] = sub nsw i64 [[TMP60]], 0 25915c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV146:%.*]] = sdiv i64 [[SUB145]], 1 25925c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL147:%.*]] = mul nsw i64 [[MUL144]], [[DIV146]] 25935c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL148:%.*]] = mul nsw i64 [[MUL147]], 128 25945c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV149:%.*]] = sdiv i64 [[TMP58]], [[MUL148]] 25955c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP61:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 25965c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB150:%.*]] = sub nsw i64 [[TMP61]], 0 25975c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV151:%.*]] = sdiv i64 [[SUB150]], 1 25985c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL152:%.*]] = mul nsw i64 1, [[DIV151]] 25995c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP62:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 26005c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB153:%.*]] = sub nsw i64 [[TMP62]], 0 26015c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV154:%.*]] = sdiv i64 [[SUB153]], 1 26025c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL155:%.*]] = mul nsw i64 [[MUL152]], [[DIV154]] 26035c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL156:%.*]] = mul nsw i64 [[MUL155]], 128 26045c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL157:%.*]] = mul nsw i64 [[DIV149]], [[MUL156]] 26055c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB158:%.*]] = sub nsw i64 [[TMP57]], [[MUL157]] 26065c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP63:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 26075c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB159:%.*]] = sub nsw i64 [[TMP63]], 0 26085c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV160:%.*]] = sdiv i64 [[SUB159]], 1 26095c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL161:%.*]] = mul nsw i64 1, [[DIV160]] 26105c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL162:%.*]] = mul nsw i64 [[MUL161]], 128 26115c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV163:%.*]] = sdiv i64 [[SUB158]], [[MUL162]] 26125c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP64:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 26135c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB164:%.*]] = sub nsw i64 [[TMP64]], 0 26145c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV165:%.*]] = sdiv i64 [[SUB164]], 1 26155c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL166:%.*]] = mul nsw i64 1, [[DIV165]] 26165c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL167:%.*]] = mul nsw i64 [[MUL166]], 128 26175c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL168:%.*]] = mul nsw i64 [[DIV163]], [[MUL167]] 26185c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB169:%.*]] = sub nsw i64 [[SUB141]], [[MUL168]] 26195c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP65:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 26205c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP66:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 26215c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP67:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 26225c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB170:%.*]] = sub nsw i64 [[TMP67]], 0 26235c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV171:%.*]] = sdiv i64 [[SUB170]], 1 26245c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL172:%.*]] = mul nsw i64 1, [[DIV171]] 26255c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP68:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 26265c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB173:%.*]] = sub nsw i64 [[TMP68]], 0 26275c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV174:%.*]] = sdiv i64 [[SUB173]], 1 26285c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL175:%.*]] = mul nsw i64 [[MUL172]], [[DIV174]] 26295c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL176:%.*]] = mul nsw i64 [[MUL175]], 128 26305c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV177:%.*]] = sdiv i64 [[TMP66]], [[MUL176]] 26315c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP69:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 26325c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB178:%.*]] = sub nsw i64 [[TMP69]], 0 26335c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV179:%.*]] = sdiv i64 [[SUB178]], 1 26345c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL180:%.*]] = mul nsw i64 1, [[DIV179]] 26355c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP70:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 26365c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB181:%.*]] = sub nsw i64 [[TMP70]], 0 26375c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV182:%.*]] = sdiv i64 [[SUB181]], 1 26385c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL183:%.*]] = mul nsw i64 [[MUL180]], [[DIV182]] 26395c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL184:%.*]] = mul nsw i64 [[MUL183]], 128 26405c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL185:%.*]] = mul nsw i64 [[DIV177]], [[MUL184]] 26415c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB186:%.*]] = sub nsw i64 [[TMP65]], [[MUL185]] 26425c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP71:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 26435c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP72:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 26445c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP73:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 26455c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB187:%.*]] = sub nsw i64 [[TMP73]], 0 26465c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV188:%.*]] = sdiv i64 [[SUB187]], 1 26475c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL189:%.*]] = mul nsw i64 1, [[DIV188]] 26485c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP74:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 26495c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB190:%.*]] = sub nsw i64 [[TMP74]], 0 26505c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV191:%.*]] = sdiv i64 [[SUB190]], 1 26515c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL192:%.*]] = mul nsw i64 [[MUL189]], [[DIV191]] 26525c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL193:%.*]] = mul nsw i64 [[MUL192]], 128 26535c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV194:%.*]] = sdiv i64 [[TMP72]], [[MUL193]] 26545c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP75:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 26555c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB195:%.*]] = sub nsw i64 [[TMP75]], 0 26565c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV196:%.*]] = sdiv i64 [[SUB195]], 1 26575c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL197:%.*]] = mul nsw i64 1, [[DIV196]] 26585c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP76:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 26595c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB198:%.*]] = sub nsw i64 [[TMP76]], 0 26605c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV199:%.*]] = sdiv i64 [[SUB198]], 1 26615c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL200:%.*]] = mul nsw i64 [[MUL197]], [[DIV199]] 26625c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL201:%.*]] = mul nsw i64 [[MUL200]], 128 26635c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL202:%.*]] = mul nsw i64 [[DIV194]], [[MUL201]] 26645c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB203:%.*]] = sub nsw i64 [[TMP71]], [[MUL202]] 26655c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP77:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 26665c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB204:%.*]] = sub nsw i64 [[TMP77]], 0 26675c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV205:%.*]] = sdiv i64 [[SUB204]], 1 26685c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL206:%.*]] = mul nsw i64 1, [[DIV205]] 26695c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL207:%.*]] = mul nsw i64 [[MUL206]], 128 26705c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV208:%.*]] = sdiv i64 [[SUB203]], [[MUL207]] 26715c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP78:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 26725c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB209:%.*]] = sub nsw i64 [[TMP78]], 0 26735c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV210:%.*]] = sdiv i64 [[SUB209]], 1 26745c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL211:%.*]] = mul nsw i64 1, [[DIV210]] 26755c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL212:%.*]] = mul nsw i64 [[MUL211]], 128 26765c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL213:%.*]] = mul nsw i64 [[DIV208]], [[MUL212]] 26775c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB214:%.*]] = sub nsw i64 [[SUB186]], [[MUL213]] 26785c93a94fSMichael Kruse // CHECK1-NEXT: [[DIV215:%.*]] = sdiv i64 [[SUB214]], 128 26795c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL216:%.*]] = mul nsw i64 [[DIV215]], 128 26805c93a94fSMichael Kruse // CHECK1-NEXT: [[SUB217:%.*]] = sub nsw i64 [[SUB169]], [[MUL216]] 26815c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL218:%.*]] = mul nsw i64 [[SUB217]], 1 26825c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD219:%.*]] = add nsw i64 0, [[MUL218]] 26835c93a94fSMichael Kruse // CHECK1-NEXT: [[CONV220:%.*]] = trunc i64 [[ADD219]] to i32 26845c93a94fSMichael Kruse // CHECK1-NEXT: store i32 [[CONV220]], ptr [[J40]], align 4 26855c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP79:%.*]] = load ptr, ptr [[DOTCAPTURE_EXPR_12]], align 8 26865c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP80:%.*]] = load i64, ptr [[DOTPERMUTED_0_IV___BEGIN438]], align 8 26875c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL221:%.*]] = mul nsw i64 [[TMP80]], 1 26885c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD_PTR222:%.*]] = getelementptr inbounds double, ptr [[TMP79]], i64 [[MUL221]] 26895c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[ADD_PTR222]], ptr [[__BEGIN4]], align 8 26905c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP81:%.*]] = load ptr, ptr [[__BEGIN4]], align 8 26915c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[TMP81]], ptr [[BB]], align 8 26925c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP82:%.*]] = load ptr, ptr [[DOTCAPTURE_EXPR_]], align 8 26935c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP83:%.*]] = load i64, ptr [[DOTPERMUTED_1_IV___BEGIN339]], align 8 26945c93a94fSMichael Kruse // CHECK1-NEXT: [[MUL223:%.*]] = mul nsw i64 [[TMP83]], 1 26955c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD_PTR224:%.*]] = getelementptr inbounds double, ptr [[TMP82]], i64 [[MUL223]] 26965c93a94fSMichael Kruse // CHECK1-NEXT: store ptr [[ADD_PTR224]], ptr [[__BEGIN3]], align 8 26975c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP84:%.*]] = load ptr, ptr [[__BEGIN3]], align 8 26985c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP85:%.*]] = load double, ptr [[TMP84]], align 8 26995c93a94fSMichael Kruse // CHECK1-NEXT: store double [[TMP85]], ptr [[AA]], align 8 27005c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP86:%.*]] = load i32, ptr [[I37]], align 4 27015c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP87:%.*]] = load double, ptr [[C]], align 8 27025c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP88:%.*]] = load double, ptr [[AA]], align 8 27035c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP89:%.*]] = load double, ptr [[D]], align 8 27045c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP90:%.*]] = load ptr, ptr [[BB]], align 8 27055c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP91:%.*]] = load double, ptr [[TMP90]], align 8 27065c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP92:%.*]] = load i32, ptr [[J40]], align 4 27075c93a94fSMichael Kruse // CHECK1-NEXT: call void (...) @body(i32 noundef [[TMP86]], double noundef [[TMP87]], double noundef [[TMP88]], double noundef [[TMP89]], double noundef [[TMP91]], i32 noundef [[TMP92]]) 27085c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_BODY_CONTINUE:%.*]] 27095c93a94fSMichael Kruse // CHECK1: omp.body.continue: 27105c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_INC:%.*]] 27115c93a94fSMichael Kruse // CHECK1: omp.inner.for.inc: 27125c93a94fSMichael Kruse // CHECK1-NEXT: [[TMP93:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 27135c93a94fSMichael Kruse // CHECK1-NEXT: [[ADD225:%.*]] = add nsw i64 [[TMP93]], 1 27145c93a94fSMichael Kruse // CHECK1-NEXT: store i64 [[ADD225]], ptr [[DOTOMP_IV]], align 8 27155c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_INNER_FOR_COND]] 27165c93a94fSMichael Kruse // CHECK1: omp.inner.for.end: 27175c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_LOOP_EXIT:%.*]] 27185c93a94fSMichael Kruse // CHECK1: omp.loop.exit: 27195c93a94fSMichael Kruse // CHECK1-NEXT: call void @__kmpc_for_static_fini(ptr @[[GLOB1]], i32 [[TMP0]]) 27205c93a94fSMichael Kruse // CHECK1-NEXT: br label [[OMP_PRECOND_END]] 27215c93a94fSMichael Kruse // CHECK1: omp.precond.end: 27225c93a94fSMichael Kruse // CHECK1-NEXT: call void @__kmpc_barrier(ptr @[[GLOB3]], i32 [[TMP0]]) 27235c93a94fSMichael Kruse // CHECK1-NEXT: ret void 27245c93a94fSMichael Kruse // 27255c93a94fSMichael Kruse // 27265c93a94fSMichael Kruse // CHECK2-LABEL: define {{[^@]+}}@body 27275c93a94fSMichael Kruse // CHECK2-SAME: (...) #[[ATTR0:[0-9]+]] { 27285c93a94fSMichael Kruse // CHECK2-NEXT: entry: 27295c93a94fSMichael Kruse // CHECK2-NEXT: ret void 27305c93a94fSMichael Kruse // 27315c93a94fSMichael Kruse // 2732*5b03efb8SMichael Kruse // CHECK2-LABEL: define {{[^@]+}}@foo1 2733*5b03efb8SMichael Kruse // CHECK2-SAME: (i32 noundef [[START:%.*]], i32 noundef [[END:%.*]], i32 noundef [[STEP:%.*]]) #[[ATTR0]] { 2734*5b03efb8SMichael Kruse // CHECK2-NEXT: entry: 2735*5b03efb8SMichael Kruse // CHECK2-NEXT: [[START_ADDR:%.*]] = alloca i32, align 4 2736*5b03efb8SMichael Kruse // CHECK2-NEXT: [[END_ADDR:%.*]] = alloca i32, align 4 2737*5b03efb8SMichael Kruse // CHECK2-NEXT: [[STEP_ADDR:%.*]] = alloca i32, align 4 2738*5b03efb8SMichael Kruse // CHECK2-NEXT: [[I:%.*]] = alloca i32, align 4 2739*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[START]], ptr [[START_ADDR]], align 4 2740*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[END]], ptr [[END_ADDR]], align 4 2741*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[STEP]], ptr [[STEP_ADDR]], align 4 2742*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP0:%.*]] = load i32, ptr [[START_ADDR]], align 4 2743*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP0]], ptr [[I]], align 4 2744*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_COND:%.*]] 2745*5b03efb8SMichael Kruse // CHECK2: for.cond: 2746*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP1:%.*]] = load i32, ptr [[I]], align 4 2747*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP2:%.*]] = load i32, ptr [[END_ADDR]], align 4 2748*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP:%.*]] = icmp slt i32 [[TMP1]], [[TMP2]] 2749*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP]], label [[FOR_BODY:%.*]], label [[FOR_END:%.*]] 2750*5b03efb8SMichael Kruse // CHECK2: for.body: 2751*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP3:%.*]] = load i32, ptr [[I]], align 4 2752*5b03efb8SMichael Kruse // CHECK2-NEXT: call void (...) @body(i32 noundef [[TMP3]]) 2753*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_INC:%.*]] 2754*5b03efb8SMichael Kruse // CHECK2: for.inc: 2755*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP4:%.*]] = load i32, ptr [[STEP_ADDR]], align 4 2756*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP5:%.*]] = load i32, ptr [[I]], align 4 2757*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD:%.*]] = add nsw i32 [[TMP5]], [[TMP4]] 2758*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[ADD]], ptr [[I]], align 4 2759*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_COND]], !llvm.loop [[LOOP3:![0-9]+]] 2760*5b03efb8SMichael Kruse // CHECK2: for.end: 2761*5b03efb8SMichael Kruse // CHECK2-NEXT: ret void 2762*5b03efb8SMichael Kruse // 2763*5b03efb8SMichael Kruse // 27645c93a94fSMichael Kruse // CHECK2-LABEL: define {{[^@]+}}@foo10 27655c93a94fSMichael Kruse // CHECK2-SAME: () #[[ATTR0]] { 27665c93a94fSMichael Kruse // CHECK2-NEXT: entry: 27675c93a94fSMichael Kruse // CHECK2-NEXT: [[A:%.*]] = alloca [128 x double], align 16 27685c93a94fSMichael Kruse // CHECK2-NEXT: [[B:%.*]] = alloca [16 x double], align 16 27695c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_IV:%.*]] = alloca i64, align 8 27705c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP:%.*]] = alloca i32, align 4 27715c93a94fSMichael Kruse // CHECK2-NEXT: [[_TMP1:%.*]] = alloca i64, align 8 27725c93a94fSMichael Kruse // CHECK2-NEXT: [[_TMP2:%.*]] = alloca i64, align 8 27735c93a94fSMichael Kruse // CHECK2-NEXT: [[_TMP3:%.*]] = alloca i32, align 4 27745c93a94fSMichael Kruse // CHECK2-NEXT: [[C:%.*]] = alloca double, align 8 27755c93a94fSMichael Kruse // CHECK2-NEXT: [[__RANGE3:%.*]] = alloca ptr, align 8 27765c93a94fSMichael Kruse // CHECK2-NEXT: [[__END3:%.*]] = alloca ptr, align 8 27775c93a94fSMichael Kruse // CHECK2-NEXT: [[__BEGIN3:%.*]] = alloca ptr, align 8 27785c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_:%.*]] = alloca ptr, align 8 27795c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_6:%.*]] = alloca ptr, align 8 27805c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_7:%.*]] = alloca i64, align 8 27815c93a94fSMichael Kruse // CHECK2-NEXT: [[D:%.*]] = alloca double, align 8 27825c93a94fSMichael Kruse // CHECK2-NEXT: [[__RANGE4:%.*]] = alloca ptr, align 8 27835c93a94fSMichael Kruse // CHECK2-NEXT: [[__END4:%.*]] = alloca ptr, align 8 27845c93a94fSMichael Kruse // CHECK2-NEXT: [[__BEGIN4:%.*]] = alloca ptr, align 8 27855c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_12:%.*]] = alloca ptr, align 8 27865c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_14:%.*]] = alloca ptr, align 8 27875c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_15:%.*]] = alloca i64, align 8 27885c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_24:%.*]] = alloca i64, align 8 27895c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_26:%.*]] = alloca i64, align 8 27905c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_28:%.*]] = alloca i64, align 8 27915c93a94fSMichael Kruse // CHECK2-NEXT: [[I:%.*]] = alloca i32, align 4 27925c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTPERMUTED_0_IV___BEGIN4:%.*]] = alloca i64, align 8 27935c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTPERMUTED_1_IV___BEGIN3:%.*]] = alloca i64, align 8 27945c93a94fSMichael Kruse // CHECK2-NEXT: [[J:%.*]] = alloca i32, align 4 27955c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_LB:%.*]] = alloca i64, align 8 27965c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_UB:%.*]] = alloca i64, align 8 27975c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_STRIDE:%.*]] = alloca i64, align 8 27985c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_IS_LAST:%.*]] = alloca i32, align 4 27995c93a94fSMichael Kruse // CHECK2-NEXT: [[I37:%.*]] = alloca i32, align 4 28005c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTPERMUTED_0_IV___BEGIN438:%.*]] = alloca i64, align 8 28015c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTPERMUTED_1_IV___BEGIN339:%.*]] = alloca i64, align 8 28025c93a94fSMichael Kruse // CHECK2-NEXT: [[J40:%.*]] = alloca i32, align 4 28035c93a94fSMichael Kruse // CHECK2-NEXT: [[BB:%.*]] = alloca ptr, align 8 28045c93a94fSMichael Kruse // CHECK2-NEXT: [[AA:%.*]] = alloca double, align 8 28055c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP0:%.*]] = call i32 @__kmpc_global_thread_num(ptr @[[GLOB2:[0-9]+]]) 28065c93a94fSMichael Kruse // CHECK2-NEXT: store double 4.200000e+01, ptr [[C]], align 8 28075c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[A]], ptr [[__RANGE3]], align 8 28085c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP1:%.*]] = load ptr, ptr [[__RANGE3]], align 8 28095c93a94fSMichael Kruse // CHECK2-NEXT: [[ARRAYDECAY:%.*]] = getelementptr inbounds [128 x double], ptr [[TMP1]], i64 0, i64 0 28105c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD_PTR:%.*]] = getelementptr inbounds double, ptr [[ARRAYDECAY]], i64 128 28115c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[ADD_PTR]], ptr [[__END3]], align 8 28125c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP2:%.*]] = load ptr, ptr [[__RANGE3]], align 8 28135c93a94fSMichael Kruse // CHECK2-NEXT: [[ARRAYDECAY4:%.*]] = getelementptr inbounds [128 x double], ptr [[TMP2]], i64 0, i64 0 28145c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[ARRAYDECAY4]], ptr [[__BEGIN3]], align 8 28155c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP3:%.*]] = load ptr, ptr [[__RANGE3]], align 8 28165c93a94fSMichael Kruse // CHECK2-NEXT: [[ARRAYDECAY5:%.*]] = getelementptr inbounds [128 x double], ptr [[TMP3]], i64 0, i64 0 28175c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[ARRAYDECAY5]], ptr [[DOTCAPTURE_EXPR_]], align 8 28185c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP4:%.*]] = load ptr, ptr [[__END3]], align 8 28195c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[TMP4]], ptr [[DOTCAPTURE_EXPR_6]], align 8 28205c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP5:%.*]] = load ptr, ptr [[DOTCAPTURE_EXPR_6]], align 8 28215c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP6:%.*]] = load ptr, ptr [[DOTCAPTURE_EXPR_]], align 8 28225c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB_PTR_LHS_CAST:%.*]] = ptrtoint ptr [[TMP5]] to i64 28235c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB_PTR_RHS_CAST:%.*]] = ptrtoint ptr [[TMP6]] to i64 28245c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB_PTR_SUB:%.*]] = sub i64 [[SUB_PTR_LHS_CAST]], [[SUB_PTR_RHS_CAST]] 28255c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB_PTR_DIV:%.*]] = sdiv exact i64 [[SUB_PTR_SUB]], 8 28265c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB:%.*]] = sub nsw i64 [[SUB_PTR_DIV]], 1 28275c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD:%.*]] = add nsw i64 [[SUB]], 1 28285c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV:%.*]] = sdiv i64 [[ADD]], 1 28295c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB8:%.*]] = sub nsw i64 [[DIV]], 1 28305c93a94fSMichael Kruse // CHECK2-NEXT: store i64 [[SUB8]], ptr [[DOTCAPTURE_EXPR_7]], align 8 28315c93a94fSMichael Kruse // CHECK2-NEXT: store double 4.200000e+01, ptr [[D]], align 8 28325c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[B]], ptr [[__RANGE4]], align 8 28335c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP7:%.*]] = load ptr, ptr [[__RANGE4]], align 8 28345c93a94fSMichael Kruse // CHECK2-NEXT: [[ARRAYDECAY9:%.*]] = getelementptr inbounds [16 x double], ptr [[TMP7]], i64 0, i64 0 28355c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD_PTR10:%.*]] = getelementptr inbounds double, ptr [[ARRAYDECAY9]], i64 16 28365c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[ADD_PTR10]], ptr [[__END4]], align 8 28375c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP8:%.*]] = load ptr, ptr [[__RANGE4]], align 8 28385c93a94fSMichael Kruse // CHECK2-NEXT: [[ARRAYDECAY11:%.*]] = getelementptr inbounds [16 x double], ptr [[TMP8]], i64 0, i64 0 28395c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[ARRAYDECAY11]], ptr [[__BEGIN4]], align 8 28405c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP9:%.*]] = load ptr, ptr [[__RANGE4]], align 8 28415c93a94fSMichael Kruse // CHECK2-NEXT: [[ARRAYDECAY13:%.*]] = getelementptr inbounds [16 x double], ptr [[TMP9]], i64 0, i64 0 28425c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[ARRAYDECAY13]], ptr [[DOTCAPTURE_EXPR_12]], align 8 28435c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP10:%.*]] = load ptr, ptr [[__END4]], align 8 28445c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[TMP10]], ptr [[DOTCAPTURE_EXPR_14]], align 8 28455c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP11:%.*]] = load ptr, ptr [[DOTCAPTURE_EXPR_14]], align 8 28465c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP12:%.*]] = load ptr, ptr [[DOTCAPTURE_EXPR_12]], align 8 28475c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB_PTR_LHS_CAST16:%.*]] = ptrtoint ptr [[TMP11]] to i64 28485c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB_PTR_RHS_CAST17:%.*]] = ptrtoint ptr [[TMP12]] to i64 28495c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB_PTR_SUB18:%.*]] = sub i64 [[SUB_PTR_LHS_CAST16]], [[SUB_PTR_RHS_CAST17]] 28505c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB_PTR_DIV19:%.*]] = sdiv exact i64 [[SUB_PTR_SUB18]], 8 28515c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB20:%.*]] = sub nsw i64 [[SUB_PTR_DIV19]], 1 28525c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD21:%.*]] = add nsw i64 [[SUB20]], 1 28535c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV22:%.*]] = sdiv i64 [[ADD21]], 1 28545c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB23:%.*]] = sub nsw i64 [[DIV22]], 1 28555c93a94fSMichael Kruse // CHECK2-NEXT: store i64 [[SUB23]], ptr [[DOTCAPTURE_EXPR_15]], align 8 28565c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP13:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_15]], align 8 28575c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD25:%.*]] = add nsw i64 [[TMP13]], 1 28585c93a94fSMichael Kruse // CHECK2-NEXT: store i64 [[ADD25]], ptr [[DOTCAPTURE_EXPR_24]], align 8 28595c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP14:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_7]], align 8 28605c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD27:%.*]] = add nsw i64 [[TMP14]], 1 28615c93a94fSMichael Kruse // CHECK2-NEXT: store i64 [[ADD27]], ptr [[DOTCAPTURE_EXPR_26]], align 8 28625c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP15:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 28635c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB29:%.*]] = sub nsw i64 [[TMP15]], 0 28645c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV30:%.*]] = sdiv i64 [[SUB29]], 1 28655c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL:%.*]] = mul nsw i64 128, [[DIV30]] 28665c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP16:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 28675c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB31:%.*]] = sub nsw i64 [[TMP16]], 0 28685c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV32:%.*]] = sdiv i64 [[SUB31]], 1 28695c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL33:%.*]] = mul nsw i64 [[MUL]], [[DIV32]] 28705c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL34:%.*]] = mul nsw i64 [[MUL33]], 128 28715c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB35:%.*]] = sub nsw i64 [[MUL34]], 1 28725c93a94fSMichael Kruse // CHECK2-NEXT: store i64 [[SUB35]], ptr [[DOTCAPTURE_EXPR_28]], align 8 28735c93a94fSMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[I]], align 4 28745c93a94fSMichael Kruse // CHECK2-NEXT: store i64 0, ptr [[DOTPERMUTED_0_IV___BEGIN4]], align 8 28755c93a94fSMichael Kruse // CHECK2-NEXT: store i64 0, ptr [[DOTPERMUTED_1_IV___BEGIN3]], align 8 28765c93a94fSMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[J]], align 4 28775c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP17:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 28785c93a94fSMichael Kruse // CHECK2-NEXT: [[CMP:%.*]] = icmp slt i64 0, [[TMP17]] 28795c93a94fSMichael Kruse // CHECK2-NEXT: br i1 [[CMP]], label [[LAND_LHS_TRUE:%.*]], label [[OMP_PRECOND_END:%.*]] 28805c93a94fSMichael Kruse // CHECK2: land.lhs.true: 28815c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP18:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 28825c93a94fSMichael Kruse // CHECK2-NEXT: [[CMP36:%.*]] = icmp slt i64 0, [[TMP18]] 28835c93a94fSMichael Kruse // CHECK2-NEXT: br i1 [[CMP36]], label [[OMP_PRECOND_THEN:%.*]], label [[OMP_PRECOND_END]] 28845c93a94fSMichael Kruse // CHECK2: omp.precond.then: 28855c93a94fSMichael Kruse // CHECK2-NEXT: store i64 0, ptr [[DOTOMP_LB]], align 8 28865c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP19:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_28]], align 8 28875c93a94fSMichael Kruse // CHECK2-NEXT: store i64 [[TMP19]], ptr [[DOTOMP_UB]], align 8 28885c93a94fSMichael Kruse // CHECK2-NEXT: store i64 1, ptr [[DOTOMP_STRIDE]], align 8 28895c93a94fSMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTOMP_IS_LAST]], align 4 28905c93a94fSMichael Kruse // CHECK2-NEXT: call void @__kmpc_for_static_init_8(ptr @[[GLOB1:[0-9]+]], i32 [[TMP0]], i32 34, ptr [[DOTOMP_IS_LAST]], ptr [[DOTOMP_LB]], ptr [[DOTOMP_UB]], ptr [[DOTOMP_STRIDE]], i64 1, i64 1) 28915c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP20:%.*]] = load i64, ptr [[DOTOMP_UB]], align 8 28925c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP21:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_28]], align 8 28935c93a94fSMichael Kruse // CHECK2-NEXT: [[CMP41:%.*]] = icmp sgt i64 [[TMP20]], [[TMP21]] 28945c93a94fSMichael Kruse // CHECK2-NEXT: br i1 [[CMP41]], label [[COND_TRUE:%.*]], label [[COND_FALSE:%.*]] 28955c93a94fSMichael Kruse // CHECK2: cond.true: 28965c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP22:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_28]], align 8 28975c93a94fSMichael Kruse // CHECK2-NEXT: br label [[COND_END:%.*]] 28985c93a94fSMichael Kruse // CHECK2: cond.false: 28995c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP23:%.*]] = load i64, ptr [[DOTOMP_UB]], align 8 29005c93a94fSMichael Kruse // CHECK2-NEXT: br label [[COND_END]] 29015c93a94fSMichael Kruse // CHECK2: cond.end: 29025c93a94fSMichael Kruse // CHECK2-NEXT: [[COND:%.*]] = phi i64 [ [[TMP22]], [[COND_TRUE]] ], [ [[TMP23]], [[COND_FALSE]] ] 29035c93a94fSMichael Kruse // CHECK2-NEXT: store i64 [[COND]], ptr [[DOTOMP_UB]], align 8 29045c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP24:%.*]] = load i64, ptr [[DOTOMP_LB]], align 8 29055c93a94fSMichael Kruse // CHECK2-NEXT: store i64 [[TMP24]], ptr [[DOTOMP_IV]], align 8 29065c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_COND:%.*]] 29075c93a94fSMichael Kruse // CHECK2: omp.inner.for.cond: 29085c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP25:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 29095c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP26:%.*]] = load i64, ptr [[DOTOMP_UB]], align 8 29105c93a94fSMichael Kruse // CHECK2-NEXT: [[CMP42:%.*]] = icmp sle i64 [[TMP25]], [[TMP26]] 29115c93a94fSMichael Kruse // CHECK2-NEXT: br i1 [[CMP42]], label [[OMP_INNER_FOR_BODY:%.*]], label [[OMP_INNER_FOR_END:%.*]] 29125c93a94fSMichael Kruse // CHECK2: omp.inner.for.body: 29135c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP27:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 29145c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP28:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 29155c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB43:%.*]] = sub nsw i64 [[TMP28]], 0 29165c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV44:%.*]] = sdiv i64 [[SUB43]], 1 29175c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL45:%.*]] = mul nsw i64 1, [[DIV44]] 29185c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP29:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 29195c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB46:%.*]] = sub nsw i64 [[TMP29]], 0 29205c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV47:%.*]] = sdiv i64 [[SUB46]], 1 29215c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL48:%.*]] = mul nsw i64 [[MUL45]], [[DIV47]] 29225c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL49:%.*]] = mul nsw i64 [[MUL48]], 128 29235c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV50:%.*]] = sdiv i64 [[TMP27]], [[MUL49]] 29245c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL51:%.*]] = mul nsw i64 [[DIV50]], 1 29255c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD52:%.*]] = add nsw i64 0, [[MUL51]] 29265c93a94fSMichael Kruse // CHECK2-NEXT: [[CONV:%.*]] = trunc i64 [[ADD52]] to i32 29275c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[CONV]], ptr [[I37]], align 4 29285c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP30:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 29295c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP31:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 29305c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP32:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 29315c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB53:%.*]] = sub nsw i64 [[TMP32]], 0 29325c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV54:%.*]] = sdiv i64 [[SUB53]], 1 29335c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL55:%.*]] = mul nsw i64 1, [[DIV54]] 29345c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP33:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 29355c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB56:%.*]] = sub nsw i64 [[TMP33]], 0 29365c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV57:%.*]] = sdiv i64 [[SUB56]], 1 29375c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL58:%.*]] = mul nsw i64 [[MUL55]], [[DIV57]] 29385c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL59:%.*]] = mul nsw i64 [[MUL58]], 128 29395c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV60:%.*]] = sdiv i64 [[TMP31]], [[MUL59]] 29405c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP34:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 29415c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB61:%.*]] = sub nsw i64 [[TMP34]], 0 29425c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV62:%.*]] = sdiv i64 [[SUB61]], 1 29435c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL63:%.*]] = mul nsw i64 1, [[DIV62]] 29445c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP35:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 29455c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB64:%.*]] = sub nsw i64 [[TMP35]], 0 29465c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV65:%.*]] = sdiv i64 [[SUB64]], 1 29475c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL66:%.*]] = mul nsw i64 [[MUL63]], [[DIV65]] 29485c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL67:%.*]] = mul nsw i64 [[MUL66]], 128 29495c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL68:%.*]] = mul nsw i64 [[DIV60]], [[MUL67]] 29505c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB69:%.*]] = sub nsw i64 [[TMP30]], [[MUL68]] 29515c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP36:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 29525c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB70:%.*]] = sub nsw i64 [[TMP36]], 0 29535c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV71:%.*]] = sdiv i64 [[SUB70]], 1 29545c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL72:%.*]] = mul nsw i64 1, [[DIV71]] 29555c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL73:%.*]] = mul nsw i64 [[MUL72]], 128 29565c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV74:%.*]] = sdiv i64 [[SUB69]], [[MUL73]] 29575c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL75:%.*]] = mul nsw i64 [[DIV74]], 1 29585c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD76:%.*]] = add nsw i64 0, [[MUL75]] 29595c93a94fSMichael Kruse // CHECK2-NEXT: store i64 [[ADD76]], ptr [[DOTPERMUTED_0_IV___BEGIN438]], align 8 29605c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP37:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 29615c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP38:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 29625c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP39:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 29635c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB77:%.*]] = sub nsw i64 [[TMP39]], 0 29645c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV78:%.*]] = sdiv i64 [[SUB77]], 1 29655c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL79:%.*]] = mul nsw i64 1, [[DIV78]] 29665c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP40:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 29675c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB80:%.*]] = sub nsw i64 [[TMP40]], 0 29685c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV81:%.*]] = sdiv i64 [[SUB80]], 1 29695c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL82:%.*]] = mul nsw i64 [[MUL79]], [[DIV81]] 29705c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL83:%.*]] = mul nsw i64 [[MUL82]], 128 29715c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV84:%.*]] = sdiv i64 [[TMP38]], [[MUL83]] 29725c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP41:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 29735c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB85:%.*]] = sub nsw i64 [[TMP41]], 0 29745c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV86:%.*]] = sdiv i64 [[SUB85]], 1 29755c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL87:%.*]] = mul nsw i64 1, [[DIV86]] 29765c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP42:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 29775c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB88:%.*]] = sub nsw i64 [[TMP42]], 0 29785c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV89:%.*]] = sdiv i64 [[SUB88]], 1 29795c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL90:%.*]] = mul nsw i64 [[MUL87]], [[DIV89]] 29805c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL91:%.*]] = mul nsw i64 [[MUL90]], 128 29815c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL92:%.*]] = mul nsw i64 [[DIV84]], [[MUL91]] 29825c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB93:%.*]] = sub nsw i64 [[TMP37]], [[MUL92]] 29835c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP43:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 29845c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP44:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 29855c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP45:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 29865c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB94:%.*]] = sub nsw i64 [[TMP45]], 0 29875c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV95:%.*]] = sdiv i64 [[SUB94]], 1 29885c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL96:%.*]] = mul nsw i64 1, [[DIV95]] 29895c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP46:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 29905c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB97:%.*]] = sub nsw i64 [[TMP46]], 0 29915c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV98:%.*]] = sdiv i64 [[SUB97]], 1 29925c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL99:%.*]] = mul nsw i64 [[MUL96]], [[DIV98]] 29935c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL100:%.*]] = mul nsw i64 [[MUL99]], 128 29945c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV101:%.*]] = sdiv i64 [[TMP44]], [[MUL100]] 29955c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP47:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 29965c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB102:%.*]] = sub nsw i64 [[TMP47]], 0 29975c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV103:%.*]] = sdiv i64 [[SUB102]], 1 29985c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL104:%.*]] = mul nsw i64 1, [[DIV103]] 29995c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP48:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 30005c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB105:%.*]] = sub nsw i64 [[TMP48]], 0 30015c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV106:%.*]] = sdiv i64 [[SUB105]], 1 30025c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL107:%.*]] = mul nsw i64 [[MUL104]], [[DIV106]] 30035c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL108:%.*]] = mul nsw i64 [[MUL107]], 128 30045c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL109:%.*]] = mul nsw i64 [[DIV101]], [[MUL108]] 30055c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB110:%.*]] = sub nsw i64 [[TMP43]], [[MUL109]] 30065c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP49:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 30075c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB111:%.*]] = sub nsw i64 [[TMP49]], 0 30085c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV112:%.*]] = sdiv i64 [[SUB111]], 1 30095c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL113:%.*]] = mul nsw i64 1, [[DIV112]] 30105c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL114:%.*]] = mul nsw i64 [[MUL113]], 128 30115c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV115:%.*]] = sdiv i64 [[SUB110]], [[MUL114]] 30125c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP50:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 30135c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB116:%.*]] = sub nsw i64 [[TMP50]], 0 30145c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV117:%.*]] = sdiv i64 [[SUB116]], 1 30155c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL118:%.*]] = mul nsw i64 1, [[DIV117]] 30165c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL119:%.*]] = mul nsw i64 [[MUL118]], 128 30175c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL120:%.*]] = mul nsw i64 [[DIV115]], [[MUL119]] 30185c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB121:%.*]] = sub nsw i64 [[SUB93]], [[MUL120]] 30195c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV122:%.*]] = sdiv i64 [[SUB121]], 128 30205c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL123:%.*]] = mul nsw i64 [[DIV122]], 1 30215c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD124:%.*]] = add nsw i64 0, [[MUL123]] 30225c93a94fSMichael Kruse // CHECK2-NEXT: store i64 [[ADD124]], ptr [[DOTPERMUTED_1_IV___BEGIN339]], align 8 30235c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP51:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 30245c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP52:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 30255c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP53:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 30265c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB125:%.*]] = sub nsw i64 [[TMP53]], 0 30275c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV126:%.*]] = sdiv i64 [[SUB125]], 1 30285c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL127:%.*]] = mul nsw i64 1, [[DIV126]] 30295c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP54:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 30305c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB128:%.*]] = sub nsw i64 [[TMP54]], 0 30315c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV129:%.*]] = sdiv i64 [[SUB128]], 1 30325c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL130:%.*]] = mul nsw i64 [[MUL127]], [[DIV129]] 30335c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL131:%.*]] = mul nsw i64 [[MUL130]], 128 30345c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV132:%.*]] = sdiv i64 [[TMP52]], [[MUL131]] 30355c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP55:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 30365c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB133:%.*]] = sub nsw i64 [[TMP55]], 0 30375c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV134:%.*]] = sdiv i64 [[SUB133]], 1 30385c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL135:%.*]] = mul nsw i64 1, [[DIV134]] 30395c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP56:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 30405c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB136:%.*]] = sub nsw i64 [[TMP56]], 0 30415c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV137:%.*]] = sdiv i64 [[SUB136]], 1 30425c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL138:%.*]] = mul nsw i64 [[MUL135]], [[DIV137]] 30435c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL139:%.*]] = mul nsw i64 [[MUL138]], 128 30445c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL140:%.*]] = mul nsw i64 [[DIV132]], [[MUL139]] 30455c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB141:%.*]] = sub nsw i64 [[TMP51]], [[MUL140]] 30465c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP57:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 30475c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP58:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 30485c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP59:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 30495c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB142:%.*]] = sub nsw i64 [[TMP59]], 0 30505c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV143:%.*]] = sdiv i64 [[SUB142]], 1 30515c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL144:%.*]] = mul nsw i64 1, [[DIV143]] 30525c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP60:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 30535c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB145:%.*]] = sub nsw i64 [[TMP60]], 0 30545c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV146:%.*]] = sdiv i64 [[SUB145]], 1 30555c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL147:%.*]] = mul nsw i64 [[MUL144]], [[DIV146]] 30565c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL148:%.*]] = mul nsw i64 [[MUL147]], 128 30575c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV149:%.*]] = sdiv i64 [[TMP58]], [[MUL148]] 30585c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP61:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 30595c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB150:%.*]] = sub nsw i64 [[TMP61]], 0 30605c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV151:%.*]] = sdiv i64 [[SUB150]], 1 30615c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL152:%.*]] = mul nsw i64 1, [[DIV151]] 30625c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP62:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 30635c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB153:%.*]] = sub nsw i64 [[TMP62]], 0 30645c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV154:%.*]] = sdiv i64 [[SUB153]], 1 30655c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL155:%.*]] = mul nsw i64 [[MUL152]], [[DIV154]] 30665c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL156:%.*]] = mul nsw i64 [[MUL155]], 128 30675c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL157:%.*]] = mul nsw i64 [[DIV149]], [[MUL156]] 30685c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB158:%.*]] = sub nsw i64 [[TMP57]], [[MUL157]] 30695c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP63:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 30705c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB159:%.*]] = sub nsw i64 [[TMP63]], 0 30715c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV160:%.*]] = sdiv i64 [[SUB159]], 1 30725c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL161:%.*]] = mul nsw i64 1, [[DIV160]] 30735c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL162:%.*]] = mul nsw i64 [[MUL161]], 128 30745c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV163:%.*]] = sdiv i64 [[SUB158]], [[MUL162]] 30755c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP64:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 30765c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB164:%.*]] = sub nsw i64 [[TMP64]], 0 30775c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV165:%.*]] = sdiv i64 [[SUB164]], 1 30785c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL166:%.*]] = mul nsw i64 1, [[DIV165]] 30795c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL167:%.*]] = mul nsw i64 [[MUL166]], 128 30805c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL168:%.*]] = mul nsw i64 [[DIV163]], [[MUL167]] 30815c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB169:%.*]] = sub nsw i64 [[SUB141]], [[MUL168]] 30825c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP65:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 30835c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP66:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 30845c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP67:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 30855c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB170:%.*]] = sub nsw i64 [[TMP67]], 0 30865c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV171:%.*]] = sdiv i64 [[SUB170]], 1 30875c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL172:%.*]] = mul nsw i64 1, [[DIV171]] 30885c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP68:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 30895c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB173:%.*]] = sub nsw i64 [[TMP68]], 0 30905c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV174:%.*]] = sdiv i64 [[SUB173]], 1 30915c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL175:%.*]] = mul nsw i64 [[MUL172]], [[DIV174]] 30925c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL176:%.*]] = mul nsw i64 [[MUL175]], 128 30935c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV177:%.*]] = sdiv i64 [[TMP66]], [[MUL176]] 30945c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP69:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 30955c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB178:%.*]] = sub nsw i64 [[TMP69]], 0 30965c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV179:%.*]] = sdiv i64 [[SUB178]], 1 30975c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL180:%.*]] = mul nsw i64 1, [[DIV179]] 30985c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP70:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 30995c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB181:%.*]] = sub nsw i64 [[TMP70]], 0 31005c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV182:%.*]] = sdiv i64 [[SUB181]], 1 31015c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL183:%.*]] = mul nsw i64 [[MUL180]], [[DIV182]] 31025c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL184:%.*]] = mul nsw i64 [[MUL183]], 128 31035c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL185:%.*]] = mul nsw i64 [[DIV177]], [[MUL184]] 31045c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB186:%.*]] = sub nsw i64 [[TMP65]], [[MUL185]] 31055c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP71:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 31065c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP72:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 31075c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP73:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 31085c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB187:%.*]] = sub nsw i64 [[TMP73]], 0 31095c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV188:%.*]] = sdiv i64 [[SUB187]], 1 31105c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL189:%.*]] = mul nsw i64 1, [[DIV188]] 31115c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP74:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 31125c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB190:%.*]] = sub nsw i64 [[TMP74]], 0 31135c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV191:%.*]] = sdiv i64 [[SUB190]], 1 31145c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL192:%.*]] = mul nsw i64 [[MUL189]], [[DIV191]] 31155c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL193:%.*]] = mul nsw i64 [[MUL192]], 128 31165c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV194:%.*]] = sdiv i64 [[TMP72]], [[MUL193]] 31175c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP75:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_24]], align 8 31185c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB195:%.*]] = sub nsw i64 [[TMP75]], 0 31195c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV196:%.*]] = sdiv i64 [[SUB195]], 1 31205c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL197:%.*]] = mul nsw i64 1, [[DIV196]] 31215c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP76:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 31225c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB198:%.*]] = sub nsw i64 [[TMP76]], 0 31235c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV199:%.*]] = sdiv i64 [[SUB198]], 1 31245c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL200:%.*]] = mul nsw i64 [[MUL197]], [[DIV199]] 31255c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL201:%.*]] = mul nsw i64 [[MUL200]], 128 31265c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL202:%.*]] = mul nsw i64 [[DIV194]], [[MUL201]] 31275c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB203:%.*]] = sub nsw i64 [[TMP71]], [[MUL202]] 31285c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP77:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 31295c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB204:%.*]] = sub nsw i64 [[TMP77]], 0 31305c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV205:%.*]] = sdiv i64 [[SUB204]], 1 31315c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL206:%.*]] = mul nsw i64 1, [[DIV205]] 31325c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL207:%.*]] = mul nsw i64 [[MUL206]], 128 31335c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV208:%.*]] = sdiv i64 [[SUB203]], [[MUL207]] 31345c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP78:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_26]], align 8 31355c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB209:%.*]] = sub nsw i64 [[TMP78]], 0 31365c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV210:%.*]] = sdiv i64 [[SUB209]], 1 31375c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL211:%.*]] = mul nsw i64 1, [[DIV210]] 31385c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL212:%.*]] = mul nsw i64 [[MUL211]], 128 31395c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL213:%.*]] = mul nsw i64 [[DIV208]], [[MUL212]] 31405c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB214:%.*]] = sub nsw i64 [[SUB186]], [[MUL213]] 31415c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV215:%.*]] = sdiv i64 [[SUB214]], 128 31425c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL216:%.*]] = mul nsw i64 [[DIV215]], 128 31435c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB217:%.*]] = sub nsw i64 [[SUB169]], [[MUL216]] 31445c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL218:%.*]] = mul nsw i64 [[SUB217]], 1 31455c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD219:%.*]] = add nsw i64 0, [[MUL218]] 31465c93a94fSMichael Kruse // CHECK2-NEXT: [[CONV220:%.*]] = trunc i64 [[ADD219]] to i32 31475c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[CONV220]], ptr [[J40]], align 4 31485c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP79:%.*]] = load ptr, ptr [[DOTCAPTURE_EXPR_12]], align 8 31495c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP80:%.*]] = load i64, ptr [[DOTPERMUTED_0_IV___BEGIN438]], align 8 31505c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL221:%.*]] = mul nsw i64 [[TMP80]], 1 31515c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD_PTR222:%.*]] = getelementptr inbounds double, ptr [[TMP79]], i64 [[MUL221]] 31525c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[ADD_PTR222]], ptr [[__BEGIN4]], align 8 31535c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP81:%.*]] = load ptr, ptr [[__BEGIN4]], align 8 31545c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[TMP81]], ptr [[BB]], align 8 31555c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP82:%.*]] = load ptr, ptr [[DOTCAPTURE_EXPR_]], align 8 31565c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP83:%.*]] = load i64, ptr [[DOTPERMUTED_1_IV___BEGIN339]], align 8 31575c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL223:%.*]] = mul nsw i64 [[TMP83]], 1 31585c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD_PTR224:%.*]] = getelementptr inbounds double, ptr [[TMP82]], i64 [[MUL223]] 31595c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[ADD_PTR224]], ptr [[__BEGIN3]], align 8 31605c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP84:%.*]] = load ptr, ptr [[__BEGIN3]], align 8 31615c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP85:%.*]] = load double, ptr [[TMP84]], align 8 31625c93a94fSMichael Kruse // CHECK2-NEXT: store double [[TMP85]], ptr [[AA]], align 8 31635c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP86:%.*]] = load i32, ptr [[I37]], align 4 31645c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP87:%.*]] = load double, ptr [[C]], align 8 31655c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP88:%.*]] = load double, ptr [[AA]], align 8 31665c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP89:%.*]] = load double, ptr [[D]], align 8 31675c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP90:%.*]] = load ptr, ptr [[BB]], align 8 31685c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP91:%.*]] = load double, ptr [[TMP90]], align 8 31695c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP92:%.*]] = load i32, ptr [[J40]], align 4 31705c93a94fSMichael Kruse // CHECK2-NEXT: call void (...) @body(i32 noundef [[TMP86]], double noundef [[TMP87]], double noundef [[TMP88]], double noundef [[TMP89]], double noundef [[TMP91]], i32 noundef [[TMP92]]) 31715c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_BODY_CONTINUE:%.*]] 31725c93a94fSMichael Kruse // CHECK2: omp.body.continue: 31735c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_INC:%.*]] 31745c93a94fSMichael Kruse // CHECK2: omp.inner.for.inc: 31755c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP93:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 31765c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD225:%.*]] = add nsw i64 [[TMP93]], 1 31775c93a94fSMichael Kruse // CHECK2-NEXT: store i64 [[ADD225]], ptr [[DOTOMP_IV]], align 8 31785c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_COND]] 31795c93a94fSMichael Kruse // CHECK2: omp.inner.for.end: 31805c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_LOOP_EXIT:%.*]] 31815c93a94fSMichael Kruse // CHECK2: omp.loop.exit: 31825c93a94fSMichael Kruse // CHECK2-NEXT: call void @__kmpc_for_static_fini(ptr @[[GLOB1]], i32 [[TMP0]]) 31835c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_PRECOND_END]] 31845c93a94fSMichael Kruse // CHECK2: omp.precond.end: 31855c93a94fSMichael Kruse // CHECK2-NEXT: call void @__kmpc_barrier(ptr @[[GLOB3:[0-9]+]], i32 [[TMP0]]) 31865c93a94fSMichael Kruse // CHECK2-NEXT: ret void 31875c93a94fSMichael Kruse // 31885c93a94fSMichael Kruse // 31895c93a94fSMichael Kruse // CHECK2-LABEL: define {{[^@]+}}@foo2 31905c93a94fSMichael Kruse // CHECK2-SAME: (i32 noundef [[START1:%.*]], i32 noundef [[START2:%.*]], i32 noundef [[END1:%.*]], i32 noundef [[END2:%.*]], i32 noundef [[STEP1:%.*]], i32 noundef [[STEP2:%.*]]) #[[ATTR0]] { 31915c93a94fSMichael Kruse // CHECK2-NEXT: entry: 31925c93a94fSMichael Kruse // CHECK2-NEXT: [[START1_ADDR:%.*]] = alloca i32, align 4 31935c93a94fSMichael Kruse // CHECK2-NEXT: [[START2_ADDR:%.*]] = alloca i32, align 4 31945c93a94fSMichael Kruse // CHECK2-NEXT: [[END1_ADDR:%.*]] = alloca i32, align 4 31955c93a94fSMichael Kruse // CHECK2-NEXT: [[END2_ADDR:%.*]] = alloca i32, align 4 31965c93a94fSMichael Kruse // CHECK2-NEXT: [[STEP1_ADDR:%.*]] = alloca i32, align 4 31975c93a94fSMichael Kruse // CHECK2-NEXT: [[STEP2_ADDR:%.*]] = alloca i32, align 4 31985c93a94fSMichael Kruse // CHECK2-NEXT: [[I:%.*]] = alloca i32, align 4 31995c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_:%.*]] = alloca i32, align 4 32005c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_1:%.*]] = alloca i32, align 4 32015c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTNEW_STEP:%.*]] = alloca i32, align 4 32025c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_2:%.*]] = alloca i32, align 4 32035c93a94fSMichael Kruse // CHECK2-NEXT: [[J:%.*]] = alloca i32, align 4 32045c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_5:%.*]] = alloca i32, align 4 32055c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_6:%.*]] = alloca i32, align 4 32065c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTNEW_STEP7:%.*]] = alloca i32, align 4 32075c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_8:%.*]] = alloca i32, align 4 32085c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTPERMUTED_0_IV_J:%.*]] = alloca i32, align 4 32095c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTPERMUTED_1_IV_I:%.*]] = alloca i32, align 4 32105c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[START1]], ptr [[START1_ADDR]], align 4 32115c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[START2]], ptr [[START2_ADDR]], align 4 32125c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[END1]], ptr [[END1_ADDR]], align 4 32135c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[END2]], ptr [[END2_ADDR]], align 4 32145c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[STEP1]], ptr [[STEP1_ADDR]], align 4 32155c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[STEP2]], ptr [[STEP2_ADDR]], align 4 32165c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP0:%.*]] = load i32, ptr [[START1_ADDR]], align 4 32175c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[TMP0]], ptr [[I]], align 4 32185c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP1:%.*]] = load i32, ptr [[START1_ADDR]], align 4 32195c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[TMP1]], ptr [[DOTCAPTURE_EXPR_]], align 4 32205c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP2:%.*]] = load i32, ptr [[END1_ADDR]], align 4 32215c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[TMP2]], ptr [[DOTCAPTURE_EXPR_1]], align 4 32225c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP3:%.*]] = load i32, ptr [[STEP1_ADDR]], align 4 32235c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[TMP3]], ptr [[DOTNEW_STEP]], align 4 32245c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP4:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_1]], align 4 32255c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP5:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 32265c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB:%.*]] = sub i32 [[TMP4]], [[TMP5]] 32275c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB3:%.*]] = sub i32 [[SUB]], 1 32285c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP6:%.*]] = load i32, ptr [[DOTNEW_STEP]], align 4 32295c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD:%.*]] = add i32 [[SUB3]], [[TMP6]] 32305c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP7:%.*]] = load i32, ptr [[DOTNEW_STEP]], align 4 32315c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV:%.*]] = udiv i32 [[ADD]], [[TMP7]] 32325c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB4:%.*]] = sub i32 [[DIV]], 1 32335c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[SUB4]], ptr [[DOTCAPTURE_EXPR_2]], align 4 32345c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP8:%.*]] = load i32, ptr [[START2_ADDR]], align 4 32355c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[TMP8]], ptr [[J]], align 4 32365c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP9:%.*]] = load i32, ptr [[START2_ADDR]], align 4 32375c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[TMP9]], ptr [[DOTCAPTURE_EXPR_5]], align 4 32385c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP10:%.*]] = load i32, ptr [[END2_ADDR]], align 4 32395c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[TMP10]], ptr [[DOTCAPTURE_EXPR_6]], align 4 32405c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP11:%.*]] = load i32, ptr [[STEP2_ADDR]], align 4 32415c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[TMP11]], ptr [[DOTNEW_STEP7]], align 4 32425c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP12:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 32435c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP13:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 32445c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB9:%.*]] = sub i32 [[TMP12]], [[TMP13]] 32455c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB10:%.*]] = sub i32 [[SUB9]], 1 32465c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP14:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 32475c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD11:%.*]] = add i32 [[SUB10]], [[TMP14]] 32485c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP15:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 32495c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV12:%.*]] = udiv i32 [[ADD11]], [[TMP15]] 32505c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB13:%.*]] = sub i32 [[DIV12]], 1 32515c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[SUB13]], ptr [[DOTCAPTURE_EXPR_8]], align 4 32525c93a94fSMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTPERMUTED_0_IV_J]], align 4 32535c93a94fSMichael Kruse // CHECK2-NEXT: br label [[FOR_COND:%.*]] 32545c93a94fSMichael Kruse // CHECK2: for.cond: 32555c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP16:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_J]], align 4 32565c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP17:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_8]], align 4 32575c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD14:%.*]] = add i32 [[TMP17]], 1 32585c93a94fSMichael Kruse // CHECK2-NEXT: [[CMP:%.*]] = icmp ult i32 [[TMP16]], [[ADD14]] 32595c93a94fSMichael Kruse // CHECK2-NEXT: br i1 [[CMP]], label [[FOR_BODY:%.*]], label [[FOR_END24:%.*]] 32605c93a94fSMichael Kruse // CHECK2: for.body: 32615c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP18:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 32625c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP19:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_J]], align 4 32635c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP20:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 32645c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL:%.*]] = mul i32 [[TMP19]], [[TMP20]] 32655c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD15:%.*]] = add i32 [[TMP18]], [[MUL]] 32665c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[ADD15]], ptr [[J]], align 4 32675c93a94fSMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTPERMUTED_1_IV_I]], align 4 32685c93a94fSMichael Kruse // CHECK2-NEXT: br label [[FOR_COND16:%.*]] 32695c93a94fSMichael Kruse // CHECK2: for.cond16: 32705c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP21:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_I]], align 4 32715c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP22:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_2]], align 4 32725c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD17:%.*]] = add i32 [[TMP22]], 1 32735c93a94fSMichael Kruse // CHECK2-NEXT: [[CMP18:%.*]] = icmp ult i32 [[TMP21]], [[ADD17]] 32745c93a94fSMichael Kruse // CHECK2-NEXT: br i1 [[CMP18]], label [[FOR_BODY19:%.*]], label [[FOR_END:%.*]] 32755c93a94fSMichael Kruse // CHECK2: for.body19: 32765c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP23:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 32775c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP24:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_I]], align 4 32785c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP25:%.*]] = load i32, ptr [[DOTNEW_STEP]], align 4 32795c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL20:%.*]] = mul i32 [[TMP24]], [[TMP25]] 32805c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD21:%.*]] = add i32 [[TMP23]], [[MUL20]] 32815c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[ADD21]], ptr [[I]], align 4 32825c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP26:%.*]] = load i32, ptr [[I]], align 4 32835c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP27:%.*]] = load i32, ptr [[J]], align 4 32845c93a94fSMichael Kruse // CHECK2-NEXT: call void (...) @body(i32 noundef [[TMP26]], i32 noundef [[TMP27]]) 32855c93a94fSMichael Kruse // CHECK2-NEXT: br label [[FOR_INC:%.*]] 32865c93a94fSMichael Kruse // CHECK2: for.inc: 32875c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP28:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_I]], align 4 32885c93a94fSMichael Kruse // CHECK2-NEXT: [[INC:%.*]] = add i32 [[TMP28]], 1 32895c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[INC]], ptr [[DOTPERMUTED_1_IV_I]], align 4 3290*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_COND16]], !llvm.loop [[LOOP5:![0-9]+]] 32915c93a94fSMichael Kruse // CHECK2: for.end: 32925c93a94fSMichael Kruse // CHECK2-NEXT: br label [[FOR_INC22:%.*]] 32935c93a94fSMichael Kruse // CHECK2: for.inc22: 32945c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP29:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_J]], align 4 32955c93a94fSMichael Kruse // CHECK2-NEXT: [[INC23:%.*]] = add i32 [[TMP29]], 1 32965c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[INC23]], ptr [[DOTPERMUTED_0_IV_J]], align 4 3297*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_COND]], !llvm.loop [[LOOP6:![0-9]+]] 32985c93a94fSMichael Kruse // CHECK2: for.end24: 32995c93a94fSMichael Kruse // CHECK2-NEXT: ret void 33005c93a94fSMichael Kruse // 33015c93a94fSMichael Kruse // 33025c93a94fSMichael Kruse // CHECK2-LABEL: define {{[^@]+}}@foo3 33035c93a94fSMichael Kruse // CHECK2-SAME: () #[[ATTR0]] { 33045c93a94fSMichael Kruse // CHECK2-NEXT: entry: 33055c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_IV:%.*]] = alloca i32, align 4 33065c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP:%.*]] = alloca i32, align 4 33075c93a94fSMichael Kruse // CHECK2-NEXT: [[I:%.*]] = alloca i32, align 4 33085c93a94fSMichael Kruse // CHECK2-NEXT: [[J:%.*]] = alloca i32, align 4 33095c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_LB:%.*]] = alloca i32, align 4 33105c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_UB:%.*]] = alloca i32, align 4 33115c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_STRIDE:%.*]] = alloca i32, align 4 33125c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_IS_LAST:%.*]] = alloca i32, align 4 33135c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTPERMUTED_0_IV_J:%.*]] = alloca i32, align 4 33145c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTPERMUTED_1_IV_I:%.*]] = alloca i32, align 4 33155c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP0:%.*]] = call i32 @__kmpc_global_thread_num(ptr @[[GLOB2]]) 33165c93a94fSMichael Kruse // CHECK2-NEXT: store i32 7, ptr [[I]], align 4 33175c93a94fSMichael Kruse // CHECK2-NEXT: store i32 7, ptr [[J]], align 4 33185c93a94fSMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTOMP_LB]], align 4 33195c93a94fSMichael Kruse // CHECK2-NEXT: store i32 3, ptr [[DOTOMP_UB]], align 4 33205c93a94fSMichael Kruse // CHECK2-NEXT: store i32 1, ptr [[DOTOMP_STRIDE]], align 4 33215c93a94fSMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTOMP_IS_LAST]], align 4 33225c93a94fSMichael Kruse // CHECK2-NEXT: call void @__kmpc_for_static_init_4(ptr @[[GLOB1]], i32 [[TMP0]], i32 34, ptr [[DOTOMP_IS_LAST]], ptr [[DOTOMP_LB]], ptr [[DOTOMP_UB]], ptr [[DOTOMP_STRIDE]], i32 1, i32 1) 33235c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP1:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 33245c93a94fSMichael Kruse // CHECK2-NEXT: [[CMP:%.*]] = icmp sgt i32 [[TMP1]], 3 33255c93a94fSMichael Kruse // CHECK2-NEXT: br i1 [[CMP]], label [[COND_TRUE:%.*]], label [[COND_FALSE:%.*]] 33265c93a94fSMichael Kruse // CHECK2: cond.true: 33275c93a94fSMichael Kruse // CHECK2-NEXT: br label [[COND_END:%.*]] 33285c93a94fSMichael Kruse // CHECK2: cond.false: 33295c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP2:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 33305c93a94fSMichael Kruse // CHECK2-NEXT: br label [[COND_END]] 33315c93a94fSMichael Kruse // CHECK2: cond.end: 33325c93a94fSMichael Kruse // CHECK2-NEXT: [[COND:%.*]] = phi i32 [ 3, [[COND_TRUE]] ], [ [[TMP2]], [[COND_FALSE]] ] 33335c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[COND]], ptr [[DOTOMP_UB]], align 4 33345c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP3:%.*]] = load i32, ptr [[DOTOMP_LB]], align 4 33355c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[TMP3]], ptr [[DOTOMP_IV]], align 4 33365c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_COND:%.*]] 33375c93a94fSMichael Kruse // CHECK2: omp.inner.for.cond: 33385c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP4:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 33395c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP5:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 33405c93a94fSMichael Kruse // CHECK2-NEXT: [[CMP1:%.*]] = icmp sle i32 [[TMP4]], [[TMP5]] 33415c93a94fSMichael Kruse // CHECK2-NEXT: br i1 [[CMP1]], label [[OMP_INNER_FOR_BODY:%.*]], label [[OMP_INNER_FOR_END:%.*]] 33425c93a94fSMichael Kruse // CHECK2: omp.inner.for.body: 33435c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP6:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 33445c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL:%.*]] = mul nsw i32 [[TMP6]], 1 33455c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD:%.*]] = add nsw i32 0, [[MUL]] 33465c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[ADD]], ptr [[DOTPERMUTED_0_IV_J]], align 4 33475c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP7:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_J]], align 4 33485c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL2:%.*]] = mul nsw i32 [[TMP7]], 3 33495c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD3:%.*]] = add nsw i32 7, [[MUL2]] 33505c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[ADD3]], ptr [[J]], align 4 33515c93a94fSMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTPERMUTED_1_IV_I]], align 4 33525c93a94fSMichael Kruse // CHECK2-NEXT: br label [[FOR_COND:%.*]] 33535c93a94fSMichael Kruse // CHECK2: for.cond: 33545c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP8:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_I]], align 4 33555c93a94fSMichael Kruse // CHECK2-NEXT: [[CMP4:%.*]] = icmp slt i32 [[TMP8]], 4 33565c93a94fSMichael Kruse // CHECK2-NEXT: br i1 [[CMP4]], label [[FOR_BODY:%.*]], label [[FOR_END:%.*]] 33575c93a94fSMichael Kruse // CHECK2: for.body: 33585c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP9:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_I]], align 4 33595c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL5:%.*]] = mul nsw i32 [[TMP9]], 3 33605c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD6:%.*]] = add nsw i32 7, [[MUL5]] 33615c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[ADD6]], ptr [[I]], align 4 33625c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP10:%.*]] = load i32, ptr [[I]], align 4 33635c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP11:%.*]] = load i32, ptr [[J]], align 4 33645c93a94fSMichael Kruse // CHECK2-NEXT: call void (...) @body(i32 noundef [[TMP10]], i32 noundef [[TMP11]]) 33655c93a94fSMichael Kruse // CHECK2-NEXT: br label [[FOR_INC:%.*]] 33665c93a94fSMichael Kruse // CHECK2: for.inc: 33675c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP12:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_I]], align 4 33685c93a94fSMichael Kruse // CHECK2-NEXT: [[INC:%.*]] = add nsw i32 [[TMP12]], 1 33695c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[INC]], ptr [[DOTPERMUTED_1_IV_I]], align 4 3370*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_COND]], !llvm.loop [[LOOP7:![0-9]+]] 33715c93a94fSMichael Kruse // CHECK2: for.end: 33725c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_BODY_CONTINUE:%.*]] 33735c93a94fSMichael Kruse // CHECK2: omp.body.continue: 33745c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_INC:%.*]] 33755c93a94fSMichael Kruse // CHECK2: omp.inner.for.inc: 33765c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP13:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 33775c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD7:%.*]] = add nsw i32 [[TMP13]], 1 33785c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[ADD7]], ptr [[DOTOMP_IV]], align 4 33795c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_COND]] 33805c93a94fSMichael Kruse // CHECK2: omp.inner.for.end: 33815c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_LOOP_EXIT:%.*]] 33825c93a94fSMichael Kruse // CHECK2: omp.loop.exit: 33835c93a94fSMichael Kruse // CHECK2-NEXT: call void @__kmpc_for_static_fini(ptr @[[GLOB1]], i32 [[TMP0]]) 33845c93a94fSMichael Kruse // CHECK2-NEXT: call void @__kmpc_barrier(ptr @[[GLOB3]], i32 [[TMP0]]) 33855c93a94fSMichael Kruse // CHECK2-NEXT: ret void 33865c93a94fSMichael Kruse // 33875c93a94fSMichael Kruse // 33885c93a94fSMichael Kruse // CHECK2-LABEL: define {{[^@]+}}@foo4 33895c93a94fSMichael Kruse // CHECK2-SAME: () #[[ATTR0]] { 33905c93a94fSMichael Kruse // CHECK2-NEXT: entry: 33915c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_IV:%.*]] = alloca i32, align 4 33925c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP:%.*]] = alloca i32, align 4 33935c93a94fSMichael Kruse // CHECK2-NEXT: [[_TMP1:%.*]] = alloca i32, align 4 33945c93a94fSMichael Kruse // CHECK2-NEXT: [[I:%.*]] = alloca i32, align 4 33955c93a94fSMichael Kruse // CHECK2-NEXT: [[J:%.*]] = alloca i32, align 4 33965c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_LB:%.*]] = alloca i32, align 4 33975c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_UB:%.*]] = alloca i32, align 4 33985c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_STRIDE:%.*]] = alloca i32, align 4 33995c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_IS_LAST:%.*]] = alloca i32, align 4 34005c93a94fSMichael Kruse // CHECK2-NEXT: [[K:%.*]] = alloca i32, align 4 34015c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTPERMUTED_0_IV_J:%.*]] = alloca i32, align 4 34025c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTPERMUTED_1_IV_I:%.*]] = alloca i32, align 4 34035c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP0:%.*]] = call i32 @__kmpc_global_thread_num(ptr @[[GLOB2]]) 34045c93a94fSMichael Kruse // CHECK2-NEXT: store i32 7, ptr [[I]], align 4 34055c93a94fSMichael Kruse // CHECK2-NEXT: store i32 7, ptr [[J]], align 4 34065c93a94fSMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTOMP_LB]], align 4 34075c93a94fSMichael Kruse // CHECK2-NEXT: store i32 15, ptr [[DOTOMP_UB]], align 4 34085c93a94fSMichael Kruse // CHECK2-NEXT: store i32 1, ptr [[DOTOMP_STRIDE]], align 4 34095c93a94fSMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTOMP_IS_LAST]], align 4 34105c93a94fSMichael Kruse // CHECK2-NEXT: call void @__kmpc_for_static_init_4(ptr @[[GLOB1]], i32 [[TMP0]], i32 34, ptr [[DOTOMP_IS_LAST]], ptr [[DOTOMP_LB]], ptr [[DOTOMP_UB]], ptr [[DOTOMP_STRIDE]], i32 1, i32 1) 34115c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP1:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 34125c93a94fSMichael Kruse // CHECK2-NEXT: [[CMP:%.*]] = icmp sgt i32 [[TMP1]], 15 34135c93a94fSMichael Kruse // CHECK2-NEXT: br i1 [[CMP]], label [[COND_TRUE:%.*]], label [[COND_FALSE:%.*]] 34145c93a94fSMichael Kruse // CHECK2: cond.true: 34155c93a94fSMichael Kruse // CHECK2-NEXT: br label [[COND_END:%.*]] 34165c93a94fSMichael Kruse // CHECK2: cond.false: 34175c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP2:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 34185c93a94fSMichael Kruse // CHECK2-NEXT: br label [[COND_END]] 34195c93a94fSMichael Kruse // CHECK2: cond.end: 34205c93a94fSMichael Kruse // CHECK2-NEXT: [[COND:%.*]] = phi i32 [ 15, [[COND_TRUE]] ], [ [[TMP2]], [[COND_FALSE]] ] 34215c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[COND]], ptr [[DOTOMP_UB]], align 4 34225c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP3:%.*]] = load i32, ptr [[DOTOMP_LB]], align 4 34235c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[TMP3]], ptr [[DOTOMP_IV]], align 4 34245c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_COND:%.*]] 34255c93a94fSMichael Kruse // CHECK2: omp.inner.for.cond: 34265c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP4:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 34275c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP5:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 34285c93a94fSMichael Kruse // CHECK2-NEXT: [[CMP2:%.*]] = icmp sle i32 [[TMP4]], [[TMP5]] 34295c93a94fSMichael Kruse // CHECK2-NEXT: br i1 [[CMP2]], label [[OMP_INNER_FOR_BODY:%.*]], label [[OMP_INNER_FOR_END:%.*]] 34305c93a94fSMichael Kruse // CHECK2: omp.inner.for.body: 34315c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP6:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 34325c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV:%.*]] = sdiv i32 [[TMP6]], 4 34335c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL:%.*]] = mul nsw i32 [[DIV]], 3 34345c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD:%.*]] = add nsw i32 7, [[MUL]] 34355c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[ADD]], ptr [[K]], align 4 34365c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP7:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 34375c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP8:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 34385c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV3:%.*]] = sdiv i32 [[TMP8]], 4 34395c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL4:%.*]] = mul nsw i32 [[DIV3]], 4 34405c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB:%.*]] = sub nsw i32 [[TMP7]], [[MUL4]] 34415c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL5:%.*]] = mul nsw i32 [[SUB]], 1 34425c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD6:%.*]] = add nsw i32 0, [[MUL5]] 34435c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[ADD6]], ptr [[DOTPERMUTED_0_IV_J]], align 4 34445c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP9:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_J]], align 4 34455c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL7:%.*]] = mul nsw i32 [[TMP9]], 3 34465c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD8:%.*]] = add nsw i32 7, [[MUL7]] 34475c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[ADD8]], ptr [[J]], align 4 34485c93a94fSMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTPERMUTED_1_IV_I]], align 4 34495c93a94fSMichael Kruse // CHECK2-NEXT: br label [[FOR_COND:%.*]] 34505c93a94fSMichael Kruse // CHECK2: for.cond: 34515c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP10:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_I]], align 4 34525c93a94fSMichael Kruse // CHECK2-NEXT: [[CMP9:%.*]] = icmp slt i32 [[TMP10]], 4 34535c93a94fSMichael Kruse // CHECK2-NEXT: br i1 [[CMP9]], label [[FOR_BODY:%.*]], label [[FOR_END:%.*]] 34545c93a94fSMichael Kruse // CHECK2: for.body: 34555c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP11:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_I]], align 4 34565c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL10:%.*]] = mul nsw i32 [[TMP11]], 3 34575c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD11:%.*]] = add nsw i32 7, [[MUL10]] 34585c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[ADD11]], ptr [[I]], align 4 34595c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP12:%.*]] = load i32, ptr [[I]], align 4 34605c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP13:%.*]] = load i32, ptr [[J]], align 4 34615c93a94fSMichael Kruse // CHECK2-NEXT: call void (...) @body(i32 noundef [[TMP12]], i32 noundef [[TMP13]]) 34625c93a94fSMichael Kruse // CHECK2-NEXT: br label [[FOR_INC:%.*]] 34635c93a94fSMichael Kruse // CHECK2: for.inc: 34645c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP14:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_I]], align 4 34655c93a94fSMichael Kruse // CHECK2-NEXT: [[INC:%.*]] = add nsw i32 [[TMP14]], 1 34665c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[INC]], ptr [[DOTPERMUTED_1_IV_I]], align 4 3467*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_COND]], !llvm.loop [[LOOP8:![0-9]+]] 34685c93a94fSMichael Kruse // CHECK2: for.end: 34695c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_BODY_CONTINUE:%.*]] 34705c93a94fSMichael Kruse // CHECK2: omp.body.continue: 34715c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_INC:%.*]] 34725c93a94fSMichael Kruse // CHECK2: omp.inner.for.inc: 34735c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP15:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 34745c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD12:%.*]] = add nsw i32 [[TMP15]], 1 34755c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[ADD12]], ptr [[DOTOMP_IV]], align 4 34765c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_COND]] 34775c93a94fSMichael Kruse // CHECK2: omp.inner.for.end: 34785c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_LOOP_EXIT:%.*]] 34795c93a94fSMichael Kruse // CHECK2: omp.loop.exit: 34805c93a94fSMichael Kruse // CHECK2-NEXT: call void @__kmpc_for_static_fini(ptr @[[GLOB1]], i32 [[TMP0]]) 34815c93a94fSMichael Kruse // CHECK2-NEXT: call void @__kmpc_barrier(ptr @[[GLOB3]], i32 [[TMP0]]) 34825c93a94fSMichael Kruse // CHECK2-NEXT: ret void 34835c93a94fSMichael Kruse // 34845c93a94fSMichael Kruse // 3485*5b03efb8SMichael Kruse // CHECK2-LABEL: define {{[^@]+}}@foo5 3486*5b03efb8SMichael Kruse // CHECK2-SAME: () #[[ATTR0]] { 3487*5b03efb8SMichael Kruse // CHECK2-NEXT: entry: 3488*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTOMP_IV:%.*]] = alloca i32, align 4 3489*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP:%.*]] = alloca i32, align 4 3490*5b03efb8SMichael Kruse // CHECK2-NEXT: [[_TMP1:%.*]] = alloca i32, align 4 3491*5b03efb8SMichael Kruse // CHECK2-NEXT: [[_TMP2:%.*]] = alloca i32, align 4 3492*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTOMP_LB:%.*]] = alloca i32, align 4 3493*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTOMP_UB:%.*]] = alloca i32, align 4 3494*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTOMP_STRIDE:%.*]] = alloca i32, align 4 3495*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTOMP_IS_LAST:%.*]] = alloca i32, align 4 3496*5b03efb8SMichael Kruse // CHECK2-NEXT: [[I:%.*]] = alloca i32, align 4 3497*5b03efb8SMichael Kruse // CHECK2-NEXT: [[J:%.*]] = alloca i32, align 4 3498*5b03efb8SMichael Kruse // CHECK2-NEXT: [[K:%.*]] = alloca i32, align 4 3499*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP0:%.*]] = call i32 @__kmpc_global_thread_num(ptr @[[GLOB2]]) 3500*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTOMP_LB]], align 4 3501*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 63, ptr [[DOTOMP_UB]], align 4 3502*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 1, ptr [[DOTOMP_STRIDE]], align 4 3503*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTOMP_IS_LAST]], align 4 3504*5b03efb8SMichael Kruse // CHECK2-NEXT: call void @__kmpc_for_static_init_4(ptr @[[GLOB1]], i32 [[TMP0]], i32 34, ptr [[DOTOMP_IS_LAST]], ptr [[DOTOMP_LB]], ptr [[DOTOMP_UB]], ptr [[DOTOMP_STRIDE]], i32 1, i32 1) 3505*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP1:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 3506*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP:%.*]] = icmp sgt i32 [[TMP1]], 63 3507*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP]], label [[COND_TRUE:%.*]], label [[COND_FALSE:%.*]] 3508*5b03efb8SMichael Kruse // CHECK2: cond.true: 3509*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[COND_END:%.*]] 3510*5b03efb8SMichael Kruse // CHECK2: cond.false: 3511*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP2:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 3512*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[COND_END]] 3513*5b03efb8SMichael Kruse // CHECK2: cond.end: 3514*5b03efb8SMichael Kruse // CHECK2-NEXT: [[COND:%.*]] = phi i32 [ 63, [[COND_TRUE]] ], [ [[TMP2]], [[COND_FALSE]] ] 3515*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[COND]], ptr [[DOTOMP_UB]], align 4 3516*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP3:%.*]] = load i32, ptr [[DOTOMP_LB]], align 4 3517*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP3]], ptr [[DOTOMP_IV]], align 4 3518*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_COND:%.*]] 3519*5b03efb8SMichael Kruse // CHECK2: omp.inner.for.cond: 3520*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP4:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 3521*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP5:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 3522*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP3:%.*]] = icmp sle i32 [[TMP4]], [[TMP5]] 3523*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP3]], label [[OMP_INNER_FOR_BODY:%.*]], label [[OMP_INNER_FOR_END:%.*]] 3524*5b03efb8SMichael Kruse // CHECK2: omp.inner.for.body: 3525*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP6:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 3526*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV:%.*]] = sdiv i32 [[TMP6]], 16 3527*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL:%.*]] = mul nsw i32 [[DIV]], 3 3528*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD:%.*]] = add nsw i32 7, [[MUL]] 3529*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[ADD]], ptr [[I]], align 4 3530*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP7:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 3531*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP8:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 3532*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV4:%.*]] = sdiv i32 [[TMP8]], 16 3533*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL5:%.*]] = mul nsw i32 [[DIV4]], 16 3534*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB:%.*]] = sub nsw i32 [[TMP7]], [[MUL5]] 3535*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV6:%.*]] = sdiv i32 [[SUB]], 4 3536*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL7:%.*]] = mul nsw i32 [[DIV6]], 3 3537*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD8:%.*]] = add nsw i32 7, [[MUL7]] 3538*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[ADD8]], ptr [[J]], align 4 3539*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP9:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 3540*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP10:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 3541*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV9:%.*]] = sdiv i32 [[TMP10]], 16 3542*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL10:%.*]] = mul nsw i32 [[DIV9]], 16 3543*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB11:%.*]] = sub nsw i32 [[TMP9]], [[MUL10]] 3544*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP11:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 3545*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP12:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 3546*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV12:%.*]] = sdiv i32 [[TMP12]], 16 3547*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL13:%.*]] = mul nsw i32 [[DIV12]], 16 3548*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB14:%.*]] = sub nsw i32 [[TMP11]], [[MUL13]] 3549*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV15:%.*]] = sdiv i32 [[SUB14]], 4 3550*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL16:%.*]] = mul nsw i32 [[DIV15]], 4 3551*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB17:%.*]] = sub nsw i32 [[SUB11]], [[MUL16]] 3552*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL18:%.*]] = mul nsw i32 [[SUB17]], 3 3553*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD19:%.*]] = add nsw i32 7, [[MUL18]] 3554*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[ADD19]], ptr [[K]], align 4 3555*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP13:%.*]] = load i32, ptr [[I]], align 4 3556*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP14:%.*]] = load i32, ptr [[J]], align 4 3557*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP15:%.*]] = load i32, ptr [[K]], align 4 3558*5b03efb8SMichael Kruse // CHECK2-NEXT: call void (...) @body(i32 noundef [[TMP13]], i32 noundef [[TMP14]], i32 noundef [[TMP15]]) 3559*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[OMP_BODY_CONTINUE:%.*]] 3560*5b03efb8SMichael Kruse // CHECK2: omp.body.continue: 3561*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_INC:%.*]] 3562*5b03efb8SMichael Kruse // CHECK2: omp.inner.for.inc: 3563*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP16:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 3564*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD20:%.*]] = add nsw i32 [[TMP16]], 1 3565*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[ADD20]], ptr [[DOTOMP_IV]], align 4 3566*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_COND]] 3567*5b03efb8SMichael Kruse // CHECK2: omp.inner.for.end: 3568*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[OMP_LOOP_EXIT:%.*]] 3569*5b03efb8SMichael Kruse // CHECK2: omp.loop.exit: 3570*5b03efb8SMichael Kruse // CHECK2-NEXT: call void @__kmpc_for_static_fini(ptr @[[GLOB1]], i32 [[TMP0]]) 3571*5b03efb8SMichael Kruse // CHECK2-NEXT: call void @__kmpc_barrier(ptr @[[GLOB3]], i32 [[TMP0]]) 3572*5b03efb8SMichael Kruse // CHECK2-NEXT: ret void 3573*5b03efb8SMichael Kruse // 3574*5b03efb8SMichael Kruse // 35755c93a94fSMichael Kruse // CHECK2-LABEL: define {{[^@]+}}@foo6 35765c93a94fSMichael Kruse // CHECK2-SAME: () #[[ATTR0]] { 35775c93a94fSMichael Kruse // CHECK2-NEXT: entry: 35785c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_IV:%.*]] = alloca i32, align 4 35795c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP:%.*]] = alloca i32, align 4 35805c93a94fSMichael Kruse // CHECK2-NEXT: [[_TMP1:%.*]] = alloca i32, align 4 35815c93a94fSMichael Kruse // CHECK2-NEXT: [[_TMP2:%.*]] = alloca i32, align 4 35825c93a94fSMichael Kruse // CHECK2-NEXT: [[_TMP3:%.*]] = alloca i32, align 4 35835c93a94fSMichael Kruse // CHECK2-NEXT: [[J:%.*]] = alloca i32, align 4 35845c93a94fSMichael Kruse // CHECK2-NEXT: [[K:%.*]] = alloca i32, align 4 35855c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_LB:%.*]] = alloca i32, align 4 35865c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_UB:%.*]] = alloca i32, align 4 35875c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_STRIDE:%.*]] = alloca i32, align 4 35885c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTOMP_IS_LAST:%.*]] = alloca i32, align 4 35895c93a94fSMichael Kruse // CHECK2-NEXT: [[I:%.*]] = alloca i32, align 4 35905c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTPERMUTED_0_IV_K:%.*]] = alloca i32, align 4 35915c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTPERMUTED_1_IV_J:%.*]] = alloca i32, align 4 35925c93a94fSMichael Kruse // CHECK2-NEXT: [[L:%.*]] = alloca i32, align 4 35935c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP0:%.*]] = call i32 @__kmpc_global_thread_num(ptr @[[GLOB2]]) 35945c93a94fSMichael Kruse // CHECK2-NEXT: store i32 7, ptr [[J]], align 4 35955c93a94fSMichael Kruse // CHECK2-NEXT: store i32 7, ptr [[K]], align 4 35965c93a94fSMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTOMP_LB]], align 4 35975c93a94fSMichael Kruse // CHECK2-NEXT: store i32 255, ptr [[DOTOMP_UB]], align 4 35985c93a94fSMichael Kruse // CHECK2-NEXT: store i32 1, ptr [[DOTOMP_STRIDE]], align 4 35995c93a94fSMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTOMP_IS_LAST]], align 4 36005c93a94fSMichael Kruse // CHECK2-NEXT: call void @__kmpc_for_static_init_4(ptr @[[GLOB1]], i32 [[TMP0]], i32 34, ptr [[DOTOMP_IS_LAST]], ptr [[DOTOMP_LB]], ptr [[DOTOMP_UB]], ptr [[DOTOMP_STRIDE]], i32 1, i32 1) 36015c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP1:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 36025c93a94fSMichael Kruse // CHECK2-NEXT: [[CMP:%.*]] = icmp sgt i32 [[TMP1]], 255 36035c93a94fSMichael Kruse // CHECK2-NEXT: br i1 [[CMP]], label [[COND_TRUE:%.*]], label [[COND_FALSE:%.*]] 36045c93a94fSMichael Kruse // CHECK2: cond.true: 36055c93a94fSMichael Kruse // CHECK2-NEXT: br label [[COND_END:%.*]] 36065c93a94fSMichael Kruse // CHECK2: cond.false: 36075c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP2:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 36085c93a94fSMichael Kruse // CHECK2-NEXT: br label [[COND_END]] 36095c93a94fSMichael Kruse // CHECK2: cond.end: 36105c93a94fSMichael Kruse // CHECK2-NEXT: [[COND:%.*]] = phi i32 [ 255, [[COND_TRUE]] ], [ [[TMP2]], [[COND_FALSE]] ] 36115c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[COND]], ptr [[DOTOMP_UB]], align 4 36125c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP3:%.*]] = load i32, ptr [[DOTOMP_LB]], align 4 36135c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[TMP3]], ptr [[DOTOMP_IV]], align 4 36145c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_COND:%.*]] 36155c93a94fSMichael Kruse // CHECK2: omp.inner.for.cond: 36165c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP4:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 36175c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP5:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4 36185c93a94fSMichael Kruse // CHECK2-NEXT: [[CMP4:%.*]] = icmp sle i32 [[TMP4]], [[TMP5]] 36195c93a94fSMichael Kruse // CHECK2-NEXT: br i1 [[CMP4]], label [[OMP_INNER_FOR_BODY:%.*]], label [[OMP_INNER_FOR_END:%.*]] 36205c93a94fSMichael Kruse // CHECK2: omp.inner.for.body: 36215c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP6:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 36225c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV:%.*]] = sdiv i32 [[TMP6]], 64 36235c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL:%.*]] = mul nsw i32 [[DIV]], 3 36245c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD:%.*]] = add nsw i32 7, [[MUL]] 36255c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[ADD]], ptr [[I]], align 4 36265c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP7:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 36275c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP8:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 36285c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV5:%.*]] = sdiv i32 [[TMP8]], 64 36295c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL6:%.*]] = mul nsw i32 [[DIV5]], 64 36305c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB:%.*]] = sub nsw i32 [[TMP7]], [[MUL6]] 36315c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV7:%.*]] = sdiv i32 [[SUB]], 16 36325c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL8:%.*]] = mul nsw i32 [[DIV7]], 1 36335c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD9:%.*]] = add nsw i32 0, [[MUL8]] 36345c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[ADD9]], ptr [[DOTPERMUTED_0_IV_K]], align 4 36355c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP9:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 36365c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP10:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 36375c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV10:%.*]] = sdiv i32 [[TMP10]], 64 36385c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL11:%.*]] = mul nsw i32 [[DIV10]], 64 36395c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB12:%.*]] = sub nsw i32 [[TMP9]], [[MUL11]] 36405c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP11:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 36415c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP12:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 36425c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV13:%.*]] = sdiv i32 [[TMP12]], 64 36435c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL14:%.*]] = mul nsw i32 [[DIV13]], 64 36445c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB15:%.*]] = sub nsw i32 [[TMP11]], [[MUL14]] 36455c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV16:%.*]] = sdiv i32 [[SUB15]], 16 36465c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL17:%.*]] = mul nsw i32 [[DIV16]], 16 36475c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB18:%.*]] = sub nsw i32 [[SUB12]], [[MUL17]] 36485c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV19:%.*]] = sdiv i32 [[SUB18]], 4 36495c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL20:%.*]] = mul nsw i32 [[DIV19]], 1 36505c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD21:%.*]] = add nsw i32 0, [[MUL20]] 36515c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[ADD21]], ptr [[DOTPERMUTED_1_IV_J]], align 4 36525c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP13:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 36535c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP14:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 36545c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV22:%.*]] = sdiv i32 [[TMP14]], 64 36555c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL23:%.*]] = mul nsw i32 [[DIV22]], 64 36565c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB24:%.*]] = sub nsw i32 [[TMP13]], [[MUL23]] 36575c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP15:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 36585c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP16:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 36595c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV25:%.*]] = sdiv i32 [[TMP16]], 64 36605c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL26:%.*]] = mul nsw i32 [[DIV25]], 64 36615c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB27:%.*]] = sub nsw i32 [[TMP15]], [[MUL26]] 36625c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV28:%.*]] = sdiv i32 [[SUB27]], 16 36635c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL29:%.*]] = mul nsw i32 [[DIV28]], 16 36645c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB30:%.*]] = sub nsw i32 [[SUB24]], [[MUL29]] 36655c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP17:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 36665c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP18:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 36675c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV31:%.*]] = sdiv i32 [[TMP18]], 64 36685c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL32:%.*]] = mul nsw i32 [[DIV31]], 64 36695c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB33:%.*]] = sub nsw i32 [[TMP17]], [[MUL32]] 36705c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP19:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 36715c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP20:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 36725c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV34:%.*]] = sdiv i32 [[TMP20]], 64 36735c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL35:%.*]] = mul nsw i32 [[DIV34]], 64 36745c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB36:%.*]] = sub nsw i32 [[TMP19]], [[MUL35]] 36755c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV37:%.*]] = sdiv i32 [[SUB36]], 16 36765c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL38:%.*]] = mul nsw i32 [[DIV37]], 16 36775c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB39:%.*]] = sub nsw i32 [[SUB33]], [[MUL38]] 36785c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV40:%.*]] = sdiv i32 [[SUB39]], 4 36795c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL41:%.*]] = mul nsw i32 [[DIV40]], 4 36805c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB42:%.*]] = sub nsw i32 [[SUB30]], [[MUL41]] 36815c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL43:%.*]] = mul nsw i32 [[SUB42]], 3 36825c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD44:%.*]] = add nsw i32 7, [[MUL43]] 36835c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[ADD44]], ptr [[L]], align 4 36845c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP21:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_K]], align 4 36855c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL45:%.*]] = mul nsw i32 [[TMP21]], 3 36865c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD46:%.*]] = add nsw i32 7, [[MUL45]] 36875c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[ADD46]], ptr [[K]], align 4 36885c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP22:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_J]], align 4 36895c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL47:%.*]] = mul nsw i32 [[TMP22]], 3 36905c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD48:%.*]] = add nsw i32 7, [[MUL47]] 36915c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[ADD48]], ptr [[J]], align 4 36925c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP23:%.*]] = load i32, ptr [[I]], align 4 36935c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP24:%.*]] = load i32, ptr [[J]], align 4 36945c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP25:%.*]] = load i32, ptr [[K]], align 4 36955c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP26:%.*]] = load i32, ptr [[L]], align 4 36965c93a94fSMichael Kruse // CHECK2-NEXT: call void (...) @body(i32 noundef [[TMP23]], i32 noundef [[TMP24]], i32 noundef [[TMP25]], i32 noundef [[TMP26]]) 36975c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_BODY_CONTINUE:%.*]] 36985c93a94fSMichael Kruse // CHECK2: omp.body.continue: 36995c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_INC:%.*]] 37005c93a94fSMichael Kruse // CHECK2: omp.inner.for.inc: 37015c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP27:%.*]] = load i32, ptr [[DOTOMP_IV]], align 4 37025c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD49:%.*]] = add nsw i32 [[TMP27]], 1 37035c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[ADD49]], ptr [[DOTOMP_IV]], align 4 37045c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_COND]] 37055c93a94fSMichael Kruse // CHECK2: omp.inner.for.end: 37065c93a94fSMichael Kruse // CHECK2-NEXT: br label [[OMP_LOOP_EXIT:%.*]] 37075c93a94fSMichael Kruse // CHECK2: omp.loop.exit: 37085c93a94fSMichael Kruse // CHECK2-NEXT: call void @__kmpc_for_static_fini(ptr @[[GLOB1]], i32 [[TMP0]]) 37095c93a94fSMichael Kruse // CHECK2-NEXT: call void @__kmpc_barrier(ptr @[[GLOB3]], i32 [[TMP0]]) 37105c93a94fSMichael Kruse // CHECK2-NEXT: ret void 37115c93a94fSMichael Kruse // 37125c93a94fSMichael Kruse // 3713*5b03efb8SMichael Kruse // CHECK2-LABEL: define {{[^@]+}}@foo7 3714*5b03efb8SMichael Kruse // CHECK2-SAME: () #[[ATTR0]] { 3715*5b03efb8SMichael Kruse // CHECK2-NEXT: entry: 3716*5b03efb8SMichael Kruse // CHECK2-NEXT: [[I:%.*]] = alloca i32, align 4 3717*5b03efb8SMichael Kruse // CHECK2-NEXT: [[J:%.*]] = alloca i32, align 4 3718*5b03efb8SMichael Kruse // CHECK2-NEXT: [[K:%.*]] = alloca i32, align 4 3719*5b03efb8SMichael Kruse // CHECK2-NEXT: [[L:%.*]] = alloca i32, align 4 3720*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTPERMUTED_0_IV_J:%.*]] = alloca i32, align 4 3721*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTPERMUTED_1_IV_K:%.*]] = alloca i32, align 4 3722*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTPERMUTED_2_IV_L:%.*]] = alloca i32, align 4 3723*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTPERMUTED_3_IV_I:%.*]] = alloca i32, align 4 3724*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 7, ptr [[I]], align 4 3725*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 7, ptr [[J]], align 4 3726*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 7, ptr [[K]], align 4 3727*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 7, ptr [[L]], align 4 3728*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTPERMUTED_0_IV_J]], align 4 3729*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_COND:%.*]] 3730*5b03efb8SMichael Kruse // CHECK2: for.cond: 3731*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP0:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_J]], align 4 3732*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP:%.*]] = icmp slt i32 [[TMP0]], 4 3733*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP]], label [[FOR_BODY:%.*]], label [[FOR_END24:%.*]] 3734*5b03efb8SMichael Kruse // CHECK2: for.body: 3735*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP1:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_J]], align 4 3736*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL:%.*]] = mul nsw i32 [[TMP1]], 3 3737*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD:%.*]] = add nsw i32 7, [[MUL]] 3738*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[ADD]], ptr [[J]], align 4 3739*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTPERMUTED_1_IV_K]], align 4 3740*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_COND1:%.*]] 3741*5b03efb8SMichael Kruse // CHECK2: for.cond1: 3742*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP2:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_K]], align 4 3743*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP2:%.*]] = icmp slt i32 [[TMP2]], 4 3744*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP2]], label [[FOR_BODY3:%.*]], label [[FOR_END21:%.*]] 3745*5b03efb8SMichael Kruse // CHECK2: for.body3: 3746*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP3:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_K]], align 4 3747*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL4:%.*]] = mul nsw i32 [[TMP3]], 3 3748*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD5:%.*]] = add nsw i32 7, [[MUL4]] 3749*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[ADD5]], ptr [[K]], align 4 3750*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTPERMUTED_2_IV_L]], align 4 3751*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_COND6:%.*]] 3752*5b03efb8SMichael Kruse // CHECK2: for.cond6: 3753*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP4:%.*]] = load i32, ptr [[DOTPERMUTED_2_IV_L]], align 4 3754*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP7:%.*]] = icmp slt i32 [[TMP4]], 4 3755*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP7]], label [[FOR_BODY8:%.*]], label [[FOR_END18:%.*]] 3756*5b03efb8SMichael Kruse // CHECK2: for.body8: 3757*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP5:%.*]] = load i32, ptr [[DOTPERMUTED_2_IV_L]], align 4 3758*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL9:%.*]] = mul nsw i32 [[TMP5]], 3 3759*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD10:%.*]] = add nsw i32 7, [[MUL9]] 3760*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[ADD10]], ptr [[L]], align 4 3761*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTPERMUTED_3_IV_I]], align 4 3762*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_COND11:%.*]] 3763*5b03efb8SMichael Kruse // CHECK2: for.cond11: 3764*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP6:%.*]] = load i32, ptr [[DOTPERMUTED_3_IV_I]], align 4 3765*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP12:%.*]] = icmp slt i32 [[TMP6]], 4 3766*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP12]], label [[FOR_BODY13:%.*]], label [[FOR_END:%.*]] 3767*5b03efb8SMichael Kruse // CHECK2: for.body13: 3768*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP7:%.*]] = load i32, ptr [[DOTPERMUTED_3_IV_I]], align 4 3769*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL14:%.*]] = mul nsw i32 [[TMP7]], 3 3770*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD15:%.*]] = add nsw i32 7, [[MUL14]] 3771*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[ADD15]], ptr [[I]], align 4 3772*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP8:%.*]] = load i32, ptr [[I]], align 4 3773*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP9:%.*]] = load i32, ptr [[J]], align 4 3774*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP10:%.*]] = load i32, ptr [[K]], align 4 3775*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP11:%.*]] = load i32, ptr [[L]], align 4 3776*5b03efb8SMichael Kruse // CHECK2-NEXT: call void (...) @body(i32 noundef [[TMP8]], i32 noundef [[TMP9]], i32 noundef [[TMP10]], i32 noundef [[TMP11]]) 3777*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_INC:%.*]] 3778*5b03efb8SMichael Kruse // CHECK2: for.inc: 3779*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP12:%.*]] = load i32, ptr [[DOTPERMUTED_3_IV_I]], align 4 3780*5b03efb8SMichael Kruse // CHECK2-NEXT: [[INC:%.*]] = add nsw i32 [[TMP12]], 1 3781*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[INC]], ptr [[DOTPERMUTED_3_IV_I]], align 4 3782*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_COND11]], !llvm.loop [[LOOP9:![0-9]+]] 3783*5b03efb8SMichael Kruse // CHECK2: for.end: 3784*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_INC16:%.*]] 3785*5b03efb8SMichael Kruse // CHECK2: for.inc16: 3786*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP13:%.*]] = load i32, ptr [[DOTPERMUTED_2_IV_L]], align 4 3787*5b03efb8SMichael Kruse // CHECK2-NEXT: [[INC17:%.*]] = add nsw i32 [[TMP13]], 1 3788*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[INC17]], ptr [[DOTPERMUTED_2_IV_L]], align 4 3789*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_COND6]], !llvm.loop [[LOOP10:![0-9]+]] 3790*5b03efb8SMichael Kruse // CHECK2: for.end18: 3791*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_INC19:%.*]] 3792*5b03efb8SMichael Kruse // CHECK2: for.inc19: 3793*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP14:%.*]] = load i32, ptr [[DOTPERMUTED_1_IV_K]], align 4 3794*5b03efb8SMichael Kruse // CHECK2-NEXT: [[INC20:%.*]] = add nsw i32 [[TMP14]], 1 3795*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[INC20]], ptr [[DOTPERMUTED_1_IV_K]], align 4 3796*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_COND1]], !llvm.loop [[LOOP11:![0-9]+]] 3797*5b03efb8SMichael Kruse // CHECK2: for.end21: 3798*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_INC22:%.*]] 3799*5b03efb8SMichael Kruse // CHECK2: for.inc22: 3800*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP15:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_J]], align 4 3801*5b03efb8SMichael Kruse // CHECK2-NEXT: [[INC23:%.*]] = add nsw i32 [[TMP15]], 1 3802*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[INC23]], ptr [[DOTPERMUTED_0_IV_J]], align 4 3803*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_COND]], !llvm.loop [[LOOP12:![0-9]+]] 3804*5b03efb8SMichael Kruse // CHECK2: for.end24: 3805*5b03efb8SMichael Kruse // CHECK2-NEXT: ret void 3806*5b03efb8SMichael Kruse // 3807*5b03efb8SMichael Kruse // 38085c93a94fSMichael Kruse // CHECK2-LABEL: define {{[^@]+}}@foo9 38095c93a94fSMichael Kruse // CHECK2-SAME: () #[[ATTR0]] { 38105c93a94fSMichael Kruse // CHECK2-NEXT: entry: 38115c93a94fSMichael Kruse // CHECK2-NEXT: [[ARR:%.*]] = alloca [128 x double], align 16 38125c93a94fSMichael Kruse // CHECK2-NEXT: [[C:%.*]] = alloca double, align 8 38135c93a94fSMichael Kruse // CHECK2-NEXT: [[__RANGE2:%.*]] = alloca ptr, align 8 38145c93a94fSMichael Kruse // CHECK2-NEXT: [[__END2:%.*]] = alloca ptr, align 8 38155c93a94fSMichael Kruse // CHECK2-NEXT: [[__BEGIN2:%.*]] = alloca ptr, align 8 38165c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_:%.*]] = alloca ptr, align 8 38175c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_3:%.*]] = alloca ptr, align 8 38185c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_4:%.*]] = alloca i64, align 8 38195c93a94fSMichael Kruse // CHECK2-NEXT: [[I:%.*]] = alloca i32, align 4 38205c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTPERMUTED_0_IV_I:%.*]] = alloca i32, align 4 38215c93a94fSMichael Kruse // CHECK2-NEXT: [[DOTPERMUTED_1_IV___BEGIN2:%.*]] = alloca i64, align 8 38225c93a94fSMichael Kruse // CHECK2-NEXT: [[V:%.*]] = alloca ptr, align 8 38235c93a94fSMichael Kruse // CHECK2-NEXT: store double 4.200000e+01, ptr [[C]], align 8 38245c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[ARR]], ptr [[__RANGE2]], align 8 38255c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP0:%.*]] = load ptr, ptr [[__RANGE2]], align 8 38265c93a94fSMichael Kruse // CHECK2-NEXT: [[ARRAYDECAY:%.*]] = getelementptr inbounds [128 x double], ptr [[TMP0]], i64 0, i64 0 38275c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD_PTR:%.*]] = getelementptr inbounds double, ptr [[ARRAYDECAY]], i64 128 38285c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[ADD_PTR]], ptr [[__END2]], align 8 38295c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP1:%.*]] = load ptr, ptr [[__RANGE2]], align 8 38305c93a94fSMichael Kruse // CHECK2-NEXT: [[ARRAYDECAY1:%.*]] = getelementptr inbounds [128 x double], ptr [[TMP1]], i64 0, i64 0 38315c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[ARRAYDECAY1]], ptr [[__BEGIN2]], align 8 38325c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP2:%.*]] = load ptr, ptr [[__RANGE2]], align 8 38335c93a94fSMichael Kruse // CHECK2-NEXT: [[ARRAYDECAY2:%.*]] = getelementptr inbounds [128 x double], ptr [[TMP2]], i64 0, i64 0 38345c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[ARRAYDECAY2]], ptr [[DOTCAPTURE_EXPR_]], align 8 38355c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP3:%.*]] = load ptr, ptr [[__END2]], align 8 38365c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[TMP3]], ptr [[DOTCAPTURE_EXPR_3]], align 8 38375c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP4:%.*]] = load ptr, ptr [[DOTCAPTURE_EXPR_3]], align 8 38385c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP5:%.*]] = load ptr, ptr [[DOTCAPTURE_EXPR_]], align 8 38395c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB_PTR_LHS_CAST:%.*]] = ptrtoint ptr [[TMP4]] to i64 38405c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB_PTR_RHS_CAST:%.*]] = ptrtoint ptr [[TMP5]] to i64 38415c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB_PTR_SUB:%.*]] = sub i64 [[SUB_PTR_LHS_CAST]], [[SUB_PTR_RHS_CAST]] 38425c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB_PTR_DIV:%.*]] = sdiv exact i64 [[SUB_PTR_SUB]], 8 38435c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB:%.*]] = sub nsw i64 [[SUB_PTR_DIV]], 1 38445c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD:%.*]] = add nsw i64 [[SUB]], 1 38455c93a94fSMichael Kruse // CHECK2-NEXT: [[DIV:%.*]] = sdiv i64 [[ADD]], 1 38465c93a94fSMichael Kruse // CHECK2-NEXT: [[SUB5:%.*]] = sub nsw i64 [[DIV]], 1 38475c93a94fSMichael Kruse // CHECK2-NEXT: store i64 [[SUB5]], ptr [[DOTCAPTURE_EXPR_4]], align 8 38485c93a94fSMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[I]], align 4 38495c93a94fSMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTPERMUTED_0_IV_I]], align 4 38505c93a94fSMichael Kruse // CHECK2-NEXT: br label [[FOR_COND:%.*]] 38515c93a94fSMichael Kruse // CHECK2: for.cond: 38525c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP6:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_I]], align 4 38535c93a94fSMichael Kruse // CHECK2-NEXT: [[CMP:%.*]] = icmp slt i32 [[TMP6]], 21 38545c93a94fSMichael Kruse // CHECK2-NEXT: br i1 [[CMP]], label [[FOR_BODY:%.*]], label [[FOR_END15:%.*]] 38555c93a94fSMichael Kruse // CHECK2: for.body: 38565c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP7:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_I]], align 4 38575c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL:%.*]] = mul nsw i32 [[TMP7]], 2 38585c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD6:%.*]] = add nsw i32 0, [[MUL]] 38595c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[ADD6]], ptr [[I]], align 4 38605c93a94fSMichael Kruse // CHECK2-NEXT: store i64 0, ptr [[DOTPERMUTED_1_IV___BEGIN2]], align 8 38615c93a94fSMichael Kruse // CHECK2-NEXT: br label [[FOR_COND7:%.*]] 38625c93a94fSMichael Kruse // CHECK2: for.cond7: 38635c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP8:%.*]] = load i64, ptr [[DOTPERMUTED_1_IV___BEGIN2]], align 8 38645c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP9:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_4]], align 8 38655c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD8:%.*]] = add nsw i64 [[TMP9]], 1 38665c93a94fSMichael Kruse // CHECK2-NEXT: [[CMP9:%.*]] = icmp slt i64 [[TMP8]], [[ADD8]] 38675c93a94fSMichael Kruse // CHECK2-NEXT: br i1 [[CMP9]], label [[FOR_BODY10:%.*]], label [[FOR_END:%.*]] 38685c93a94fSMichael Kruse // CHECK2: for.body10: 38695c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP10:%.*]] = load ptr, ptr [[DOTCAPTURE_EXPR_]], align 8 38705c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP11:%.*]] = load i64, ptr [[DOTPERMUTED_1_IV___BEGIN2]], align 8 38715c93a94fSMichael Kruse // CHECK2-NEXT: [[MUL11:%.*]] = mul nsw i64 [[TMP11]], 1 38725c93a94fSMichael Kruse // CHECK2-NEXT: [[ADD_PTR12:%.*]] = getelementptr inbounds double, ptr [[TMP10]], i64 [[MUL11]] 38735c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[ADD_PTR12]], ptr [[__BEGIN2]], align 8 38745c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP12:%.*]] = load ptr, ptr [[__BEGIN2]], align 8 38755c93a94fSMichael Kruse // CHECK2-NEXT: store ptr [[TMP12]], ptr [[V]], align 8 38765c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP13:%.*]] = load double, ptr [[C]], align 8 38775c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP14:%.*]] = load ptr, ptr [[V]], align 8 38785c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP15:%.*]] = load double, ptr [[TMP14]], align 8 38795c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP16:%.*]] = load i32, ptr [[I]], align 4 38805c93a94fSMichael Kruse // CHECK2-NEXT: call void (...) @body(double noundef [[TMP13]], double noundef [[TMP15]], i32 noundef [[TMP16]]) 38815c93a94fSMichael Kruse // CHECK2-NEXT: br label [[FOR_INC:%.*]] 38825c93a94fSMichael Kruse // CHECK2: for.inc: 38835c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP17:%.*]] = load i64, ptr [[DOTPERMUTED_1_IV___BEGIN2]], align 8 38845c93a94fSMichael Kruse // CHECK2-NEXT: [[INC:%.*]] = add nsw i64 [[TMP17]], 1 38855c93a94fSMichael Kruse // CHECK2-NEXT: store i64 [[INC]], ptr [[DOTPERMUTED_1_IV___BEGIN2]], align 8 3886*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_COND7]], !llvm.loop [[LOOP13:![0-9]+]] 38875c93a94fSMichael Kruse // CHECK2: for.end: 38885c93a94fSMichael Kruse // CHECK2-NEXT: br label [[FOR_INC13:%.*]] 38895c93a94fSMichael Kruse // CHECK2: for.inc13: 38905c93a94fSMichael Kruse // CHECK2-NEXT: [[TMP18:%.*]] = load i32, ptr [[DOTPERMUTED_0_IV_I]], align 4 38915c93a94fSMichael Kruse // CHECK2-NEXT: [[INC14:%.*]] = add nsw i32 [[TMP18]], 1 38925c93a94fSMichael Kruse // CHECK2-NEXT: store i32 [[INC14]], ptr [[DOTPERMUTED_0_IV_I]], align 4 3893*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[FOR_COND]], !llvm.loop [[LOOP14:![0-9]+]] 38945c93a94fSMichael Kruse // CHECK2: for.end15: 38955c93a94fSMichael Kruse // CHECK2-NEXT: ret void 38965c93a94fSMichael Kruse // 3897*5b03efb8SMichael Kruse // 3898*5b03efb8SMichael Kruse // CHECK2-LABEL: define {{[^@]+}}@tfoo8 3899*5b03efb8SMichael Kruse // CHECK2-SAME: () #[[ATTR0]] { 3900*5b03efb8SMichael Kruse // CHECK2-NEXT: entry: 3901*5b03efb8SMichael Kruse // CHECK2-NEXT: call void @_Z4foo8ILi32EEviii(i32 noundef 0, i32 noundef 42, i32 noundef 1) 3902*5b03efb8SMichael Kruse // CHECK2-NEXT: call void @_Z4foo8ILi64EEviii(i32 noundef 0, i32 noundef 42, i32 noundef 3) 3903*5b03efb8SMichael Kruse // CHECK2-NEXT: ret void 3904*5b03efb8SMichael Kruse // 3905*5b03efb8SMichael Kruse // 3906*5b03efb8SMichael Kruse // CHECK2-LABEL: define {{[^@]+}}@_Z4foo8ILi32EEviii 3907*5b03efb8SMichael Kruse // CHECK2-SAME: (i32 noundef [[START:%.*]], i32 noundef [[END:%.*]], i32 noundef [[STEP:%.*]]) #[[ATTR0]] comdat { 3908*5b03efb8SMichael Kruse // CHECK2-NEXT: entry: 3909*5b03efb8SMichael Kruse // CHECK2-NEXT: [[START_ADDR:%.*]] = alloca i32, align 4 3910*5b03efb8SMichael Kruse // CHECK2-NEXT: [[END_ADDR:%.*]] = alloca i32, align 4 3911*5b03efb8SMichael Kruse // CHECK2-NEXT: [[STEP_ADDR:%.*]] = alloca i32, align 4 3912*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTOMP_IV:%.*]] = alloca i64, align 8 3913*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP:%.*]] = alloca i32, align 4 3914*5b03efb8SMichael Kruse // CHECK2-NEXT: [[_TMP1:%.*]] = alloca i32, align 4 3915*5b03efb8SMichael Kruse // CHECK2-NEXT: [[_TMP2:%.*]] = alloca i32, align 4 3916*5b03efb8SMichael Kruse // CHECK2-NEXT: [[_TMP3:%.*]] = alloca i32, align 4 3917*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_:%.*]] = alloca i32, align 4 3918*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_4:%.*]] = alloca i32, align 4 3919*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTNEW_STEP:%.*]] = alloca i32, align 4 3920*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_5:%.*]] = alloca i32, align 4 3921*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_6:%.*]] = alloca i32, align 4 3922*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTNEW_STEP7:%.*]] = alloca i32, align 4 3923*5b03efb8SMichael Kruse // CHECK2-NEXT: [[K:%.*]] = alloca i32, align 4 3924*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_8:%.*]] = alloca i32, align 4 3925*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_9:%.*]] = alloca i32, align 4 3926*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTNEW_STEP10:%.*]] = alloca i32, align 4 3927*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_11:%.*]] = alloca i32, align 4 3928*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_14:%.*]] = alloca i32, align 4 3929*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_16:%.*]] = alloca i32, align 4 3930*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_17:%.*]] = alloca i32, align 4 3931*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_22:%.*]] = alloca i64, align 8 3932*5b03efb8SMichael Kruse // CHECK2-NEXT: [[I:%.*]] = alloca i32, align 4 3933*5b03efb8SMichael Kruse // CHECK2-NEXT: [[J:%.*]] = alloca i32, align 4 3934*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTFLOOR_0_IV_K:%.*]] = alloca i32, align 4 3935*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTTILE_0_IV_K:%.*]] = alloca i32, align 4 3936*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTOMP_LB:%.*]] = alloca i64, align 8 3937*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTOMP_UB:%.*]] = alloca i64, align 8 3938*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTOMP_STRIDE:%.*]] = alloca i64, align 8 3939*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTOMP_IS_LAST:%.*]] = alloca i32, align 4 3940*5b03efb8SMichael Kruse // CHECK2-NEXT: [[I49:%.*]] = alloca i32, align 4 3941*5b03efb8SMichael Kruse // CHECK2-NEXT: [[J50:%.*]] = alloca i32, align 4 3942*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTFLOOR_0_IV_K51:%.*]] = alloca i32, align 4 3943*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTTILE_0_IV_K52:%.*]] = alloca i32, align 4 3944*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP0:%.*]] = call i32 @__kmpc_global_thread_num(ptr @[[GLOB2]]) 3945*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[START]], ptr [[START_ADDR]], align 4 3946*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[END]], ptr [[END_ADDR]], align 4 3947*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[STEP]], ptr [[STEP_ADDR]], align 4 3948*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP1:%.*]] = load i32, ptr [[START_ADDR]], align 4 3949*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP1]], ptr [[DOTCAPTURE_EXPR_]], align 4 3950*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP2:%.*]] = load i32, ptr [[END_ADDR]], align 4 3951*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP2]], ptr [[DOTCAPTURE_EXPR_4]], align 4 3952*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP3:%.*]] = load i32, ptr [[STEP_ADDR]], align 4 3953*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP3]], ptr [[DOTNEW_STEP]], align 4 3954*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP4:%.*]] = load i32, ptr [[START_ADDR]], align 4 3955*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP4]], ptr [[DOTCAPTURE_EXPR_5]], align 4 3956*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP5:%.*]] = load i32, ptr [[END_ADDR]], align 4 3957*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP5]], ptr [[DOTCAPTURE_EXPR_6]], align 4 3958*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP6:%.*]] = load i32, ptr [[STEP_ADDR]], align 4 3959*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP6]], ptr [[DOTNEW_STEP7]], align 4 3960*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP7:%.*]] = load i32, ptr [[START_ADDR]], align 4 3961*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP7]], ptr [[K]], align 4 3962*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP8:%.*]] = load i32, ptr [[START_ADDR]], align 4 3963*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP8]], ptr [[DOTCAPTURE_EXPR_8]], align 4 3964*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP9:%.*]] = load i32, ptr [[END_ADDR]], align 4 3965*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP9]], ptr [[DOTCAPTURE_EXPR_9]], align 4 3966*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP10:%.*]] = load i32, ptr [[STEP_ADDR]], align 4 3967*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP10]], ptr [[DOTNEW_STEP10]], align 4 3968*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP11:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_9]], align 4 3969*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP12:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_8]], align 4 3970*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB:%.*]] = sub i32 [[TMP11]], [[TMP12]] 3971*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB12:%.*]] = sub i32 [[SUB]], 1 3972*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP13:%.*]] = load i32, ptr [[DOTNEW_STEP10]], align 4 3973*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD:%.*]] = add i32 [[SUB12]], [[TMP13]] 3974*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP14:%.*]] = load i32, ptr [[DOTNEW_STEP10]], align 4 3975*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV:%.*]] = udiv i32 [[ADD]], [[TMP14]] 3976*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB13:%.*]] = sub i32 [[DIV]], 1 3977*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[SUB13]], ptr [[DOTCAPTURE_EXPR_11]], align 4 3978*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP15:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_11]], align 4 3979*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD15:%.*]] = add i32 [[TMP15]], 1 3980*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[ADD15]], ptr [[DOTCAPTURE_EXPR_14]], align 4 3981*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP16:%.*]] = load i32, ptr [[_TMP2]], align 4 3982*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP16]], ptr [[DOTCAPTURE_EXPR_16]], align 4 3983*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP17:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_11]], align 4 3984*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD18:%.*]] = add i32 [[TMP17]], 1 3985*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP18:%.*]] = load i32, ptr [[_TMP2]], align 4 3986*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD19:%.*]] = add i32 [[TMP18]], 32 3987*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP:%.*]] = icmp ult i32 [[ADD18]], [[ADD19]] 3988*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP]], label [[COND_TRUE:%.*]], label [[COND_FALSE:%.*]] 3989*5b03efb8SMichael Kruse // CHECK2: cond.true: 3990*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP19:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_11]], align 4 3991*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD20:%.*]] = add i32 [[TMP19]], 1 3992*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[COND_END:%.*]] 3993*5b03efb8SMichael Kruse // CHECK2: cond.false: 3994*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP20:%.*]] = load i32, ptr [[_TMP2]], align 4 3995*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD21:%.*]] = add i32 [[TMP20]], 32 3996*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[COND_END]] 3997*5b03efb8SMichael Kruse // CHECK2: cond.end: 3998*5b03efb8SMichael Kruse // CHECK2-NEXT: [[COND:%.*]] = phi i32 [ [[ADD20]], [[COND_TRUE]] ], [ [[ADD21]], [[COND_FALSE]] ] 3999*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[COND]], ptr [[DOTCAPTURE_EXPR_17]], align 4 4000*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP21:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_4]], align 4 4001*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP22:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 4002*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB23:%.*]] = sub i32 [[TMP21]], [[TMP22]] 4003*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB24:%.*]] = sub i32 [[SUB23]], 1 4004*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP23:%.*]] = load i32, ptr [[DOTNEW_STEP]], align 4 4005*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD25:%.*]] = add i32 [[SUB24]], [[TMP23]] 4006*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP24:%.*]] = load i32, ptr [[DOTNEW_STEP]], align 4 4007*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV26:%.*]] = udiv i32 [[ADD25]], [[TMP24]] 4008*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV:%.*]] = zext i32 [[DIV26]] to i64 4009*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP25:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4010*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP26:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4011*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB27:%.*]] = sub i32 [[TMP25]], [[TMP26]] 4012*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB28:%.*]] = sub i32 [[SUB27]], 1 4013*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP27:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4014*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD29:%.*]] = add i32 [[SUB28]], [[TMP27]] 4015*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP28:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4016*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV30:%.*]] = udiv i32 [[ADD29]], [[TMP28]] 4017*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV31:%.*]] = zext i32 [[DIV30]] to i64 4018*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL:%.*]] = mul nsw i64 [[CONV]], [[CONV31]] 4019*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP29:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4020*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB32:%.*]] = sub i32 [[TMP29]], -31 4021*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV33:%.*]] = udiv i32 [[SUB32]], 32 4022*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV34:%.*]] = zext i32 [[DIV33]] to i64 4023*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL35:%.*]] = mul nsw i64 [[MUL]], [[CONV34]] 4024*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP30:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4025*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP31:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4026*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB36:%.*]] = sub i32 [[TMP30]], [[TMP31]] 4027*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB37:%.*]] = sub i32 [[SUB36]], 1 4028*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD38:%.*]] = add i32 [[SUB37]], 1 4029*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV39:%.*]] = udiv i32 [[ADD38]], 1 4030*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV40:%.*]] = zext i32 [[DIV39]] to i64 4031*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL41:%.*]] = mul nsw i64 [[MUL35]], [[CONV40]] 4032*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB42:%.*]] = sub nsw i64 [[MUL41]], 1 4033*5b03efb8SMichael Kruse // CHECK2-NEXT: store i64 [[SUB42]], ptr [[DOTCAPTURE_EXPR_22]], align 8 4034*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP32:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 4035*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP32]], ptr [[I]], align 4 4036*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP33:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4037*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP33]], ptr [[J]], align 4 4038*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTFLOOR_0_IV_K]], align 4 4039*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP34:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4040*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP34]], ptr [[DOTTILE_0_IV_K]], align 4 4041*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP35:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 4042*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP36:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_4]], align 4 4043*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP43:%.*]] = icmp slt i32 [[TMP35]], [[TMP36]] 4044*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP43]], label [[LAND_LHS_TRUE:%.*]], label [[OMP_PRECOND_END:%.*]] 4045*5b03efb8SMichael Kruse // CHECK2: land.lhs.true: 4046*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP37:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4047*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP38:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4048*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP44:%.*]] = icmp slt i32 [[TMP37]], [[TMP38]] 4049*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP44]], label [[LAND_LHS_TRUE45:%.*]], label [[OMP_PRECOND_END]] 4050*5b03efb8SMichael Kruse // CHECK2: land.lhs.true45: 4051*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP39:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4052*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP46:%.*]] = icmp ult i32 0, [[TMP39]] 4053*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP46]], label [[LAND_LHS_TRUE47:%.*]], label [[OMP_PRECOND_END]] 4054*5b03efb8SMichael Kruse // CHECK2: land.lhs.true47: 4055*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP40:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4056*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP41:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4057*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP48:%.*]] = icmp ult i32 [[TMP40]], [[TMP41]] 4058*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP48]], label [[OMP_PRECOND_THEN:%.*]], label [[OMP_PRECOND_END]] 4059*5b03efb8SMichael Kruse // CHECK2: omp.precond.then: 4060*5b03efb8SMichael Kruse // CHECK2-NEXT: store i64 0, ptr [[DOTOMP_LB]], align 8 4061*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP42:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_22]], align 8 4062*5b03efb8SMichael Kruse // CHECK2-NEXT: store i64 [[TMP42]], ptr [[DOTOMP_UB]], align 8 4063*5b03efb8SMichael Kruse // CHECK2-NEXT: store i64 1, ptr [[DOTOMP_STRIDE]], align 8 4064*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTOMP_IS_LAST]], align 4 4065*5b03efb8SMichael Kruse // CHECK2-NEXT: call void @__kmpc_for_static_init_8(ptr @[[GLOB1]], i32 [[TMP0]], i32 34, ptr [[DOTOMP_IS_LAST]], ptr [[DOTOMP_LB]], ptr [[DOTOMP_UB]], ptr [[DOTOMP_STRIDE]], i64 1, i64 1) 4066*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP43:%.*]] = load i64, ptr [[DOTOMP_UB]], align 8 4067*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP44:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_22]], align 8 4068*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP53:%.*]] = icmp sgt i64 [[TMP43]], [[TMP44]] 4069*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP53]], label [[COND_TRUE54:%.*]], label [[COND_FALSE55:%.*]] 4070*5b03efb8SMichael Kruse // CHECK2: cond.true54: 4071*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP45:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_22]], align 8 4072*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[COND_END56:%.*]] 4073*5b03efb8SMichael Kruse // CHECK2: cond.false55: 4074*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP46:%.*]] = load i64, ptr [[DOTOMP_UB]], align 8 4075*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[COND_END56]] 4076*5b03efb8SMichael Kruse // CHECK2: cond.end56: 4077*5b03efb8SMichael Kruse // CHECK2-NEXT: [[COND57:%.*]] = phi i64 [ [[TMP45]], [[COND_TRUE54]] ], [ [[TMP46]], [[COND_FALSE55]] ] 4078*5b03efb8SMichael Kruse // CHECK2-NEXT: store i64 [[COND57]], ptr [[DOTOMP_UB]], align 8 4079*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP47:%.*]] = load i64, ptr [[DOTOMP_LB]], align 8 4080*5b03efb8SMichael Kruse // CHECK2-NEXT: store i64 [[TMP47]], ptr [[DOTOMP_IV]], align 8 4081*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_COND:%.*]] 4082*5b03efb8SMichael Kruse // CHECK2: omp.inner.for.cond: 4083*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP48:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4084*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP49:%.*]] = load i64, ptr [[DOTOMP_UB]], align 8 4085*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP58:%.*]] = icmp sle i64 [[TMP48]], [[TMP49]] 4086*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP58]], label [[OMP_INNER_FOR_BODY:%.*]], label [[OMP_INNER_FOR_END:%.*]] 4087*5b03efb8SMichael Kruse // CHECK2: omp.inner.for.body: 4088*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP50:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 4089*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV59:%.*]] = sext i32 [[TMP50]] to i64 4090*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP51:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4091*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP52:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4092*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP53:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4093*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB60:%.*]] = sub i32 [[TMP52]], [[TMP53]] 4094*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB61:%.*]] = sub i32 [[SUB60]], 1 4095*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP54:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4096*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD62:%.*]] = add i32 [[SUB61]], [[TMP54]] 4097*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP55:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4098*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV63:%.*]] = udiv i32 [[ADD62]], [[TMP55]] 4099*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL64:%.*]] = mul i32 1, [[DIV63]] 4100*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP56:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4101*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB65:%.*]] = sub i32 [[TMP56]], -31 4102*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV66:%.*]] = udiv i32 [[SUB65]], 32 4103*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL67:%.*]] = mul i32 [[MUL64]], [[DIV66]] 4104*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP57:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4105*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP58:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4106*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB68:%.*]] = sub i32 [[TMP57]], [[TMP58]] 4107*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB69:%.*]] = sub i32 [[SUB68]], 1 4108*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD70:%.*]] = add i32 [[SUB69]], 1 4109*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV71:%.*]] = udiv i32 [[ADD70]], 1 4110*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL72:%.*]] = mul i32 [[MUL67]], [[DIV71]] 4111*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV73:%.*]] = zext i32 [[MUL72]] to i64 4112*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV74:%.*]] = sdiv i64 [[TMP51]], [[CONV73]] 4113*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP59:%.*]] = load i32, ptr [[DOTNEW_STEP]], align 4 4114*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV75:%.*]] = sext i32 [[TMP59]] to i64 4115*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL76:%.*]] = mul nsw i64 [[DIV74]], [[CONV75]] 4116*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD77:%.*]] = add nsw i64 [[CONV59]], [[MUL76]] 4117*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV78:%.*]] = trunc i64 [[ADD77]] to i32 4118*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[CONV78]], ptr [[I49]], align 4 4119*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP60:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4120*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV79:%.*]] = sext i32 [[TMP60]] to i64 4121*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP61:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4122*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP62:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4123*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP63:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4124*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP64:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4125*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB80:%.*]] = sub i32 [[TMP63]], [[TMP64]] 4126*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB81:%.*]] = sub i32 [[SUB80]], 1 4127*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP65:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4128*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD82:%.*]] = add i32 [[SUB81]], [[TMP65]] 4129*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP66:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4130*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV83:%.*]] = udiv i32 [[ADD82]], [[TMP66]] 4131*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL84:%.*]] = mul i32 1, [[DIV83]] 4132*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP67:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4133*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB85:%.*]] = sub i32 [[TMP67]], -31 4134*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV86:%.*]] = udiv i32 [[SUB85]], 32 4135*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL87:%.*]] = mul i32 [[MUL84]], [[DIV86]] 4136*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP68:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4137*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP69:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4138*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB88:%.*]] = sub i32 [[TMP68]], [[TMP69]] 4139*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB89:%.*]] = sub i32 [[SUB88]], 1 4140*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD90:%.*]] = add i32 [[SUB89]], 1 4141*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV91:%.*]] = udiv i32 [[ADD90]], 1 4142*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL92:%.*]] = mul i32 [[MUL87]], [[DIV91]] 4143*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV93:%.*]] = zext i32 [[MUL92]] to i64 4144*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV94:%.*]] = sdiv i64 [[TMP62]], [[CONV93]] 4145*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP70:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4146*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP71:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4147*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB95:%.*]] = sub i32 [[TMP70]], [[TMP71]] 4148*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB96:%.*]] = sub i32 [[SUB95]], 1 4149*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP72:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4150*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD97:%.*]] = add i32 [[SUB96]], [[TMP72]] 4151*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP73:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4152*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV98:%.*]] = udiv i32 [[ADD97]], [[TMP73]] 4153*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL99:%.*]] = mul i32 1, [[DIV98]] 4154*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP74:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4155*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB100:%.*]] = sub i32 [[TMP74]], -31 4156*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV101:%.*]] = udiv i32 [[SUB100]], 32 4157*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL102:%.*]] = mul i32 [[MUL99]], [[DIV101]] 4158*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP75:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4159*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP76:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4160*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB103:%.*]] = sub i32 [[TMP75]], [[TMP76]] 4161*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB104:%.*]] = sub i32 [[SUB103]], 1 4162*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD105:%.*]] = add i32 [[SUB104]], 1 4163*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV106:%.*]] = udiv i32 [[ADD105]], 1 4164*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL107:%.*]] = mul i32 [[MUL102]], [[DIV106]] 4165*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV108:%.*]] = zext i32 [[MUL107]] to i64 4166*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL109:%.*]] = mul nsw i64 [[DIV94]], [[CONV108]] 4167*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB110:%.*]] = sub nsw i64 [[TMP61]], [[MUL109]] 4168*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP77:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4169*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB111:%.*]] = sub i32 [[TMP77]], -31 4170*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV112:%.*]] = udiv i32 [[SUB111]], 32 4171*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL113:%.*]] = mul i32 1, [[DIV112]] 4172*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP78:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4173*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP79:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4174*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB114:%.*]] = sub i32 [[TMP78]], [[TMP79]] 4175*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB115:%.*]] = sub i32 [[SUB114]], 1 4176*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD116:%.*]] = add i32 [[SUB115]], 1 4177*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV117:%.*]] = udiv i32 [[ADD116]], 1 4178*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL118:%.*]] = mul i32 [[MUL113]], [[DIV117]] 4179*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV119:%.*]] = zext i32 [[MUL118]] to i64 4180*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV120:%.*]] = sdiv i64 [[SUB110]], [[CONV119]] 4181*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP80:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4182*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV121:%.*]] = sext i32 [[TMP80]] to i64 4183*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL122:%.*]] = mul nsw i64 [[DIV120]], [[CONV121]] 4184*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD123:%.*]] = add nsw i64 [[CONV79]], [[MUL122]] 4185*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV124:%.*]] = trunc i64 [[ADD123]] to i32 4186*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[CONV124]], ptr [[J50]], align 4 4187*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP81:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4188*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP82:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4189*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP83:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4190*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP84:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4191*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB125:%.*]] = sub i32 [[TMP83]], [[TMP84]] 4192*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB126:%.*]] = sub i32 [[SUB125]], 1 4193*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP85:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4194*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD127:%.*]] = add i32 [[SUB126]], [[TMP85]] 4195*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP86:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4196*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV128:%.*]] = udiv i32 [[ADD127]], [[TMP86]] 4197*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL129:%.*]] = mul i32 1, [[DIV128]] 4198*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP87:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4199*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB130:%.*]] = sub i32 [[TMP87]], -31 4200*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV131:%.*]] = udiv i32 [[SUB130]], 32 4201*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL132:%.*]] = mul i32 [[MUL129]], [[DIV131]] 4202*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP88:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4203*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP89:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4204*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB133:%.*]] = sub i32 [[TMP88]], [[TMP89]] 4205*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB134:%.*]] = sub i32 [[SUB133]], 1 4206*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD135:%.*]] = add i32 [[SUB134]], 1 4207*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV136:%.*]] = udiv i32 [[ADD135]], 1 4208*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL137:%.*]] = mul i32 [[MUL132]], [[DIV136]] 4209*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV138:%.*]] = zext i32 [[MUL137]] to i64 4210*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV139:%.*]] = sdiv i64 [[TMP82]], [[CONV138]] 4211*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP90:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4212*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP91:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4213*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB140:%.*]] = sub i32 [[TMP90]], [[TMP91]] 4214*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB141:%.*]] = sub i32 [[SUB140]], 1 4215*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP92:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4216*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD142:%.*]] = add i32 [[SUB141]], [[TMP92]] 4217*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP93:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4218*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV143:%.*]] = udiv i32 [[ADD142]], [[TMP93]] 4219*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL144:%.*]] = mul i32 1, [[DIV143]] 4220*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP94:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4221*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB145:%.*]] = sub i32 [[TMP94]], -31 4222*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV146:%.*]] = udiv i32 [[SUB145]], 32 4223*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL147:%.*]] = mul i32 [[MUL144]], [[DIV146]] 4224*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP95:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4225*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP96:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4226*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB148:%.*]] = sub i32 [[TMP95]], [[TMP96]] 4227*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB149:%.*]] = sub i32 [[SUB148]], 1 4228*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD150:%.*]] = add i32 [[SUB149]], 1 4229*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV151:%.*]] = udiv i32 [[ADD150]], 1 4230*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL152:%.*]] = mul i32 [[MUL147]], [[DIV151]] 4231*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV153:%.*]] = zext i32 [[MUL152]] to i64 4232*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL154:%.*]] = mul nsw i64 [[DIV139]], [[CONV153]] 4233*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB155:%.*]] = sub nsw i64 [[TMP81]], [[MUL154]] 4234*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP97:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4235*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP98:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4236*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP99:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4237*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP100:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4238*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB156:%.*]] = sub i32 [[TMP99]], [[TMP100]] 4239*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB157:%.*]] = sub i32 [[SUB156]], 1 4240*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP101:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4241*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD158:%.*]] = add i32 [[SUB157]], [[TMP101]] 4242*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP102:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4243*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV159:%.*]] = udiv i32 [[ADD158]], [[TMP102]] 4244*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL160:%.*]] = mul i32 1, [[DIV159]] 4245*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP103:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4246*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB161:%.*]] = sub i32 [[TMP103]], -31 4247*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV162:%.*]] = udiv i32 [[SUB161]], 32 4248*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL163:%.*]] = mul i32 [[MUL160]], [[DIV162]] 4249*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP104:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4250*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP105:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4251*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB164:%.*]] = sub i32 [[TMP104]], [[TMP105]] 4252*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB165:%.*]] = sub i32 [[SUB164]], 1 4253*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD166:%.*]] = add i32 [[SUB165]], 1 4254*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV167:%.*]] = udiv i32 [[ADD166]], 1 4255*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL168:%.*]] = mul i32 [[MUL163]], [[DIV167]] 4256*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV169:%.*]] = zext i32 [[MUL168]] to i64 4257*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV170:%.*]] = sdiv i64 [[TMP98]], [[CONV169]] 4258*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP106:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4259*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP107:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4260*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB171:%.*]] = sub i32 [[TMP106]], [[TMP107]] 4261*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB172:%.*]] = sub i32 [[SUB171]], 1 4262*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP108:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4263*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD173:%.*]] = add i32 [[SUB172]], [[TMP108]] 4264*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP109:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4265*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV174:%.*]] = udiv i32 [[ADD173]], [[TMP109]] 4266*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL175:%.*]] = mul i32 1, [[DIV174]] 4267*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP110:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4268*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB176:%.*]] = sub i32 [[TMP110]], -31 4269*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV177:%.*]] = udiv i32 [[SUB176]], 32 4270*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL178:%.*]] = mul i32 [[MUL175]], [[DIV177]] 4271*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP111:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4272*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP112:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4273*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB179:%.*]] = sub i32 [[TMP111]], [[TMP112]] 4274*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB180:%.*]] = sub i32 [[SUB179]], 1 4275*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD181:%.*]] = add i32 [[SUB180]], 1 4276*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV182:%.*]] = udiv i32 [[ADD181]], 1 4277*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL183:%.*]] = mul i32 [[MUL178]], [[DIV182]] 4278*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV184:%.*]] = zext i32 [[MUL183]] to i64 4279*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL185:%.*]] = mul nsw i64 [[DIV170]], [[CONV184]] 4280*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB186:%.*]] = sub nsw i64 [[TMP97]], [[MUL185]] 4281*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP113:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4282*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB187:%.*]] = sub i32 [[TMP113]], -31 4283*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV188:%.*]] = udiv i32 [[SUB187]], 32 4284*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL189:%.*]] = mul i32 1, [[DIV188]] 4285*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP114:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4286*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP115:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4287*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB190:%.*]] = sub i32 [[TMP114]], [[TMP115]] 4288*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB191:%.*]] = sub i32 [[SUB190]], 1 4289*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD192:%.*]] = add i32 [[SUB191]], 1 4290*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV193:%.*]] = udiv i32 [[ADD192]], 1 4291*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL194:%.*]] = mul i32 [[MUL189]], [[DIV193]] 4292*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV195:%.*]] = zext i32 [[MUL194]] to i64 4293*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV196:%.*]] = sdiv i64 [[SUB186]], [[CONV195]] 4294*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP116:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4295*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB197:%.*]] = sub i32 [[TMP116]], -31 4296*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV198:%.*]] = udiv i32 [[SUB197]], 32 4297*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL199:%.*]] = mul i32 1, [[DIV198]] 4298*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP117:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4299*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP118:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4300*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB200:%.*]] = sub i32 [[TMP117]], [[TMP118]] 4301*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB201:%.*]] = sub i32 [[SUB200]], 1 4302*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD202:%.*]] = add i32 [[SUB201]], 1 4303*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV203:%.*]] = udiv i32 [[ADD202]], 1 4304*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL204:%.*]] = mul i32 [[MUL199]], [[DIV203]] 4305*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV205:%.*]] = zext i32 [[MUL204]] to i64 4306*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL206:%.*]] = mul nsw i64 [[DIV196]], [[CONV205]] 4307*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB207:%.*]] = sub nsw i64 [[SUB155]], [[MUL206]] 4308*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP119:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4309*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP120:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4310*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB208:%.*]] = sub i32 [[TMP119]], [[TMP120]] 4311*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB209:%.*]] = sub i32 [[SUB208]], 1 4312*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD210:%.*]] = add i32 [[SUB209]], 1 4313*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV211:%.*]] = udiv i32 [[ADD210]], 1 4314*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL212:%.*]] = mul i32 1, [[DIV211]] 4315*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV213:%.*]] = zext i32 [[MUL212]] to i64 4316*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV214:%.*]] = sdiv i64 [[SUB207]], [[CONV213]] 4317*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL215:%.*]] = mul nsw i64 [[DIV214]], 32 4318*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD216:%.*]] = add nsw i64 0, [[MUL215]] 4319*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV217:%.*]] = trunc i64 [[ADD216]] to i32 4320*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[CONV217]], ptr [[DOTFLOOR_0_IV_K51]], align 4 4321*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP121:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4322*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV218:%.*]] = zext i32 [[TMP121]] to i64 4323*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP122:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4324*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP123:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4325*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP124:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4326*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP125:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4327*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB219:%.*]] = sub i32 [[TMP124]], [[TMP125]] 4328*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB220:%.*]] = sub i32 [[SUB219]], 1 4329*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP126:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4330*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD221:%.*]] = add i32 [[SUB220]], [[TMP126]] 4331*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP127:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4332*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV222:%.*]] = udiv i32 [[ADD221]], [[TMP127]] 4333*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL223:%.*]] = mul i32 1, [[DIV222]] 4334*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP128:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4335*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB224:%.*]] = sub i32 [[TMP128]], -31 4336*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV225:%.*]] = udiv i32 [[SUB224]], 32 4337*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL226:%.*]] = mul i32 [[MUL223]], [[DIV225]] 4338*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP129:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4339*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP130:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4340*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB227:%.*]] = sub i32 [[TMP129]], [[TMP130]] 4341*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB228:%.*]] = sub i32 [[SUB227]], 1 4342*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD229:%.*]] = add i32 [[SUB228]], 1 4343*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV230:%.*]] = udiv i32 [[ADD229]], 1 4344*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL231:%.*]] = mul i32 [[MUL226]], [[DIV230]] 4345*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV232:%.*]] = zext i32 [[MUL231]] to i64 4346*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV233:%.*]] = sdiv i64 [[TMP123]], [[CONV232]] 4347*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP131:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4348*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP132:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4349*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB234:%.*]] = sub i32 [[TMP131]], [[TMP132]] 4350*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB235:%.*]] = sub i32 [[SUB234]], 1 4351*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP133:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4352*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD236:%.*]] = add i32 [[SUB235]], [[TMP133]] 4353*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP134:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4354*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV237:%.*]] = udiv i32 [[ADD236]], [[TMP134]] 4355*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL238:%.*]] = mul i32 1, [[DIV237]] 4356*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP135:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4357*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB239:%.*]] = sub i32 [[TMP135]], -31 4358*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV240:%.*]] = udiv i32 [[SUB239]], 32 4359*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL241:%.*]] = mul i32 [[MUL238]], [[DIV240]] 4360*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP136:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4361*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP137:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4362*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB242:%.*]] = sub i32 [[TMP136]], [[TMP137]] 4363*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB243:%.*]] = sub i32 [[SUB242]], 1 4364*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD244:%.*]] = add i32 [[SUB243]], 1 4365*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV245:%.*]] = udiv i32 [[ADD244]], 1 4366*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL246:%.*]] = mul i32 [[MUL241]], [[DIV245]] 4367*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV247:%.*]] = zext i32 [[MUL246]] to i64 4368*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL248:%.*]] = mul nsw i64 [[DIV233]], [[CONV247]] 4369*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB249:%.*]] = sub nsw i64 [[TMP122]], [[MUL248]] 4370*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP138:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4371*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP139:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4372*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP140:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4373*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP141:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4374*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB250:%.*]] = sub i32 [[TMP140]], [[TMP141]] 4375*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB251:%.*]] = sub i32 [[SUB250]], 1 4376*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP142:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4377*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD252:%.*]] = add i32 [[SUB251]], [[TMP142]] 4378*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP143:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4379*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV253:%.*]] = udiv i32 [[ADD252]], [[TMP143]] 4380*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL254:%.*]] = mul i32 1, [[DIV253]] 4381*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP144:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4382*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB255:%.*]] = sub i32 [[TMP144]], -31 4383*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV256:%.*]] = udiv i32 [[SUB255]], 32 4384*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL257:%.*]] = mul i32 [[MUL254]], [[DIV256]] 4385*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP145:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4386*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP146:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4387*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB258:%.*]] = sub i32 [[TMP145]], [[TMP146]] 4388*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB259:%.*]] = sub i32 [[SUB258]], 1 4389*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD260:%.*]] = add i32 [[SUB259]], 1 4390*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV261:%.*]] = udiv i32 [[ADD260]], 1 4391*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL262:%.*]] = mul i32 [[MUL257]], [[DIV261]] 4392*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV263:%.*]] = zext i32 [[MUL262]] to i64 4393*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV264:%.*]] = sdiv i64 [[TMP139]], [[CONV263]] 4394*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP147:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4395*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP148:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4396*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB265:%.*]] = sub i32 [[TMP147]], [[TMP148]] 4397*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB266:%.*]] = sub i32 [[SUB265]], 1 4398*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP149:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4399*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD267:%.*]] = add i32 [[SUB266]], [[TMP149]] 4400*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP150:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4401*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV268:%.*]] = udiv i32 [[ADD267]], [[TMP150]] 4402*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL269:%.*]] = mul i32 1, [[DIV268]] 4403*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP151:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4404*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB270:%.*]] = sub i32 [[TMP151]], -31 4405*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV271:%.*]] = udiv i32 [[SUB270]], 32 4406*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL272:%.*]] = mul i32 [[MUL269]], [[DIV271]] 4407*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP152:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4408*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP153:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4409*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB273:%.*]] = sub i32 [[TMP152]], [[TMP153]] 4410*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB274:%.*]] = sub i32 [[SUB273]], 1 4411*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD275:%.*]] = add i32 [[SUB274]], 1 4412*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV276:%.*]] = udiv i32 [[ADD275]], 1 4413*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL277:%.*]] = mul i32 [[MUL272]], [[DIV276]] 4414*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV278:%.*]] = zext i32 [[MUL277]] to i64 4415*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL279:%.*]] = mul nsw i64 [[DIV264]], [[CONV278]] 4416*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB280:%.*]] = sub nsw i64 [[TMP138]], [[MUL279]] 4417*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP154:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4418*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB281:%.*]] = sub i32 [[TMP154]], -31 4419*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV282:%.*]] = udiv i32 [[SUB281]], 32 4420*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL283:%.*]] = mul i32 1, [[DIV282]] 4421*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP155:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4422*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP156:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4423*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB284:%.*]] = sub i32 [[TMP155]], [[TMP156]] 4424*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB285:%.*]] = sub i32 [[SUB284]], 1 4425*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD286:%.*]] = add i32 [[SUB285]], 1 4426*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV287:%.*]] = udiv i32 [[ADD286]], 1 4427*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL288:%.*]] = mul i32 [[MUL283]], [[DIV287]] 4428*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV289:%.*]] = zext i32 [[MUL288]] to i64 4429*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV290:%.*]] = sdiv i64 [[SUB280]], [[CONV289]] 4430*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP157:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4431*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB291:%.*]] = sub i32 [[TMP157]], -31 4432*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV292:%.*]] = udiv i32 [[SUB291]], 32 4433*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL293:%.*]] = mul i32 1, [[DIV292]] 4434*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP158:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4435*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP159:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4436*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB294:%.*]] = sub i32 [[TMP158]], [[TMP159]] 4437*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB295:%.*]] = sub i32 [[SUB294]], 1 4438*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD296:%.*]] = add i32 [[SUB295]], 1 4439*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV297:%.*]] = udiv i32 [[ADD296]], 1 4440*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL298:%.*]] = mul i32 [[MUL293]], [[DIV297]] 4441*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV299:%.*]] = zext i32 [[MUL298]] to i64 4442*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL300:%.*]] = mul nsw i64 [[DIV290]], [[CONV299]] 4443*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB301:%.*]] = sub nsw i64 [[SUB249]], [[MUL300]] 4444*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP160:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4445*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP161:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4446*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP162:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4447*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP163:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4448*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB302:%.*]] = sub i32 [[TMP162]], [[TMP163]] 4449*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB303:%.*]] = sub i32 [[SUB302]], 1 4450*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP164:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4451*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD304:%.*]] = add i32 [[SUB303]], [[TMP164]] 4452*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP165:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4453*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV305:%.*]] = udiv i32 [[ADD304]], [[TMP165]] 4454*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL306:%.*]] = mul i32 1, [[DIV305]] 4455*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP166:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4456*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB307:%.*]] = sub i32 [[TMP166]], -31 4457*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV308:%.*]] = udiv i32 [[SUB307]], 32 4458*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL309:%.*]] = mul i32 [[MUL306]], [[DIV308]] 4459*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP167:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4460*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP168:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4461*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB310:%.*]] = sub i32 [[TMP167]], [[TMP168]] 4462*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB311:%.*]] = sub i32 [[SUB310]], 1 4463*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD312:%.*]] = add i32 [[SUB311]], 1 4464*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV313:%.*]] = udiv i32 [[ADD312]], 1 4465*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL314:%.*]] = mul i32 [[MUL309]], [[DIV313]] 4466*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV315:%.*]] = zext i32 [[MUL314]] to i64 4467*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV316:%.*]] = sdiv i64 [[TMP161]], [[CONV315]] 4468*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP169:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4469*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP170:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4470*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB317:%.*]] = sub i32 [[TMP169]], [[TMP170]] 4471*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB318:%.*]] = sub i32 [[SUB317]], 1 4472*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP171:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4473*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD319:%.*]] = add i32 [[SUB318]], [[TMP171]] 4474*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP172:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4475*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV320:%.*]] = udiv i32 [[ADD319]], [[TMP172]] 4476*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL321:%.*]] = mul i32 1, [[DIV320]] 4477*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP173:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4478*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB322:%.*]] = sub i32 [[TMP173]], -31 4479*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV323:%.*]] = udiv i32 [[SUB322]], 32 4480*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL324:%.*]] = mul i32 [[MUL321]], [[DIV323]] 4481*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP174:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4482*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP175:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4483*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB325:%.*]] = sub i32 [[TMP174]], [[TMP175]] 4484*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB326:%.*]] = sub i32 [[SUB325]], 1 4485*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD327:%.*]] = add i32 [[SUB326]], 1 4486*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV328:%.*]] = udiv i32 [[ADD327]], 1 4487*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL329:%.*]] = mul i32 [[MUL324]], [[DIV328]] 4488*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV330:%.*]] = zext i32 [[MUL329]] to i64 4489*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL331:%.*]] = mul nsw i64 [[DIV316]], [[CONV330]] 4490*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB332:%.*]] = sub nsw i64 [[TMP160]], [[MUL331]] 4491*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP176:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4492*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP177:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4493*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP178:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4494*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP179:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4495*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB333:%.*]] = sub i32 [[TMP178]], [[TMP179]] 4496*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB334:%.*]] = sub i32 [[SUB333]], 1 4497*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP180:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4498*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD335:%.*]] = add i32 [[SUB334]], [[TMP180]] 4499*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP181:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4500*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV336:%.*]] = udiv i32 [[ADD335]], [[TMP181]] 4501*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL337:%.*]] = mul i32 1, [[DIV336]] 4502*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP182:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4503*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB338:%.*]] = sub i32 [[TMP182]], -31 4504*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV339:%.*]] = udiv i32 [[SUB338]], 32 4505*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL340:%.*]] = mul i32 [[MUL337]], [[DIV339]] 4506*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP183:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4507*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP184:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4508*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB341:%.*]] = sub i32 [[TMP183]], [[TMP184]] 4509*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB342:%.*]] = sub i32 [[SUB341]], 1 4510*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD343:%.*]] = add i32 [[SUB342]], 1 4511*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV344:%.*]] = udiv i32 [[ADD343]], 1 4512*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL345:%.*]] = mul i32 [[MUL340]], [[DIV344]] 4513*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV346:%.*]] = zext i32 [[MUL345]] to i64 4514*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV347:%.*]] = sdiv i64 [[TMP177]], [[CONV346]] 4515*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP185:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4516*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP186:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4517*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB348:%.*]] = sub i32 [[TMP185]], [[TMP186]] 4518*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB349:%.*]] = sub i32 [[SUB348]], 1 4519*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP187:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4520*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD350:%.*]] = add i32 [[SUB349]], [[TMP187]] 4521*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP188:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4522*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV351:%.*]] = udiv i32 [[ADD350]], [[TMP188]] 4523*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL352:%.*]] = mul i32 1, [[DIV351]] 4524*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP189:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4525*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB353:%.*]] = sub i32 [[TMP189]], -31 4526*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV354:%.*]] = udiv i32 [[SUB353]], 32 4527*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL355:%.*]] = mul i32 [[MUL352]], [[DIV354]] 4528*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP190:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4529*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP191:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4530*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB356:%.*]] = sub i32 [[TMP190]], [[TMP191]] 4531*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB357:%.*]] = sub i32 [[SUB356]], 1 4532*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD358:%.*]] = add i32 [[SUB357]], 1 4533*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV359:%.*]] = udiv i32 [[ADD358]], 1 4534*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL360:%.*]] = mul i32 [[MUL355]], [[DIV359]] 4535*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV361:%.*]] = zext i32 [[MUL360]] to i64 4536*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL362:%.*]] = mul nsw i64 [[DIV347]], [[CONV361]] 4537*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB363:%.*]] = sub nsw i64 [[TMP176]], [[MUL362]] 4538*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP192:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4539*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB364:%.*]] = sub i32 [[TMP192]], -31 4540*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV365:%.*]] = udiv i32 [[SUB364]], 32 4541*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL366:%.*]] = mul i32 1, [[DIV365]] 4542*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP193:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4543*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP194:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4544*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB367:%.*]] = sub i32 [[TMP193]], [[TMP194]] 4545*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB368:%.*]] = sub i32 [[SUB367]], 1 4546*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD369:%.*]] = add i32 [[SUB368]], 1 4547*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV370:%.*]] = udiv i32 [[ADD369]], 1 4548*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL371:%.*]] = mul i32 [[MUL366]], [[DIV370]] 4549*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV372:%.*]] = zext i32 [[MUL371]] to i64 4550*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV373:%.*]] = sdiv i64 [[SUB363]], [[CONV372]] 4551*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP195:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4552*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB374:%.*]] = sub i32 [[TMP195]], -31 4553*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV375:%.*]] = udiv i32 [[SUB374]], 32 4554*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL376:%.*]] = mul i32 1, [[DIV375]] 4555*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP196:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4556*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP197:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4557*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB377:%.*]] = sub i32 [[TMP196]], [[TMP197]] 4558*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB378:%.*]] = sub i32 [[SUB377]], 1 4559*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD379:%.*]] = add i32 [[SUB378]], 1 4560*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV380:%.*]] = udiv i32 [[ADD379]], 1 4561*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL381:%.*]] = mul i32 [[MUL376]], [[DIV380]] 4562*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV382:%.*]] = zext i32 [[MUL381]] to i64 4563*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL383:%.*]] = mul nsw i64 [[DIV373]], [[CONV382]] 4564*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB384:%.*]] = sub nsw i64 [[SUB332]], [[MUL383]] 4565*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP198:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4566*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP199:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4567*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB385:%.*]] = sub i32 [[TMP198]], [[TMP199]] 4568*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB386:%.*]] = sub i32 [[SUB385]], 1 4569*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD387:%.*]] = add i32 [[SUB386]], 1 4570*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV388:%.*]] = udiv i32 [[ADD387]], 1 4571*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL389:%.*]] = mul i32 1, [[DIV388]] 4572*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV390:%.*]] = zext i32 [[MUL389]] to i64 4573*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV391:%.*]] = sdiv i64 [[SUB384]], [[CONV390]] 4574*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP200:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4575*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP201:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4576*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB392:%.*]] = sub i32 [[TMP200]], [[TMP201]] 4577*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB393:%.*]] = sub i32 [[SUB392]], 1 4578*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD394:%.*]] = add i32 [[SUB393]], 1 4579*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV395:%.*]] = udiv i32 [[ADD394]], 1 4580*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL396:%.*]] = mul i32 1, [[DIV395]] 4581*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV397:%.*]] = zext i32 [[MUL396]] to i64 4582*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL398:%.*]] = mul nsw i64 [[DIV391]], [[CONV397]] 4583*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB399:%.*]] = sub nsw i64 [[SUB301]], [[MUL398]] 4584*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL400:%.*]] = mul nsw i64 [[SUB399]], 1 4585*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD401:%.*]] = add nsw i64 [[CONV218]], [[MUL400]] 4586*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV402:%.*]] = trunc i64 [[ADD401]] to i32 4587*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[CONV402]], ptr [[DOTTILE_0_IV_K52]], align 4 4588*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP202:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_8]], align 4 4589*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP203:%.*]] = load i32, ptr [[DOTTILE_0_IV_K52]], align 4 4590*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP204:%.*]] = load i32, ptr [[DOTNEW_STEP10]], align 4 4591*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL403:%.*]] = mul i32 [[TMP203]], [[TMP204]] 4592*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD404:%.*]] = add i32 [[TMP202]], [[MUL403]] 4593*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[ADD404]], ptr [[K]], align 4 4594*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP205:%.*]] = load i32, ptr [[I49]], align 4 4595*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP206:%.*]] = load i32, ptr [[J50]], align 4 4596*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP207:%.*]] = load i32, ptr [[K]], align 4 4597*5b03efb8SMichael Kruse // CHECK2-NEXT: call void (...) @body(i32 noundef [[TMP205]], i32 noundef [[TMP206]], i32 noundef [[TMP207]]) 4598*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[OMP_BODY_CONTINUE:%.*]] 4599*5b03efb8SMichael Kruse // CHECK2: omp.body.continue: 4600*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_INC:%.*]] 4601*5b03efb8SMichael Kruse // CHECK2: omp.inner.for.inc: 4602*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP208:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4603*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD405:%.*]] = add nsw i64 [[TMP208]], 1 4604*5b03efb8SMichael Kruse // CHECK2-NEXT: store i64 [[ADD405]], ptr [[DOTOMP_IV]], align 8 4605*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_COND]] 4606*5b03efb8SMichael Kruse // CHECK2: omp.inner.for.end: 4607*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[OMP_LOOP_EXIT:%.*]] 4608*5b03efb8SMichael Kruse // CHECK2: omp.loop.exit: 4609*5b03efb8SMichael Kruse // CHECK2-NEXT: call void @__kmpc_for_static_fini(ptr @[[GLOB1]], i32 [[TMP0]]) 4610*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[OMP_PRECOND_END]] 4611*5b03efb8SMichael Kruse // CHECK2: omp.precond.end: 4612*5b03efb8SMichael Kruse // CHECK2-NEXT: call void @__kmpc_barrier(ptr @[[GLOB3]], i32 [[TMP0]]) 4613*5b03efb8SMichael Kruse // CHECK2-NEXT: ret void 4614*5b03efb8SMichael Kruse // 4615*5b03efb8SMichael Kruse // 4616*5b03efb8SMichael Kruse // CHECK2-LABEL: define {{[^@]+}}@_Z4foo8ILi64EEviii 4617*5b03efb8SMichael Kruse // CHECK2-SAME: (i32 noundef [[START:%.*]], i32 noundef [[END:%.*]], i32 noundef [[STEP:%.*]]) #[[ATTR0]] comdat { 4618*5b03efb8SMichael Kruse // CHECK2-NEXT: entry: 4619*5b03efb8SMichael Kruse // CHECK2-NEXT: [[START_ADDR:%.*]] = alloca i32, align 4 4620*5b03efb8SMichael Kruse // CHECK2-NEXT: [[END_ADDR:%.*]] = alloca i32, align 4 4621*5b03efb8SMichael Kruse // CHECK2-NEXT: [[STEP_ADDR:%.*]] = alloca i32, align 4 4622*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTOMP_IV:%.*]] = alloca i64, align 8 4623*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP:%.*]] = alloca i32, align 4 4624*5b03efb8SMichael Kruse // CHECK2-NEXT: [[_TMP1:%.*]] = alloca i32, align 4 4625*5b03efb8SMichael Kruse // CHECK2-NEXT: [[_TMP2:%.*]] = alloca i32, align 4 4626*5b03efb8SMichael Kruse // CHECK2-NEXT: [[_TMP3:%.*]] = alloca i32, align 4 4627*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_:%.*]] = alloca i32, align 4 4628*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_4:%.*]] = alloca i32, align 4 4629*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTNEW_STEP:%.*]] = alloca i32, align 4 4630*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_5:%.*]] = alloca i32, align 4 4631*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_6:%.*]] = alloca i32, align 4 4632*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTNEW_STEP7:%.*]] = alloca i32, align 4 4633*5b03efb8SMichael Kruse // CHECK2-NEXT: [[K:%.*]] = alloca i32, align 4 4634*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_8:%.*]] = alloca i32, align 4 4635*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_9:%.*]] = alloca i32, align 4 4636*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTNEW_STEP10:%.*]] = alloca i32, align 4 4637*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_11:%.*]] = alloca i32, align 4 4638*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_14:%.*]] = alloca i32, align 4 4639*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_16:%.*]] = alloca i32, align 4 4640*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_17:%.*]] = alloca i32, align 4 4641*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTCAPTURE_EXPR_22:%.*]] = alloca i64, align 8 4642*5b03efb8SMichael Kruse // CHECK2-NEXT: [[I:%.*]] = alloca i32, align 4 4643*5b03efb8SMichael Kruse // CHECK2-NEXT: [[J:%.*]] = alloca i32, align 4 4644*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTFLOOR_0_IV_K:%.*]] = alloca i32, align 4 4645*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTTILE_0_IV_K:%.*]] = alloca i32, align 4 4646*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTOMP_LB:%.*]] = alloca i64, align 8 4647*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTOMP_UB:%.*]] = alloca i64, align 8 4648*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTOMP_STRIDE:%.*]] = alloca i64, align 8 4649*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTOMP_IS_LAST:%.*]] = alloca i32, align 4 4650*5b03efb8SMichael Kruse // CHECK2-NEXT: [[I49:%.*]] = alloca i32, align 4 4651*5b03efb8SMichael Kruse // CHECK2-NEXT: [[J50:%.*]] = alloca i32, align 4 4652*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTFLOOR_0_IV_K51:%.*]] = alloca i32, align 4 4653*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DOTTILE_0_IV_K52:%.*]] = alloca i32, align 4 4654*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP0:%.*]] = call i32 @__kmpc_global_thread_num(ptr @[[GLOB2]]) 4655*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[START]], ptr [[START_ADDR]], align 4 4656*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[END]], ptr [[END_ADDR]], align 4 4657*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[STEP]], ptr [[STEP_ADDR]], align 4 4658*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP1:%.*]] = load i32, ptr [[START_ADDR]], align 4 4659*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP1]], ptr [[DOTCAPTURE_EXPR_]], align 4 4660*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP2:%.*]] = load i32, ptr [[END_ADDR]], align 4 4661*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP2]], ptr [[DOTCAPTURE_EXPR_4]], align 4 4662*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP3:%.*]] = load i32, ptr [[STEP_ADDR]], align 4 4663*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP3]], ptr [[DOTNEW_STEP]], align 4 4664*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP4:%.*]] = load i32, ptr [[START_ADDR]], align 4 4665*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP4]], ptr [[DOTCAPTURE_EXPR_5]], align 4 4666*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP5:%.*]] = load i32, ptr [[END_ADDR]], align 4 4667*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP5]], ptr [[DOTCAPTURE_EXPR_6]], align 4 4668*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP6:%.*]] = load i32, ptr [[STEP_ADDR]], align 4 4669*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP6]], ptr [[DOTNEW_STEP7]], align 4 4670*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP7:%.*]] = load i32, ptr [[START_ADDR]], align 4 4671*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP7]], ptr [[K]], align 4 4672*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP8:%.*]] = load i32, ptr [[START_ADDR]], align 4 4673*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP8]], ptr [[DOTCAPTURE_EXPR_8]], align 4 4674*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP9:%.*]] = load i32, ptr [[END_ADDR]], align 4 4675*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP9]], ptr [[DOTCAPTURE_EXPR_9]], align 4 4676*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP10:%.*]] = load i32, ptr [[STEP_ADDR]], align 4 4677*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP10]], ptr [[DOTNEW_STEP10]], align 4 4678*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP11:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_9]], align 4 4679*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP12:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_8]], align 4 4680*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB:%.*]] = sub i32 [[TMP11]], [[TMP12]] 4681*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB12:%.*]] = sub i32 [[SUB]], 1 4682*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP13:%.*]] = load i32, ptr [[DOTNEW_STEP10]], align 4 4683*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD:%.*]] = add i32 [[SUB12]], [[TMP13]] 4684*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP14:%.*]] = load i32, ptr [[DOTNEW_STEP10]], align 4 4685*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV:%.*]] = udiv i32 [[ADD]], [[TMP14]] 4686*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB13:%.*]] = sub i32 [[DIV]], 1 4687*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[SUB13]], ptr [[DOTCAPTURE_EXPR_11]], align 4 4688*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP15:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_11]], align 4 4689*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD15:%.*]] = add i32 [[TMP15]], 1 4690*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[ADD15]], ptr [[DOTCAPTURE_EXPR_14]], align 4 4691*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP16:%.*]] = load i32, ptr [[_TMP2]], align 4 4692*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP16]], ptr [[DOTCAPTURE_EXPR_16]], align 4 4693*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP17:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_11]], align 4 4694*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD18:%.*]] = add i32 [[TMP17]], 1 4695*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP18:%.*]] = load i32, ptr [[_TMP2]], align 4 4696*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD19:%.*]] = add i32 [[TMP18]], 64 4697*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP:%.*]] = icmp ult i32 [[ADD18]], [[ADD19]] 4698*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP]], label [[COND_TRUE:%.*]], label [[COND_FALSE:%.*]] 4699*5b03efb8SMichael Kruse // CHECK2: cond.true: 4700*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP19:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_11]], align 4 4701*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD20:%.*]] = add i32 [[TMP19]], 1 4702*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[COND_END:%.*]] 4703*5b03efb8SMichael Kruse // CHECK2: cond.false: 4704*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP20:%.*]] = load i32, ptr [[_TMP2]], align 4 4705*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD21:%.*]] = add i32 [[TMP20]], 64 4706*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[COND_END]] 4707*5b03efb8SMichael Kruse // CHECK2: cond.end: 4708*5b03efb8SMichael Kruse // CHECK2-NEXT: [[COND:%.*]] = phi i32 [ [[ADD20]], [[COND_TRUE]] ], [ [[ADD21]], [[COND_FALSE]] ] 4709*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[COND]], ptr [[DOTCAPTURE_EXPR_17]], align 4 4710*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP21:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_4]], align 4 4711*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP22:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 4712*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB23:%.*]] = sub i32 [[TMP21]], [[TMP22]] 4713*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB24:%.*]] = sub i32 [[SUB23]], 1 4714*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP23:%.*]] = load i32, ptr [[DOTNEW_STEP]], align 4 4715*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD25:%.*]] = add i32 [[SUB24]], [[TMP23]] 4716*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP24:%.*]] = load i32, ptr [[DOTNEW_STEP]], align 4 4717*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV26:%.*]] = udiv i32 [[ADD25]], [[TMP24]] 4718*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV:%.*]] = zext i32 [[DIV26]] to i64 4719*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP25:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4720*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP26:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4721*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB27:%.*]] = sub i32 [[TMP25]], [[TMP26]] 4722*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB28:%.*]] = sub i32 [[SUB27]], 1 4723*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP27:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4724*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD29:%.*]] = add i32 [[SUB28]], [[TMP27]] 4725*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP28:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4726*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV30:%.*]] = udiv i32 [[ADD29]], [[TMP28]] 4727*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV31:%.*]] = zext i32 [[DIV30]] to i64 4728*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL:%.*]] = mul nsw i64 [[CONV]], [[CONV31]] 4729*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP29:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4730*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB32:%.*]] = sub i32 [[TMP29]], -63 4731*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV33:%.*]] = udiv i32 [[SUB32]], 64 4732*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV34:%.*]] = zext i32 [[DIV33]] to i64 4733*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL35:%.*]] = mul nsw i64 [[MUL]], [[CONV34]] 4734*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP30:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4735*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP31:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4736*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB36:%.*]] = sub i32 [[TMP30]], [[TMP31]] 4737*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB37:%.*]] = sub i32 [[SUB36]], 1 4738*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD38:%.*]] = add i32 [[SUB37]], 1 4739*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV39:%.*]] = udiv i32 [[ADD38]], 1 4740*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV40:%.*]] = zext i32 [[DIV39]] to i64 4741*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL41:%.*]] = mul nsw i64 [[MUL35]], [[CONV40]] 4742*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB42:%.*]] = sub nsw i64 [[MUL41]], 1 4743*5b03efb8SMichael Kruse // CHECK2-NEXT: store i64 [[SUB42]], ptr [[DOTCAPTURE_EXPR_22]], align 8 4744*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP32:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 4745*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP32]], ptr [[I]], align 4 4746*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP33:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4747*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP33]], ptr [[J]], align 4 4748*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTFLOOR_0_IV_K]], align 4 4749*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP34:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4750*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[TMP34]], ptr [[DOTTILE_0_IV_K]], align 4 4751*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP35:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 4752*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP36:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_4]], align 4 4753*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP43:%.*]] = icmp slt i32 [[TMP35]], [[TMP36]] 4754*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP43]], label [[LAND_LHS_TRUE:%.*]], label [[OMP_PRECOND_END:%.*]] 4755*5b03efb8SMichael Kruse // CHECK2: land.lhs.true: 4756*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP37:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4757*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP38:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4758*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP44:%.*]] = icmp slt i32 [[TMP37]], [[TMP38]] 4759*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP44]], label [[LAND_LHS_TRUE45:%.*]], label [[OMP_PRECOND_END]] 4760*5b03efb8SMichael Kruse // CHECK2: land.lhs.true45: 4761*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP39:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4762*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP46:%.*]] = icmp ult i32 0, [[TMP39]] 4763*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP46]], label [[LAND_LHS_TRUE47:%.*]], label [[OMP_PRECOND_END]] 4764*5b03efb8SMichael Kruse // CHECK2: land.lhs.true47: 4765*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP40:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4766*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP41:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4767*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP48:%.*]] = icmp ult i32 [[TMP40]], [[TMP41]] 4768*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP48]], label [[OMP_PRECOND_THEN:%.*]], label [[OMP_PRECOND_END]] 4769*5b03efb8SMichael Kruse // CHECK2: omp.precond.then: 4770*5b03efb8SMichael Kruse // CHECK2-NEXT: store i64 0, ptr [[DOTOMP_LB]], align 8 4771*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP42:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_22]], align 8 4772*5b03efb8SMichael Kruse // CHECK2-NEXT: store i64 [[TMP42]], ptr [[DOTOMP_UB]], align 8 4773*5b03efb8SMichael Kruse // CHECK2-NEXT: store i64 1, ptr [[DOTOMP_STRIDE]], align 8 4774*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 0, ptr [[DOTOMP_IS_LAST]], align 4 4775*5b03efb8SMichael Kruse // CHECK2-NEXT: call void @__kmpc_for_static_init_8(ptr @[[GLOB1]], i32 [[TMP0]], i32 34, ptr [[DOTOMP_IS_LAST]], ptr [[DOTOMP_LB]], ptr [[DOTOMP_UB]], ptr [[DOTOMP_STRIDE]], i64 1, i64 1) 4776*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP43:%.*]] = load i64, ptr [[DOTOMP_UB]], align 8 4777*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP44:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_22]], align 8 4778*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP53:%.*]] = icmp sgt i64 [[TMP43]], [[TMP44]] 4779*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP53]], label [[COND_TRUE54:%.*]], label [[COND_FALSE55:%.*]] 4780*5b03efb8SMichael Kruse // CHECK2: cond.true54: 4781*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP45:%.*]] = load i64, ptr [[DOTCAPTURE_EXPR_22]], align 8 4782*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[COND_END56:%.*]] 4783*5b03efb8SMichael Kruse // CHECK2: cond.false55: 4784*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP46:%.*]] = load i64, ptr [[DOTOMP_UB]], align 8 4785*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[COND_END56]] 4786*5b03efb8SMichael Kruse // CHECK2: cond.end56: 4787*5b03efb8SMichael Kruse // CHECK2-NEXT: [[COND57:%.*]] = phi i64 [ [[TMP45]], [[COND_TRUE54]] ], [ [[TMP46]], [[COND_FALSE55]] ] 4788*5b03efb8SMichael Kruse // CHECK2-NEXT: store i64 [[COND57]], ptr [[DOTOMP_UB]], align 8 4789*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP47:%.*]] = load i64, ptr [[DOTOMP_LB]], align 8 4790*5b03efb8SMichael Kruse // CHECK2-NEXT: store i64 [[TMP47]], ptr [[DOTOMP_IV]], align 8 4791*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_COND:%.*]] 4792*5b03efb8SMichael Kruse // CHECK2: omp.inner.for.cond: 4793*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP48:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4794*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP49:%.*]] = load i64, ptr [[DOTOMP_UB]], align 8 4795*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CMP58:%.*]] = icmp sle i64 [[TMP48]], [[TMP49]] 4796*5b03efb8SMichael Kruse // CHECK2-NEXT: br i1 [[CMP58]], label [[OMP_INNER_FOR_BODY:%.*]], label [[OMP_INNER_FOR_END:%.*]] 4797*5b03efb8SMichael Kruse // CHECK2: omp.inner.for.body: 4798*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP50:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_]], align 4 4799*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV59:%.*]] = sext i32 [[TMP50]] to i64 4800*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP51:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4801*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP52:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4802*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP53:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4803*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB60:%.*]] = sub i32 [[TMP52]], [[TMP53]] 4804*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB61:%.*]] = sub i32 [[SUB60]], 1 4805*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP54:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4806*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD62:%.*]] = add i32 [[SUB61]], [[TMP54]] 4807*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP55:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4808*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV63:%.*]] = udiv i32 [[ADD62]], [[TMP55]] 4809*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL64:%.*]] = mul i32 1, [[DIV63]] 4810*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP56:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4811*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB65:%.*]] = sub i32 [[TMP56]], -63 4812*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV66:%.*]] = udiv i32 [[SUB65]], 64 4813*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL67:%.*]] = mul i32 [[MUL64]], [[DIV66]] 4814*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP57:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4815*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP58:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4816*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB68:%.*]] = sub i32 [[TMP57]], [[TMP58]] 4817*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB69:%.*]] = sub i32 [[SUB68]], 1 4818*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD70:%.*]] = add i32 [[SUB69]], 1 4819*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV71:%.*]] = udiv i32 [[ADD70]], 1 4820*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL72:%.*]] = mul i32 [[MUL67]], [[DIV71]] 4821*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV73:%.*]] = zext i32 [[MUL72]] to i64 4822*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV74:%.*]] = sdiv i64 [[TMP51]], [[CONV73]] 4823*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP59:%.*]] = load i32, ptr [[DOTNEW_STEP]], align 4 4824*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV75:%.*]] = sext i32 [[TMP59]] to i64 4825*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL76:%.*]] = mul nsw i64 [[DIV74]], [[CONV75]] 4826*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD77:%.*]] = add nsw i64 [[CONV59]], [[MUL76]] 4827*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV78:%.*]] = trunc i64 [[ADD77]] to i32 4828*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[CONV78]], ptr [[I49]], align 4 4829*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP60:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4830*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV79:%.*]] = sext i32 [[TMP60]] to i64 4831*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP61:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4832*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP62:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4833*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP63:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4834*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP64:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4835*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB80:%.*]] = sub i32 [[TMP63]], [[TMP64]] 4836*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB81:%.*]] = sub i32 [[SUB80]], 1 4837*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP65:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4838*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD82:%.*]] = add i32 [[SUB81]], [[TMP65]] 4839*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP66:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4840*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV83:%.*]] = udiv i32 [[ADD82]], [[TMP66]] 4841*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL84:%.*]] = mul i32 1, [[DIV83]] 4842*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP67:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4843*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB85:%.*]] = sub i32 [[TMP67]], -63 4844*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV86:%.*]] = udiv i32 [[SUB85]], 64 4845*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL87:%.*]] = mul i32 [[MUL84]], [[DIV86]] 4846*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP68:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4847*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP69:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4848*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB88:%.*]] = sub i32 [[TMP68]], [[TMP69]] 4849*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB89:%.*]] = sub i32 [[SUB88]], 1 4850*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD90:%.*]] = add i32 [[SUB89]], 1 4851*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV91:%.*]] = udiv i32 [[ADD90]], 1 4852*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL92:%.*]] = mul i32 [[MUL87]], [[DIV91]] 4853*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV93:%.*]] = zext i32 [[MUL92]] to i64 4854*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV94:%.*]] = sdiv i64 [[TMP62]], [[CONV93]] 4855*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP70:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4856*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP71:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4857*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB95:%.*]] = sub i32 [[TMP70]], [[TMP71]] 4858*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB96:%.*]] = sub i32 [[SUB95]], 1 4859*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP72:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4860*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD97:%.*]] = add i32 [[SUB96]], [[TMP72]] 4861*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP73:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4862*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV98:%.*]] = udiv i32 [[ADD97]], [[TMP73]] 4863*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL99:%.*]] = mul i32 1, [[DIV98]] 4864*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP74:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4865*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB100:%.*]] = sub i32 [[TMP74]], -63 4866*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV101:%.*]] = udiv i32 [[SUB100]], 64 4867*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL102:%.*]] = mul i32 [[MUL99]], [[DIV101]] 4868*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP75:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4869*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP76:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4870*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB103:%.*]] = sub i32 [[TMP75]], [[TMP76]] 4871*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB104:%.*]] = sub i32 [[SUB103]], 1 4872*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD105:%.*]] = add i32 [[SUB104]], 1 4873*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV106:%.*]] = udiv i32 [[ADD105]], 1 4874*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL107:%.*]] = mul i32 [[MUL102]], [[DIV106]] 4875*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV108:%.*]] = zext i32 [[MUL107]] to i64 4876*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL109:%.*]] = mul nsw i64 [[DIV94]], [[CONV108]] 4877*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB110:%.*]] = sub nsw i64 [[TMP61]], [[MUL109]] 4878*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP77:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4879*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB111:%.*]] = sub i32 [[TMP77]], -63 4880*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV112:%.*]] = udiv i32 [[SUB111]], 64 4881*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL113:%.*]] = mul i32 1, [[DIV112]] 4882*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP78:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4883*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP79:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4884*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB114:%.*]] = sub i32 [[TMP78]], [[TMP79]] 4885*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB115:%.*]] = sub i32 [[SUB114]], 1 4886*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD116:%.*]] = add i32 [[SUB115]], 1 4887*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV117:%.*]] = udiv i32 [[ADD116]], 1 4888*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL118:%.*]] = mul i32 [[MUL113]], [[DIV117]] 4889*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV119:%.*]] = zext i32 [[MUL118]] to i64 4890*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV120:%.*]] = sdiv i64 [[SUB110]], [[CONV119]] 4891*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP80:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4892*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV121:%.*]] = sext i32 [[TMP80]] to i64 4893*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL122:%.*]] = mul nsw i64 [[DIV120]], [[CONV121]] 4894*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD123:%.*]] = add nsw i64 [[CONV79]], [[MUL122]] 4895*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV124:%.*]] = trunc i64 [[ADD123]] to i32 4896*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[CONV124]], ptr [[J50]], align 4 4897*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP81:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4898*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP82:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4899*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP83:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4900*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP84:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4901*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB125:%.*]] = sub i32 [[TMP83]], [[TMP84]] 4902*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB126:%.*]] = sub i32 [[SUB125]], 1 4903*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP85:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4904*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD127:%.*]] = add i32 [[SUB126]], [[TMP85]] 4905*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP86:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4906*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV128:%.*]] = udiv i32 [[ADD127]], [[TMP86]] 4907*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL129:%.*]] = mul i32 1, [[DIV128]] 4908*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP87:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4909*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB130:%.*]] = sub i32 [[TMP87]], -63 4910*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV131:%.*]] = udiv i32 [[SUB130]], 64 4911*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL132:%.*]] = mul i32 [[MUL129]], [[DIV131]] 4912*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP88:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4913*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP89:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4914*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB133:%.*]] = sub i32 [[TMP88]], [[TMP89]] 4915*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB134:%.*]] = sub i32 [[SUB133]], 1 4916*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD135:%.*]] = add i32 [[SUB134]], 1 4917*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV136:%.*]] = udiv i32 [[ADD135]], 1 4918*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL137:%.*]] = mul i32 [[MUL132]], [[DIV136]] 4919*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV138:%.*]] = zext i32 [[MUL137]] to i64 4920*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV139:%.*]] = sdiv i64 [[TMP82]], [[CONV138]] 4921*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP90:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4922*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP91:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4923*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB140:%.*]] = sub i32 [[TMP90]], [[TMP91]] 4924*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB141:%.*]] = sub i32 [[SUB140]], 1 4925*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP92:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4926*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD142:%.*]] = add i32 [[SUB141]], [[TMP92]] 4927*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP93:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4928*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV143:%.*]] = udiv i32 [[ADD142]], [[TMP93]] 4929*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL144:%.*]] = mul i32 1, [[DIV143]] 4930*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP94:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4931*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB145:%.*]] = sub i32 [[TMP94]], -63 4932*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV146:%.*]] = udiv i32 [[SUB145]], 64 4933*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL147:%.*]] = mul i32 [[MUL144]], [[DIV146]] 4934*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP95:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4935*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP96:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4936*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB148:%.*]] = sub i32 [[TMP95]], [[TMP96]] 4937*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB149:%.*]] = sub i32 [[SUB148]], 1 4938*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD150:%.*]] = add i32 [[SUB149]], 1 4939*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV151:%.*]] = udiv i32 [[ADD150]], 1 4940*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL152:%.*]] = mul i32 [[MUL147]], [[DIV151]] 4941*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV153:%.*]] = zext i32 [[MUL152]] to i64 4942*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL154:%.*]] = mul nsw i64 [[DIV139]], [[CONV153]] 4943*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB155:%.*]] = sub nsw i64 [[TMP81]], [[MUL154]] 4944*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP97:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4945*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP98:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 4946*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP99:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4947*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP100:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4948*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB156:%.*]] = sub i32 [[TMP99]], [[TMP100]] 4949*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB157:%.*]] = sub i32 [[SUB156]], 1 4950*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP101:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4951*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD158:%.*]] = add i32 [[SUB157]], [[TMP101]] 4952*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP102:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4953*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV159:%.*]] = udiv i32 [[ADD158]], [[TMP102]] 4954*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL160:%.*]] = mul i32 1, [[DIV159]] 4955*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP103:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4956*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB161:%.*]] = sub i32 [[TMP103]], -63 4957*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV162:%.*]] = udiv i32 [[SUB161]], 64 4958*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL163:%.*]] = mul i32 [[MUL160]], [[DIV162]] 4959*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP104:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4960*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP105:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4961*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB164:%.*]] = sub i32 [[TMP104]], [[TMP105]] 4962*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB165:%.*]] = sub i32 [[SUB164]], 1 4963*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD166:%.*]] = add i32 [[SUB165]], 1 4964*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV167:%.*]] = udiv i32 [[ADD166]], 1 4965*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL168:%.*]] = mul i32 [[MUL163]], [[DIV167]] 4966*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV169:%.*]] = zext i32 [[MUL168]] to i64 4967*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV170:%.*]] = sdiv i64 [[TMP98]], [[CONV169]] 4968*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP106:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 4969*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP107:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 4970*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB171:%.*]] = sub i32 [[TMP106]], [[TMP107]] 4971*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB172:%.*]] = sub i32 [[SUB171]], 1 4972*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP108:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4973*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD173:%.*]] = add i32 [[SUB172]], [[TMP108]] 4974*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP109:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 4975*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV174:%.*]] = udiv i32 [[ADD173]], [[TMP109]] 4976*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL175:%.*]] = mul i32 1, [[DIV174]] 4977*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP110:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4978*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB176:%.*]] = sub i32 [[TMP110]], -63 4979*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV177:%.*]] = udiv i32 [[SUB176]], 64 4980*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL178:%.*]] = mul i32 [[MUL175]], [[DIV177]] 4981*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP111:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4982*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP112:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4983*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB179:%.*]] = sub i32 [[TMP111]], [[TMP112]] 4984*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB180:%.*]] = sub i32 [[SUB179]], 1 4985*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD181:%.*]] = add i32 [[SUB180]], 1 4986*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV182:%.*]] = udiv i32 [[ADD181]], 1 4987*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL183:%.*]] = mul i32 [[MUL178]], [[DIV182]] 4988*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV184:%.*]] = zext i32 [[MUL183]] to i64 4989*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL185:%.*]] = mul nsw i64 [[DIV170]], [[CONV184]] 4990*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB186:%.*]] = sub nsw i64 [[TMP97]], [[MUL185]] 4991*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP113:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 4992*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB187:%.*]] = sub i32 [[TMP113]], -63 4993*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV188:%.*]] = udiv i32 [[SUB187]], 64 4994*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL189:%.*]] = mul i32 1, [[DIV188]] 4995*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP114:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 4996*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP115:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 4997*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB190:%.*]] = sub i32 [[TMP114]], [[TMP115]] 4998*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB191:%.*]] = sub i32 [[SUB190]], 1 4999*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD192:%.*]] = add i32 [[SUB191]], 1 5000*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV193:%.*]] = udiv i32 [[ADD192]], 1 5001*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL194:%.*]] = mul i32 [[MUL189]], [[DIV193]] 5002*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV195:%.*]] = zext i32 [[MUL194]] to i64 5003*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV196:%.*]] = sdiv i64 [[SUB186]], [[CONV195]] 5004*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP116:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 5005*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB197:%.*]] = sub i32 [[TMP116]], -63 5006*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV198:%.*]] = udiv i32 [[SUB197]], 64 5007*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL199:%.*]] = mul i32 1, [[DIV198]] 5008*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP117:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 5009*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP118:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 5010*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB200:%.*]] = sub i32 [[TMP117]], [[TMP118]] 5011*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB201:%.*]] = sub i32 [[SUB200]], 1 5012*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD202:%.*]] = add i32 [[SUB201]], 1 5013*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV203:%.*]] = udiv i32 [[ADD202]], 1 5014*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL204:%.*]] = mul i32 [[MUL199]], [[DIV203]] 5015*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV205:%.*]] = zext i32 [[MUL204]] to i64 5016*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL206:%.*]] = mul nsw i64 [[DIV196]], [[CONV205]] 5017*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB207:%.*]] = sub nsw i64 [[SUB155]], [[MUL206]] 5018*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP119:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 5019*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP120:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 5020*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB208:%.*]] = sub i32 [[TMP119]], [[TMP120]] 5021*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB209:%.*]] = sub i32 [[SUB208]], 1 5022*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD210:%.*]] = add i32 [[SUB209]], 1 5023*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV211:%.*]] = udiv i32 [[ADD210]], 1 5024*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL212:%.*]] = mul i32 1, [[DIV211]] 5025*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV213:%.*]] = zext i32 [[MUL212]] to i64 5026*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV214:%.*]] = sdiv i64 [[SUB207]], [[CONV213]] 5027*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL215:%.*]] = mul nsw i64 [[DIV214]], 64 5028*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD216:%.*]] = add nsw i64 0, [[MUL215]] 5029*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV217:%.*]] = trunc i64 [[ADD216]] to i32 5030*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[CONV217]], ptr [[DOTFLOOR_0_IV_K51]], align 4 5031*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP121:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 5032*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV218:%.*]] = zext i32 [[TMP121]] to i64 5033*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP122:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 5034*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP123:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 5035*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP124:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 5036*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP125:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 5037*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB219:%.*]] = sub i32 [[TMP124]], [[TMP125]] 5038*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB220:%.*]] = sub i32 [[SUB219]], 1 5039*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP126:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 5040*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD221:%.*]] = add i32 [[SUB220]], [[TMP126]] 5041*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP127:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 5042*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV222:%.*]] = udiv i32 [[ADD221]], [[TMP127]] 5043*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL223:%.*]] = mul i32 1, [[DIV222]] 5044*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP128:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 5045*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB224:%.*]] = sub i32 [[TMP128]], -63 5046*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV225:%.*]] = udiv i32 [[SUB224]], 64 5047*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL226:%.*]] = mul i32 [[MUL223]], [[DIV225]] 5048*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP129:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 5049*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP130:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 5050*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB227:%.*]] = sub i32 [[TMP129]], [[TMP130]] 5051*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB228:%.*]] = sub i32 [[SUB227]], 1 5052*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD229:%.*]] = add i32 [[SUB228]], 1 5053*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV230:%.*]] = udiv i32 [[ADD229]], 1 5054*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL231:%.*]] = mul i32 [[MUL226]], [[DIV230]] 5055*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV232:%.*]] = zext i32 [[MUL231]] to i64 5056*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV233:%.*]] = sdiv i64 [[TMP123]], [[CONV232]] 5057*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP131:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 5058*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP132:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 5059*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB234:%.*]] = sub i32 [[TMP131]], [[TMP132]] 5060*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB235:%.*]] = sub i32 [[SUB234]], 1 5061*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP133:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 5062*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD236:%.*]] = add i32 [[SUB235]], [[TMP133]] 5063*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP134:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 5064*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV237:%.*]] = udiv i32 [[ADD236]], [[TMP134]] 5065*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL238:%.*]] = mul i32 1, [[DIV237]] 5066*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP135:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 5067*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB239:%.*]] = sub i32 [[TMP135]], -63 5068*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV240:%.*]] = udiv i32 [[SUB239]], 64 5069*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL241:%.*]] = mul i32 [[MUL238]], [[DIV240]] 5070*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP136:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 5071*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP137:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 5072*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB242:%.*]] = sub i32 [[TMP136]], [[TMP137]] 5073*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB243:%.*]] = sub i32 [[SUB242]], 1 5074*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD244:%.*]] = add i32 [[SUB243]], 1 5075*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV245:%.*]] = udiv i32 [[ADD244]], 1 5076*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL246:%.*]] = mul i32 [[MUL241]], [[DIV245]] 5077*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV247:%.*]] = zext i32 [[MUL246]] to i64 5078*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL248:%.*]] = mul nsw i64 [[DIV233]], [[CONV247]] 5079*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB249:%.*]] = sub nsw i64 [[TMP122]], [[MUL248]] 5080*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP138:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 5081*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP139:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 5082*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP140:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 5083*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP141:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 5084*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB250:%.*]] = sub i32 [[TMP140]], [[TMP141]] 5085*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB251:%.*]] = sub i32 [[SUB250]], 1 5086*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP142:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 5087*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD252:%.*]] = add i32 [[SUB251]], [[TMP142]] 5088*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP143:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 5089*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV253:%.*]] = udiv i32 [[ADD252]], [[TMP143]] 5090*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL254:%.*]] = mul i32 1, [[DIV253]] 5091*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP144:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 5092*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB255:%.*]] = sub i32 [[TMP144]], -63 5093*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV256:%.*]] = udiv i32 [[SUB255]], 64 5094*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL257:%.*]] = mul i32 [[MUL254]], [[DIV256]] 5095*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP145:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 5096*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP146:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 5097*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB258:%.*]] = sub i32 [[TMP145]], [[TMP146]] 5098*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB259:%.*]] = sub i32 [[SUB258]], 1 5099*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD260:%.*]] = add i32 [[SUB259]], 1 5100*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV261:%.*]] = udiv i32 [[ADD260]], 1 5101*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL262:%.*]] = mul i32 [[MUL257]], [[DIV261]] 5102*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV263:%.*]] = zext i32 [[MUL262]] to i64 5103*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV264:%.*]] = sdiv i64 [[TMP139]], [[CONV263]] 5104*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP147:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 5105*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP148:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 5106*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB265:%.*]] = sub i32 [[TMP147]], [[TMP148]] 5107*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB266:%.*]] = sub i32 [[SUB265]], 1 5108*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP149:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 5109*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD267:%.*]] = add i32 [[SUB266]], [[TMP149]] 5110*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP150:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 5111*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV268:%.*]] = udiv i32 [[ADD267]], [[TMP150]] 5112*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL269:%.*]] = mul i32 1, [[DIV268]] 5113*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP151:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 5114*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB270:%.*]] = sub i32 [[TMP151]], -63 5115*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV271:%.*]] = udiv i32 [[SUB270]], 64 5116*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL272:%.*]] = mul i32 [[MUL269]], [[DIV271]] 5117*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP152:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 5118*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP153:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 5119*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB273:%.*]] = sub i32 [[TMP152]], [[TMP153]] 5120*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB274:%.*]] = sub i32 [[SUB273]], 1 5121*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD275:%.*]] = add i32 [[SUB274]], 1 5122*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV276:%.*]] = udiv i32 [[ADD275]], 1 5123*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL277:%.*]] = mul i32 [[MUL272]], [[DIV276]] 5124*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV278:%.*]] = zext i32 [[MUL277]] to i64 5125*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL279:%.*]] = mul nsw i64 [[DIV264]], [[CONV278]] 5126*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB280:%.*]] = sub nsw i64 [[TMP138]], [[MUL279]] 5127*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP154:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 5128*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB281:%.*]] = sub i32 [[TMP154]], -63 5129*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV282:%.*]] = udiv i32 [[SUB281]], 64 5130*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL283:%.*]] = mul i32 1, [[DIV282]] 5131*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP155:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 5132*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP156:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 5133*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB284:%.*]] = sub i32 [[TMP155]], [[TMP156]] 5134*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB285:%.*]] = sub i32 [[SUB284]], 1 5135*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD286:%.*]] = add i32 [[SUB285]], 1 5136*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV287:%.*]] = udiv i32 [[ADD286]], 1 5137*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL288:%.*]] = mul i32 [[MUL283]], [[DIV287]] 5138*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV289:%.*]] = zext i32 [[MUL288]] to i64 5139*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV290:%.*]] = sdiv i64 [[SUB280]], [[CONV289]] 5140*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP157:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 5141*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB291:%.*]] = sub i32 [[TMP157]], -63 5142*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV292:%.*]] = udiv i32 [[SUB291]], 64 5143*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL293:%.*]] = mul i32 1, [[DIV292]] 5144*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP158:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 5145*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP159:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 5146*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB294:%.*]] = sub i32 [[TMP158]], [[TMP159]] 5147*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB295:%.*]] = sub i32 [[SUB294]], 1 5148*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD296:%.*]] = add i32 [[SUB295]], 1 5149*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV297:%.*]] = udiv i32 [[ADD296]], 1 5150*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL298:%.*]] = mul i32 [[MUL293]], [[DIV297]] 5151*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV299:%.*]] = zext i32 [[MUL298]] to i64 5152*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL300:%.*]] = mul nsw i64 [[DIV290]], [[CONV299]] 5153*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB301:%.*]] = sub nsw i64 [[SUB249]], [[MUL300]] 5154*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP160:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 5155*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP161:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 5156*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP162:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 5157*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP163:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 5158*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB302:%.*]] = sub i32 [[TMP162]], [[TMP163]] 5159*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB303:%.*]] = sub i32 [[SUB302]], 1 5160*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP164:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 5161*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD304:%.*]] = add i32 [[SUB303]], [[TMP164]] 5162*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP165:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 5163*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV305:%.*]] = udiv i32 [[ADD304]], [[TMP165]] 5164*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL306:%.*]] = mul i32 1, [[DIV305]] 5165*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP166:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 5166*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB307:%.*]] = sub i32 [[TMP166]], -63 5167*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV308:%.*]] = udiv i32 [[SUB307]], 64 5168*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL309:%.*]] = mul i32 [[MUL306]], [[DIV308]] 5169*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP167:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 5170*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP168:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 5171*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB310:%.*]] = sub i32 [[TMP167]], [[TMP168]] 5172*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB311:%.*]] = sub i32 [[SUB310]], 1 5173*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD312:%.*]] = add i32 [[SUB311]], 1 5174*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV313:%.*]] = udiv i32 [[ADD312]], 1 5175*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL314:%.*]] = mul i32 [[MUL309]], [[DIV313]] 5176*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV315:%.*]] = zext i32 [[MUL314]] to i64 5177*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV316:%.*]] = sdiv i64 [[TMP161]], [[CONV315]] 5178*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP169:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 5179*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP170:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 5180*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB317:%.*]] = sub i32 [[TMP169]], [[TMP170]] 5181*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB318:%.*]] = sub i32 [[SUB317]], 1 5182*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP171:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 5183*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD319:%.*]] = add i32 [[SUB318]], [[TMP171]] 5184*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP172:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 5185*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV320:%.*]] = udiv i32 [[ADD319]], [[TMP172]] 5186*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL321:%.*]] = mul i32 1, [[DIV320]] 5187*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP173:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 5188*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB322:%.*]] = sub i32 [[TMP173]], -63 5189*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV323:%.*]] = udiv i32 [[SUB322]], 64 5190*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL324:%.*]] = mul i32 [[MUL321]], [[DIV323]] 5191*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP174:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 5192*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP175:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 5193*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB325:%.*]] = sub i32 [[TMP174]], [[TMP175]] 5194*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB326:%.*]] = sub i32 [[SUB325]], 1 5195*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD327:%.*]] = add i32 [[SUB326]], 1 5196*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV328:%.*]] = udiv i32 [[ADD327]], 1 5197*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL329:%.*]] = mul i32 [[MUL324]], [[DIV328]] 5198*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV330:%.*]] = zext i32 [[MUL329]] to i64 5199*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL331:%.*]] = mul nsw i64 [[DIV316]], [[CONV330]] 5200*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB332:%.*]] = sub nsw i64 [[TMP160]], [[MUL331]] 5201*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP176:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 5202*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP177:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 5203*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP178:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 5204*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP179:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 5205*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB333:%.*]] = sub i32 [[TMP178]], [[TMP179]] 5206*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB334:%.*]] = sub i32 [[SUB333]], 1 5207*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP180:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 5208*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD335:%.*]] = add i32 [[SUB334]], [[TMP180]] 5209*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP181:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 5210*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV336:%.*]] = udiv i32 [[ADD335]], [[TMP181]] 5211*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL337:%.*]] = mul i32 1, [[DIV336]] 5212*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP182:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 5213*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB338:%.*]] = sub i32 [[TMP182]], -63 5214*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV339:%.*]] = udiv i32 [[SUB338]], 64 5215*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL340:%.*]] = mul i32 [[MUL337]], [[DIV339]] 5216*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP183:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 5217*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP184:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 5218*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB341:%.*]] = sub i32 [[TMP183]], [[TMP184]] 5219*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB342:%.*]] = sub i32 [[SUB341]], 1 5220*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD343:%.*]] = add i32 [[SUB342]], 1 5221*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV344:%.*]] = udiv i32 [[ADD343]], 1 5222*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL345:%.*]] = mul i32 [[MUL340]], [[DIV344]] 5223*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV346:%.*]] = zext i32 [[MUL345]] to i64 5224*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV347:%.*]] = sdiv i64 [[TMP177]], [[CONV346]] 5225*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP185:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_6]], align 4 5226*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP186:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_5]], align 4 5227*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB348:%.*]] = sub i32 [[TMP185]], [[TMP186]] 5228*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB349:%.*]] = sub i32 [[SUB348]], 1 5229*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP187:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 5230*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD350:%.*]] = add i32 [[SUB349]], [[TMP187]] 5231*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP188:%.*]] = load i32, ptr [[DOTNEW_STEP7]], align 4 5232*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV351:%.*]] = udiv i32 [[ADD350]], [[TMP188]] 5233*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL352:%.*]] = mul i32 1, [[DIV351]] 5234*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP189:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 5235*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB353:%.*]] = sub i32 [[TMP189]], -63 5236*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV354:%.*]] = udiv i32 [[SUB353]], 64 5237*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL355:%.*]] = mul i32 [[MUL352]], [[DIV354]] 5238*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP190:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 5239*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP191:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 5240*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB356:%.*]] = sub i32 [[TMP190]], [[TMP191]] 5241*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB357:%.*]] = sub i32 [[SUB356]], 1 5242*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD358:%.*]] = add i32 [[SUB357]], 1 5243*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV359:%.*]] = udiv i32 [[ADD358]], 1 5244*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL360:%.*]] = mul i32 [[MUL355]], [[DIV359]] 5245*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV361:%.*]] = zext i32 [[MUL360]] to i64 5246*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL362:%.*]] = mul nsw i64 [[DIV347]], [[CONV361]] 5247*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB363:%.*]] = sub nsw i64 [[TMP176]], [[MUL362]] 5248*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP192:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 5249*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB364:%.*]] = sub i32 [[TMP192]], -63 5250*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV365:%.*]] = udiv i32 [[SUB364]], 64 5251*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL366:%.*]] = mul i32 1, [[DIV365]] 5252*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP193:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 5253*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP194:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 5254*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB367:%.*]] = sub i32 [[TMP193]], [[TMP194]] 5255*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB368:%.*]] = sub i32 [[SUB367]], 1 5256*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD369:%.*]] = add i32 [[SUB368]], 1 5257*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV370:%.*]] = udiv i32 [[ADD369]], 1 5258*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL371:%.*]] = mul i32 [[MUL366]], [[DIV370]] 5259*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV372:%.*]] = zext i32 [[MUL371]] to i64 5260*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV373:%.*]] = sdiv i64 [[SUB363]], [[CONV372]] 5261*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP195:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_14]], align 4 5262*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB374:%.*]] = sub i32 [[TMP195]], -63 5263*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV375:%.*]] = udiv i32 [[SUB374]], 64 5264*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL376:%.*]] = mul i32 1, [[DIV375]] 5265*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP196:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 5266*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP197:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 5267*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB377:%.*]] = sub i32 [[TMP196]], [[TMP197]] 5268*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB378:%.*]] = sub i32 [[SUB377]], 1 5269*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD379:%.*]] = add i32 [[SUB378]], 1 5270*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV380:%.*]] = udiv i32 [[ADD379]], 1 5271*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL381:%.*]] = mul i32 [[MUL376]], [[DIV380]] 5272*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV382:%.*]] = zext i32 [[MUL381]] to i64 5273*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL383:%.*]] = mul nsw i64 [[DIV373]], [[CONV382]] 5274*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB384:%.*]] = sub nsw i64 [[SUB332]], [[MUL383]] 5275*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP198:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 5276*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP199:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 5277*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB385:%.*]] = sub i32 [[TMP198]], [[TMP199]] 5278*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB386:%.*]] = sub i32 [[SUB385]], 1 5279*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD387:%.*]] = add i32 [[SUB386]], 1 5280*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV388:%.*]] = udiv i32 [[ADD387]], 1 5281*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL389:%.*]] = mul i32 1, [[DIV388]] 5282*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV390:%.*]] = zext i32 [[MUL389]] to i64 5283*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV391:%.*]] = sdiv i64 [[SUB384]], [[CONV390]] 5284*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP200:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_17]], align 4 5285*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP201:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_16]], align 4 5286*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB392:%.*]] = sub i32 [[TMP200]], [[TMP201]] 5287*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB393:%.*]] = sub i32 [[SUB392]], 1 5288*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD394:%.*]] = add i32 [[SUB393]], 1 5289*5b03efb8SMichael Kruse // CHECK2-NEXT: [[DIV395:%.*]] = udiv i32 [[ADD394]], 1 5290*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL396:%.*]] = mul i32 1, [[DIV395]] 5291*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV397:%.*]] = zext i32 [[MUL396]] to i64 5292*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL398:%.*]] = mul nsw i64 [[DIV391]], [[CONV397]] 5293*5b03efb8SMichael Kruse // CHECK2-NEXT: [[SUB399:%.*]] = sub nsw i64 [[SUB301]], [[MUL398]] 5294*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL400:%.*]] = mul nsw i64 [[SUB399]], 1 5295*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD401:%.*]] = add nsw i64 [[CONV218]], [[MUL400]] 5296*5b03efb8SMichael Kruse // CHECK2-NEXT: [[CONV402:%.*]] = trunc i64 [[ADD401]] to i32 5297*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[CONV402]], ptr [[DOTTILE_0_IV_K52]], align 4 5298*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP202:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_8]], align 4 5299*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP203:%.*]] = load i32, ptr [[DOTTILE_0_IV_K52]], align 4 5300*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP204:%.*]] = load i32, ptr [[DOTNEW_STEP10]], align 4 5301*5b03efb8SMichael Kruse // CHECK2-NEXT: [[MUL403:%.*]] = mul i32 [[TMP203]], [[TMP204]] 5302*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD404:%.*]] = add i32 [[TMP202]], [[MUL403]] 5303*5b03efb8SMichael Kruse // CHECK2-NEXT: store i32 [[ADD404]], ptr [[K]], align 4 5304*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP205:%.*]] = load i32, ptr [[I49]], align 4 5305*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP206:%.*]] = load i32, ptr [[J50]], align 4 5306*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP207:%.*]] = load i32, ptr [[K]], align 4 5307*5b03efb8SMichael Kruse // CHECK2-NEXT: call void (...) @body(i32 noundef [[TMP205]], i32 noundef [[TMP206]], i32 noundef [[TMP207]]) 5308*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[OMP_BODY_CONTINUE:%.*]] 5309*5b03efb8SMichael Kruse // CHECK2: omp.body.continue: 5310*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_INC:%.*]] 5311*5b03efb8SMichael Kruse // CHECK2: omp.inner.for.inc: 5312*5b03efb8SMichael Kruse // CHECK2-NEXT: [[TMP208:%.*]] = load i64, ptr [[DOTOMP_IV]], align 8 5313*5b03efb8SMichael Kruse // CHECK2-NEXT: [[ADD405:%.*]] = add nsw i64 [[TMP208]], 1 5314*5b03efb8SMichael Kruse // CHECK2-NEXT: store i64 [[ADD405]], ptr [[DOTOMP_IV]], align 8 5315*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[OMP_INNER_FOR_COND]] 5316*5b03efb8SMichael Kruse // CHECK2: omp.inner.for.end: 5317*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[OMP_LOOP_EXIT:%.*]] 5318*5b03efb8SMichael Kruse // CHECK2: omp.loop.exit: 5319*5b03efb8SMichael Kruse // CHECK2-NEXT: call void @__kmpc_for_static_fini(ptr @[[GLOB1]], i32 [[TMP0]]) 5320*5b03efb8SMichael Kruse // CHECK2-NEXT: br label [[OMP_PRECOND_END]] 5321*5b03efb8SMichael Kruse // CHECK2: omp.precond.end: 5322*5b03efb8SMichael Kruse // CHECK2-NEXT: call void @__kmpc_barrier(ptr @[[GLOB3]], i32 [[TMP0]]) 5323*5b03efb8SMichael Kruse // CHECK2-NEXT: ret void 5324*5b03efb8SMichael Kruse 5325