1// RUN: llvm-profdata merge %S/Inputs/branch-macros.proftext -o %t.profdata 2// 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=999 3// 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=1 4// 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=REPORT 5 6// RUN: yaml2obj %S/Inputs/branch-macros-single.yaml -o %t.o 7// RUN: llvm-profdata merge %S/Inputs/branch-macros-single.proftext -o %t.profdata 8// 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=1 9 10// REPORT: Name Regions Miss Cover Lines Miss Cover Branches Miss Cover 11// 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