Skip to content

Commit

Permalink
Use llvm-profdata to test indexed profile in instrprof-binary-correla…
Browse files Browse the repository at this point in the history
…te.c
  • Loading branch information
ZequanWu committed Dec 14, 2023
1 parent b071b70 commit f343253
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler-rt/test/profile/instrprof-binary-correlate.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// RUN: llvm-profdata merge -o %t-1.profdata --binary-file=%t-1.exe %t-1.profraw
// RUN: llvm-cov report --instr-profile=%t-1.profdata %t-1.exe > %t-1.report
// RUN: llvm-cov show --instr-profile=%t-1.profdata %t-1.exe > %t-1.show
// RUN: diff %t.normal.profdata %t-1.profdata
// RUN: diff <(llvm-profdata show --all-functions --counts %t.normal.profdata) <(llvm-profdata show --all-functions --counts %t-1.profdata)
// RUN: diff %t.normal.report %t-1.report
// RUN: diff %t.normal.show %t-1.show

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

Expand All @@ -39,7 +39,7 @@
// RUN: llvm-profdata merge -o %t-4.profdata --binary-file=%t-1.exe %t.profdir
// RUN: llvm-cov report --instr-profile=%t-4.profdata %t-1.exe > %t-4.report
// RUN: llvm-cov show --instr-profile=%t-4.profdata %t-1.exe > %t-4.show
// RUN: diff %t.normal.merged.profdata %t-4.profdata
// RUN: diff <(llvm-profdata show --all-functions --counts %t.normal.merged.profdata) <(llvm-profdata show --all-functions --counts %t-4.profdata)
// RUN: diff %t.normal.merged.report %t-4.report
// RUN: diff %t.normal.merged.show %t-4.show

Expand Down

0 comments on commit f343253

Please sign in to comment.