Skip to content

Commit 154c840

Browse files
committed
Update coverage LLVM IR test
This uses comdats since LLVM 13, causing various minor changes to the output.
1 parent b5cc03b commit 154c840

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/test/run-make-fulldeps/coverage-llvmir/filecheck.testprog.txt

+4-5
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,25 @@ CHECK-SAME: section "[[INSTR_PROF_COVMAP]]", align 8
1212
WINDOWS: @__llvm_profile_runtime = external global i32
1313

1414
CHECK: @__profc__R{{[a-zA-Z0-9_]+}}testprog14will_be_called = [[PRIVATE_GLOBAL]]
15-
CHECK-SAME: section "[[INSTR_PROF_CNTS]]", align 8
15+
CHECK-SAME: section "[[INSTR_PROF_CNTS]]"{{.*}}, align 8
1616

1717
CHECK: @__profd__R{{[a-zA-Z0-9_]+}}testprog14will_be_called = [[PRIVATE_GLOBAL]]
1818
CHECK-SAME: @__profc__R{{[a-zA-Z0-9_]+}}testprog14will_be_called,
19-
CHECK-SAME: section "[[INSTR_PROF_DATA]]", align 8
19+
CHECK-SAME: section "[[INSTR_PROF_DATA]]"{{.*}}, align 8
2020

2121
CHECK: @__profc__R{{[a-zA-Z0-9_]+}}testprog4main = [[PRIVATE_GLOBAL]]
22-
CHECK-SAME: section "[[INSTR_PROF_CNTS]]", align 8
22+
CHECK-SAME: section "[[INSTR_PROF_CNTS]]"{{.*}}, align 8
2323

2424
CHECK: @__profd__R{{[a-zA-Z0-9_]+}}testprog4main = [[PRIVATE_GLOBAL]]
2525
CHECK-SAME: @__profc__R{{[a-zA-Z0-9_]+}}testprog4main,
26-
CHECK-SAME: section "[[INSTR_PROF_DATA]]", align 8
26+
CHECK-SAME: section "[[INSTR_PROF_DATA]]"{{.*}}, align 8
2727

2828
CHECK: @__llvm_prf_nm = private constant
2929
CHECK-SAME: section "[[INSTR_PROF_NAME]]", align 1
3030

3131
CHECK: @llvm.used = appending global
3232
CHECK-SAME: i8* bitcast ({ {{.*}} }* @__llvm_coverage_mapping to i8*)
3333
WINDOWS-SAME: i8* bitcast (i32 ()* @__llvm_profile_runtime_user to i8*)
34-
CHECK-SAME: i8* bitcast ({ {{.*}} }* @__profd__R{{[a-zA-Z0-9_]*}}testprog4main to i8*)
3534
CHECK-SAME: i8* getelementptr inbounds ({{.*}}* @__llvm_prf_nm, i32 0, i32 0)
3635
CHECK-SAME: section "llvm.metadata"
3736

0 commit comments

Comments
 (0)