]> git.proxmox.com Git - rustc.git/blob - src/libcompiler_builtins/compiler-rt/test/profile/Linux/instrprof-value-prof-warn.test
New upstream version 1.20.0+dfsg1
[rustc.git] / src / libcompiler_builtins / compiler-rt / test / profile / Linux / instrprof-value-prof-warn.test
1 RUN: %clang_profgen -O2 -mllvm -disable-vp=false -Xclang -fprofile-instrument=llvm -mllvm -vp-static-alloc=true -DSTRESS=1 -o %t.ir.warn %S/../Inputs/instrprof-value-prof-real.c
2 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
3 # Test that enough static counters have been allocated
4 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
5
6 # WARNING: LLVM Profile Warning:
7 # NOWARNING-NOT: LLVM Profile Warning:
8