Skip to content

Commit f343253

Browse files
committed
Use llvm-profdata to test indexed profile in instrprof-binary-correlate.c
1 parent b071b70 commit f343253

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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: diff <(llvm-profdata show --all-functions --counts %t.normal.profdata) <(llvm-profdata show --all-functions --counts %t-1.profdata)
1616
// RUN: diff %t.normal.report %t-1.report
1717
// RUN: diff %t.normal.show %t-1.show
1818

@@ -22,7 +22,7 @@
2222
// RUN: llvm-profdata merge -o %t-2.profdata --binary-file=%t-1.exe %t-2.profraw
2323
// RUN: llvm-cov report --instr-profile=%t-2.profdata %t-1.exe > %t-2.report
2424
// RUN: llvm-cov show --instr-profile=%t-2.profdata %t-1.exe > %t-2.show
25-
// RUN: diff %t.normal.profdata %t-2.profdata
25+
// RUN: diff <(llvm-profdata show --all-functions --counts %t.normal.profdata) <(llvm-profdata show --all-functions --counts %t-2.profdata)
2626
// RUN: diff %t.normal.report %t-2.report
2727
// RUN: diff %t.normal.show %t-2.show
2828

@@ -39,7 +39,7 @@
3939
// RUN: llvm-profdata merge -o %t-4.profdata --binary-file=%t-1.exe %t.profdir
4040
// RUN: llvm-cov report --instr-profile=%t-4.profdata %t-1.exe > %t-4.report
4141
// 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
42+
// RUN: diff <(llvm-profdata show --all-functions --counts %t.normal.merged.profdata) <(llvm-profdata show --all-functions --counts %t-4.profdata)
4343
// RUN: diff %t.normal.merged.report %t-4.report
4444
// RUN: diff %t.normal.merged.show %t-4.show
4545

0 commit comments

Comments
 (0)