Skip to content

Commit 9f5a7a5

Browse files
committed
[llvm-cov] Reproduce binary of branch-c-general
1 parent ab9d9b6 commit 9f5a7a5

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed
Binary file not shown.

llvm/test/tools/llvm-cov/branch-c-general.test

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -116,25 +116,25 @@
116116

117117
// REPORT: Name Regions Miss Cover Lines Miss Cover Branches Miss Cover
118118
// REPORT-NEXT: ---
119-
// REPORT-NEXT: simple_loops 8 0 100.00% 9 0 100.00% 6 0 100.00%
120-
// REPORT-NEXT: conditionals 24 0 100.00% 15 0 100.00% 16 2 87.50%
121-
// REPORT-NEXT: early_exits 20 4 80.00% 25 2 92.00% 16 6 62.50%
122-
// REPORT-NEXT: jumps 39 12 69.23% 48 2 95.83% 26 9 65.38%
123-
// REPORT-NEXT: switches 28 5 82.14% 38 4 89.47% 30 9 70.00%
124-
// REPORT-NEXT: big_switch 25 1 96.00% 32 0 100.00% 30 6 80.00%
125-
// REPORT-NEXT: boolean_operators 16 0 100.00% 13 0 100.00% 22 2 90.91%
126-
// REPORT-NEXT: boolop_loops 19 0 100.00% 14 0 100.00% 16 2 87.50%
127-
// REPORT-NEXT: conditional_operator 4 2 50.00% 8 0 100.00% 4 2 50.00%
128-
// REPORT-NEXT: do_fallthrough 9 0 100.00% 12 0 100.00% 6 0 100.00%
119+
// REPORT-NEXT: simple_loops 8 0 100.00% 8 0 100.00% 6 0 100.00%
120+
// REPORT-NEXT: conditionals 24 0 100.00% 13 0 100.00% 16 2 87.50%
121+
// REPORT-NEXT: early_exits 20 4 80.00% 19 2 89.47% 16 6 62.50%
122+
// REPORT-NEXT: jumps 39 12 69.23% 38 3 92.11% 28 10 64.29%
123+
// REPORT-NEXT: switches 27 4 85.19% 30 2 93.33% 32 10 68.75%
124+
// REPORT-NEXT: big_switch 25 1 96.00% 26 0 100.00% 30 6 80.00%
125+
// REPORT-NEXT: boolean_operators 16 0 100.00% 9 0 100.00% 22 2 90.91%
126+
// REPORT-NEXT: boolop_loops 19 0 100.00% 9 0 100.00% 16 2 87.50%
127+
// REPORT-NEXT: conditional_operator 6 2 66.67% 5 0 100.00% 4 2 50.00%
128+
// REPORT-NEXT: do_fallthrough 9 0 100.00% 9 0 100.00% 6 0 100.00%
129129
// REPORT-NEXT: main 1 0 100.00% 16 0 100.00% 0 0 0.00%
130130
// REPORT-NEXT: c-general.c:static_func 4 0 100.00% 4 0 100.00% 2 0 100.00%
131131
// REPORT-NEXT: ---
132-
// REPORT-NEXT: TOTAL 197 24 87.82% 234 8 96.58% 174 38 78.16%
132+
// REPORT-NEXT: TOTAL 198 23 88.38% 186 7 96.24% 178 40 77.53%
133133

134134
// Test file-level report.
135135
// RUN: llvm-profdata merge %S/Inputs/branch-c-general.proftext -o %t.profdata
136136
// RUN: llvm-cov report %S/Inputs/branch-c-general.o32l -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs %S/Inputs/branch-c-general.c | FileCheck %s -check-prefix=FILEREPORT
137-
// FILEREPORT: TOTAL{{.*}}174 38 78.16%
137+
// FILEREPORT: TOTAL{{.*}}178 40 77.53%
138138

139139
// Test color True/False output.
140140
// RUN: llvm-cov show --use-color --show-branches=count %S/Inputs/branch-c-general.o32l -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs %S/Inputs/branch-c-general.c | FileCheck %s -check-prefix=USECOLOR
@@ -157,10 +157,10 @@
157157
// HTML-INDEX: <td class='column-entry-green'>
158158
// HTML-INDEX: 100.00% (12/12)
159159
// HTML-INDEX: <td class='column-entry-yellow'>
160-
// HTML-INDEX: 96.58% (226/234)
160+
// HTML-INDEX: 96.24% (179/186)
161161
// HTML-INDEX: <td class='column-entry-yellow'>
162-
// HTML-INDEX: 87.82% (173/197)
162+
// HTML-INDEX: 88.38% (175/198)
163163
// HTML-INDEX: <td class='column-entry-red'>
164-
// HTML-INDEX: 78.16% (136/174)
164+
// HTML-INDEX: 77.53% (138/178)
165165
// HTML-INDEX: <tr class='light-row-bold'>
166166
// HTML-INDEX: Totals

llvm/test/tools/llvm-cov/branch-noShowBranch.test

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
// REPORT: Name Regions Miss Cover Lines Miss Cover
99
// REPORT-NOT: Name Regions Miss Cover Lines Miss Cover Branches Miss Cover
1010
// REPORT: ---
11-
// REPORT-NOT: simple_loops 8 0 100.00% 9 0 100.00% 6 0 100.00%
12-
// REPORT-NOT: conditionals 24 0 100.00% 15 0 100.00% 16 2 87.50%
13-
// REPORT-NOT: early_exits 20 4 80.00% 25 2 92.00% 16 6 62.50%
14-
// REPORT-NOT: jumps 39 12 69.23% 48 2 95.83% 26 9 65.38%
15-
// REPORT-NOT: switches 28 5 82.14% 38 4 89.47% 30 9 70.00%
16-
// REPORT-NOT: big_switch 25 1 96.00% 32 0 100.00% 30 6 80.00%
17-
// REPORT-NOT: boolean_operators 16 0 100.00% 13 0 100.00% 22 2 90.91%
18-
// REPORT-NOT: boolop_loops 19 0 100.00% 14 0 100.00% 16 2 87.50%
19-
// REPORT-NOT: conditional_operator 4 2 50.00% 8 0 100.00% 4 2 50.00%
20-
// REPORT-NOT: do_fallthrough 9 0 100.00% 12 0 100.00% 6 0 100.00%
11+
// REPORT-NOT: simple_loops 8 0 100.00% 8 0 100.00% 6 0 100.00%
12+
// REPORT-NOT: conditionals 24 0 100.00% 13 0 100.00% 16 2 87.50%
13+
// REPORT-NOT: early_exits 20 4 80.00% 19 2 89.47% 16 6 62.50%
14+
// REPORT-NOT: jumps 39 12 69.23% 38 3 92.11% 28 10 64.29%
15+
// REPORT-NOT: switches 27 4 85.19% 30 2 93.33% 32 10 68.75%
16+
// REPORT-NOT: big_switch 25 1 96.00% 26 0 100.00% 30 6 80.00%
17+
// REPORT-NOT: boolean_operators 16 0 100.00% 9 0 100.00% 22 2 90.91%
18+
// REPORT-NOT: boolop_loops 19 0 100.00% 9 0 100.00% 16 2 87.50%
19+
// REPORT-NOT: conditional_operator 6 2 66.67% 5 0 100.00% 4 2 50.00%
20+
// REPORT-NOT: do_fallthrough 9 0 100.00% 9 0 100.00% 6 0 100.00%
2121
// REPORT-NOT: main 1 0 100.00% 16 0 100.00% 0 0 0.00%
2222
// REPORT-NOT: c-general.c:static_func 4 0 100.00% 4 0 100.00% 2 0 100.00%
23-
// REPORT: TOTAL 197 24 87.82% 234 8 96.58%
24-
// REPORT-NOT: TOTAL 197 24 87.82% 234 13 94.44% 174 38 78.16%
23+
// REPORT: TOTAL 198 23 88.38% 186 7 96.24%
24+
// REPORT-NOT: TOTAL 198 23 88.38% 186 7 96.24% 178 40 77.53%
2525

0 commit comments

Comments
 (0)