summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/profile/Linux/instrprof-value-prof-warn.test
blob: 6ca1603fb244005eab02dd067d7b07c8661d324f (plain)
1
2
3
4
5
6
7
8
RUN: %clang_pgogen -O2 -mllvm -disable-vp=false -mllvm -vp-static-alloc=true -DSTRESS=1 -o %t.ir.warn  %S/../Inputs/instrprof-value-prof-real.c
RUN: env LLVM_PROFILE_FILE=%t.ir.profraw LLVM_VP_MAX_NUM_VALS_PER_SITE=255  %run %t.ir.warn 2>&1 |FileCheck --check-prefix=WARNING %s
#  Test that enough static counters have been allocated
RUN: env LLVM_PROFILE_FILE=%t.ir.profraw LLVM_VP_MAX_NUM_VALS_PER_SITE=150  %run %t.ir.warn 2>&1 |FileCheck --check-prefix=NOWARNING --allow-empty %s

# WARNING: LLVM Profile Warning:
# NOWARNING-NOT: LLVM Profile Warning:

OpenPOWER on IntegriCloud