@@ -20,9 +20,7 @@ int test(int a, int b, int c, int d, int e, int f) {
2020// MCDC-LABEL: cond.true:
2121// MCDC-DAG: %[[TEMP:mcdc.temp[0-9]*]] = load i32, ptr %mcdc.addr, align 4
2222// MCDC: %[[LAB1:[0-9]+]] = lshr i32 %[[TEMP]], 3
23- // MCDC: %[[LAB2:[0-9]+]] = zext i32 %[[LAB1]] to i64
24- // MCDC: %[[LAB3:[0-9]+]] = add i64 ptrtoint (ptr @__profbm_test to i64), %[[LAB2]]
25- // MCDC: %[[LAB4:[0-9]+]] = inttoptr i64 %[[LAB3]] to ptr
23+ // MCDC: %[[LAB4:[0-9]+]] = getelementptr inbounds i8, ptr @__profbm_test, i32 %[[LAB1]]
2624// MCDC: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
2725// MCDC: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
2826// MCDC: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
@@ -38,9 +36,7 @@ int test(int a, int b, int c, int d, int e, int f) {
3836// MCDC-LABEL: land.end:
3937// MCDC-DAG: %[[TEMP:mcdc.temp[0-9]*]] = load i32, ptr %mcdc.addr, align 4
4038// MCDC: %[[LAB1:[0-9]+]] = lshr i32 %[[TEMP]], 3
41- // MCDC: %[[LAB2:[0-9]+]] = zext i32 %[[LAB1]] to i64
42- // MCDC: %[[LAB3:[0-9]+]] = add i64 ptrtoint (ptr getelementptr inbounds ([3 x i8], ptr @__profbm_test, i32 0, i32 1) to i64), %[[LAB2]]
43- // MCDC: %[[LAB4:[0-9]+]] = inttoptr i64 %[[LAB3]] to ptr
39+ // MCDC: %[[LAB4:[0-9]+]] = getelementptr inbounds i8, ptr getelementptr inbounds ([3 x i8], ptr @__profbm_test, i32 0, i32 1), i32 %[[LAB1]]
4440// MCDC: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
4541// MCDC: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
4642// MCDC: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
@@ -52,9 +48,7 @@ int test(int a, int b, int c, int d, int e, int f) {
5248// MCDC-LABEL: cond.false:
5349// MCDC-DAG: %[[TEMP:mcdc.temp[0-9]*]] = load i32, ptr %mcdc.addr, align 4
5450// MCDC: %[[LAB1:[0-9]+]] = lshr i32 %[[TEMP]], 3
55- // MCDC: %[[LAB2:[0-9]+]] = zext i32 %[[LAB1]] to i64
56- // MCDC: %[[LAB3:[0-9]+]] = add i64 ptrtoint (ptr @__profbm_test to i64), %[[LAB2]]
57- // MCDC: %[[LAB4:[0-9]+]] = inttoptr i64 %[[LAB3]] to ptr
51+ // MCDC: %[[LAB4:[0-9]+]] = getelementptr inbounds i8, ptr @__profbm_test, i32 %[[LAB1]]
5852// MCDC: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
5953// MCDC: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
6054// MCDC: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
@@ -70,9 +64,7 @@ int test(int a, int b, int c, int d, int e, int f) {
7064// MCDC-LABEL: lor.end:
7165// MCDC-DAG: %[[TEMP:mcdc.temp[0-9]*]] = load i32, ptr %mcdc.addr, align 4
7266// MCDC: %[[LAB1:[0-9]+]] = lshr i32 %[[TEMP]], 3
73- // MCDC: %[[LAB2:[0-9]+]] = zext i32 %[[LAB1]] to i64
74- // MCDC: %[[LAB3:[0-9]+]] = add i64 ptrtoint (ptr getelementptr inbounds ([3 x i8], ptr @__profbm_test, i32 0, i32 2) to i64), %[[LAB2]]
75- // MCDC: %[[LAB4:[0-9]+]] = inttoptr i64 %[[LAB3]] to ptr
67+ // MCDC: %[[LAB4:[0-9]+]] = getelementptr inbounds i8, ptr getelementptr inbounds ([3 x i8], ptr @__profbm_test, i32 0, i32 2), i32 %[[LAB1]]
7668// MCDC: %[[LAB5:[0-9]+]] = and i32 %[[TEMP]], 7
7769// MCDC: %[[LAB6:[0-9]+]] = trunc i32 %[[LAB5]] to i8
7870// MCDC: %[[LAB7:[0-9]+]] = shl i8 1, %[[LAB6]]
0 commit comments