brintos

brintos / llvm-project-archived public Read only

0
0
Text · 720 B · 887bc50 Raw
15 lines · plain
1# When linking an instrumented shared libary, the produced raw profile may have2# multiple headers which must be 8 byte aligned. Check that the counter section3# sizes are 8 byte aligned when using function entry coverage by attempting to4# merge the raw profile.5 6RUN: mkdir -p %t.d7RUN: %clang_pgogen -mllvm -pgo-function-entry-coverage -o %t.d/libfoo.so -fPIC -shared %S/../Inputs/instrprof-shared-lib.c8RUN: %clang_pgogen -mllvm -pgo-function-entry-coverage -o %t -L%t.d -rpath %t.d -lfoo %S/../Inputs/instrprof-shared-main.c9RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t10RUN: llvm-profdata merge -o %t.profdata %t.profraw11RUN: llvm-profdata show --covered %t.profdata | FileCheck %s12 13CHECK-DAG: main14CHECK-DAG: foo15