diff options
| author | Xinliang David Li <davidxl@google.com> | 2016-05-28 04:26:06 +0000 |
|---|---|---|
| committer | Xinliang David Li <davidxl@google.com> | 2016-05-28 04:26:06 +0000 |
| commit | 9ab45cf1eb31c75d07996f862bbeaab2d5eb84e5 (patch) | |
| tree | 02d1b9cc3a5c5c31c80f061f91d8e09ea25a402c | |
| parent | 42cc3422eb001b566c7e37c8e284298de7ac52ca (diff) | |
| download | bcm5719-llvm-9ab45cf1eb31c75d07996f862bbeaab2d5eb84e5.tar.gz bcm5719-llvm-9ab45cf1eb31c75d07996f862bbeaab2d5eb84e5.zip | |
Move test only for the relevant platform
llvm-svn: 271098
| -rw-r--r-- | compiler-rt/test/profile/Linux/instrprof-value-prof-warn.test | 8 | ||||
| -rw-r--r-- | compiler-rt/test/profile/instrprof-value-prof.test | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/compiler-rt/test/profile/Linux/instrprof-value-prof-warn.test b/compiler-rt/test/profile/Linux/instrprof-value-prof-warn.test new file mode 100644 index 00000000000..26502cc900d --- /dev/null +++ b/compiler-rt/test/profile/Linux/instrprof-value-prof-warn.test @@ -0,0 +1,8 @@ +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 +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: + diff --git a/compiler-rt/test/profile/instrprof-value-prof.test b/compiler-rt/test/profile/instrprof-value-prof.test index 72b29cfc4dd..8e7f513d20c 100644 --- a/compiler-rt/test/profile/instrprof-value-prof.test +++ b/compiler-rt/test/profile/instrprof-value-prof.test @@ -11,9 +11,6 @@ // RUN: llvm-profdata merge -text %t.ir.profdata -o %t.ir.proftxt // RUN: FileCheck %S/Inputs/instrprof-value-prof-real.c --check-prefix=IR < %t.ir.proftxt -// 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 -// 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 - // IR level instrumentation with dynamic memory allocation // RUN: %clang_profgen -O2 -mllvm -disable-vp=false -Xclang -fprofile-instrument=llvm -mllvm -vp-static-alloc=false -mllvm -vp-counters-per-site=256 -o %t.ir.dyn %S/Inputs/instrprof-value-prof-real.c // RUN: env LLVM_PROFILE_FILE=%t.ir.dyn.profraw %run %t.ir.dyn @@ -22,4 +19,3 @@ // RUN: llvm-profdata merge -text %t.ir.dyn.profdata -o %t.ir.dyn.proftxt // RUN: FileCheck %S/Inputs/instrprof-value-prof-real.c --check-prefix=IR < %t.ir.dyn.proftxt -// WARNING: LLVM Profile Warning: |

