mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-27 11:55:49 +00:00
Re install test reverted by r268866
llvm-svn: 268964
This commit is contained in:
parent
3126db6fd7
commit
e5e4713a56
17
compiler-rt/test/profile/instrprof-value-prof-shared.test
Normal file
17
compiler-rt/test/profile/instrprof-value-prof-shared.test
Normal file
@ -0,0 +1,17 @@
|
||||
// XFAIL: arm
|
||||
// RUN: mkdir -p %t.d
|
||||
// RUN: %clang_profgen -O2 -mllvm -enable-value-profiling=true -fPIC -shared -o %t.d/t.shared -DSHARED_LIB %S/Inputs/instrprof-value-prof-real.c
|
||||
// RUN: %clang_profgen -O2 -mllvm -enable-value-profiling=true -o %t -rpath %t.d %t.d/t.shared -DCALL_SHARED %S/Inputs/instrprof-value-prof-real.c
|
||||
// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t
|
||||
// RUN: llvm-profdata merge -o %t.profdata %t.profraw
|
||||
// RUN: llvm-profdata show --all-functions -ic-targets %t.profdata | FileCheck %S/Inputs/instrprof-value-prof-real.c
|
||||
// RUN: llvm-profdata show --all-functions -ic-targets %t.profdata | FileCheck %S/Inputs/instrprof-value-prof-real.c --check-prefix=SHARED
|
||||
|
||||
// IR level instrumentation
|
||||
// RUN: %clang_profgen -O2 -mllvm -disable-vp=false -Xclang -fprofile-instrument=llvm -fPIC -shared -o %t.d/t.ir.shared -DSHARED_LIB %S/Inputs/instrprof-value-prof-real.c
|
||||
// RUN: %clang_profgen -O2 -mllvm -disable-vp=false -Xclang -fprofile-instrument=llvm -rpath %t.d -o %t.ir %t.d/t.ir.shared -DCALL_SHARED %S/Inputs/instrprof-value-prof-real.c
|
||||
// RUN: env LLVM_PROFILE_FILE=%t.ir.profraw %run %t.ir
|
||||
// RUN: llvm-profdata merge -o %t.ir.profdata %t.ir.profraw
|
||||
// RUN: llvm-profdata show --all-functions -ic-targets %t.ir.profdata | FileCheck %S/Inputs/instrprof-value-prof-real.c
|
||||
// RUN: llvm-profdata merge -text %t.ir.profdata -o %t.ir.proftxt
|
||||
// RUN: llvm-profdata show --all-functions -ic-targets %t.ir.profdata | FileCheck %S/Inputs/instrprof-value-prof-real.c --check-prefix=SHARED
|
Loading…
x
Reference in New Issue
Block a user