brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · b16ef9d Raw
17 lines · plain
1// RUN: llvm-profdata merge %S/Inputs/branch-macros.proftext -o %t.profdata2// RUN: llvm-cov show --show-expansions --show-branches=count %S/Inputs/branch-macros.o32l -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs | FileCheck %S/Inputs/branch-macros.cpp -check-prefixes=CHECK,BRCOV -D#C=9993// RUN: llvm-cov show --binary-counters --show-expansions --show-branches=count %S/Inputs/branch-macros.o32l -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs | FileCheck %S/Inputs/branch-macros.cpp -check-prefixes=CHECK,BRCOV -D#C=14// RUN: llvm-cov report --show-branch-summary %S/Inputs/branch-macros.o32l -instr-profile %t.profdata -show-functions -path-equivalence=/tmp,%S/Inputs %S/Inputs/branch-macros.cpp | FileCheck %s -check-prefix=REPORT5 6// RUN: yaml2obj %S/Inputs/branch-macros-single.yaml -o %t.o7// RUN: llvm-profdata merge %S/Inputs/branch-macros-single.proftext -o %t.profdata8// RUN: llvm-cov show --show-expansions --show-branches=count %t.o -instr-profile %t.profdata -path-equivalence=.,%S/Inputs | FileCheck %S/Inputs/branch-macros.cpp -D#C=19 10// REPORT:      Name                        Regions    Miss   Cover     Lines    Miss   Cover  Branches    Miss   Cover11// REPORT-NEXT: ---12// REPORT-NEXT: _Z4funcii                        28       4  85.71%        18       0 100.00%        30      14  53.33%13// REPORT-NEXT: _Z5func2ii                       13       1  92.31%         8       0 100.00%        10       2  80.00%14// REPORT-NEXT: main                              1       0 100.00%         6       0 100.00%         0       0   0.00%15// REPORT-NEXT: ---16// REPORT-NEXT: TOTAL                            42       5  88.10%        32       0 100.00%        40      16  60.00%17