brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 2dfbbc5 Raw
18 lines · plain
1// RUN: llvm-profdata merge %S/Inputs/branch-logical-mixed.proftext -o %t.profdata2// RUN: llvm-cov show --show-branches=count %S/Inputs/branch-logical-mixed.o32l -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs | FileCheck %S/Inputs/branch-logical-mixed.cpp -D#C=9993// RUN: llvm-cov report --show-branch-summary %S/Inputs/branch-logical-mixed.o32l -instr-profile %t.profdata -show-functions -path-equivalence=/tmp,%S/Inputs %S/Inputs/branch-logical-mixed.cpp4| FileCheck %s -check-prefix=REPORT5 6// RUN: yaml2obj %S/Inputs/branch-logical-mixed-single.yaml -o %t.o7// RUN: llvm-profdata merge %S/Inputs/branch-logical-mixed-single.proftext -o %t.profdata8// RUN: llvm-cov show --show-branches=count %t.o -instr-profile %t.profdata -path-equivalence=.,%S/Inputs | FileCheck %S/Inputs/branch-logical-mixed.cpp -D#C=19// RUN: llvm-cov report --show-branch-summary %t.o -instr-profile %t.profdata -show-functions -path-equivalence=.,%S/Inputs %S/Inputs/branch-logical-mixed.cpp10| FileCheck %s -check-prefix=REPORT11 12// REPORT:      Name                        Regions    Miss   Cover     Lines    Miss   Cover  Branches    Miss   Cover13// REPORT-NEXT: ---14// REPORT-NEXT: _Z4funcii                        77      15  80.52%        60       2  96.67%        80      30  62.50%15// REPORT-NEXT: main                              1       0 100.00%         5       0 100.00%         0       0   0.00%16// REPORT-NEXT: ---17// REPORT-NEXT: TOTAL                            78      15  80.77%        65       2  96.92%        80      30  62.50%18