Skip to content

Commit c8418c4

Browse files
committed
Fix comparing in instrprof-binary-correlate.c
1 parent bf2b035 commit c8418c4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

compiler-rt/test/profile/instrprof-binary-correlate.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
// RUN: llvm-profdata merge -o %t-1.profdata --binary-file=%t-1.exe %t-1.profraw
1313
// RUN: llvm-cov report --instr-profile=%t-1.profdata %t-1.exe > %t-1.report
1414
// RUN: llvm-cov show --instr-profile=%t-1.profdata %t-1.exe > %t-1.show
15-
// RUN: diff %t.normal.profdata %t-1.profdata
15+
// RUN: llvm-profdata show --all-functions --counts %t.normal.profdata > %t.normal.profdata.show
16+
// RUN: llvm-profdata show --all-functions --counts %t-1.profdata > %t-1.profdata.show
17+
// RUN: diff %t.normal.profdata.show %t-1.profdata.show
1618
// RUN: diff %t.normal.report %t-1.report
1719
// RUN: diff %t.normal.show %t-1.show
1820

@@ -22,7 +24,8 @@
2224
// RUN: llvm-profdata merge -o %t-2.profdata --binary-file=%t-1.exe %t-2.profraw
2325
// RUN: llvm-cov report --instr-profile=%t-2.profdata %t-1.exe > %t-2.report
2426
// RUN: llvm-cov show --instr-profile=%t-2.profdata %t-1.exe > %t-2.show
25-
// RUN: diff %t.normal.profdata %t-2.profdata
27+
// RUN: llvm-profdata show --all-functions --counts %t-2.profdata > %t-2.profdata.show
28+
// RUN: diff %t.normal.profdata.show %t-2.profdata.show
2629
// RUN: diff %t.normal.report %t-2.report
2730
// RUN: diff %t.normal.show %t-2.show
2831

@@ -39,7 +42,9 @@
3942
// RUN: llvm-profdata merge -o %t-4.profdata --binary-file=%t-1.exe %t.profdir
4043
// RUN: llvm-cov report --instr-profile=%t-4.profdata %t-1.exe > %t-4.report
4144
// RUN: llvm-cov show --instr-profile=%t-4.profdata %t-1.exe > %t-4.show
42-
// RUN: diff %t.normal.merged.profdata %t-4.profdata
45+
// RUN: llvm-profdata show --all-functions --counts %t.normal.merged.profdata > %t.normal.merged.profdata.show
46+
// RUN: llvm-profdata show --all-functions --counts %t-4.profdata > %t-4.profdata.show
47+
// RUN: diff %t.normal.merged.profdata.show %t-4.profdata.show
4348
// RUN: diff %t.normal.merged.report %t-4.report
4449
// RUN: diff %t.normal.merged.show %t-4.show
4550

0 commit comments

Comments
 (0)