[compiler-rt] r271098 - Move test only for the relevant platform

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Fri May 27 21:26:06 PDT 2016


Author: davidxl
Date: Fri May 27 23:26:06 2016
New Revision: 271098

URL: http://llvm.org/viewvc/llvm-project?rev=271098&view=rev
Log:
Move test only for the relevant platform

Added:
    compiler-rt/trunk/test/profile/Linux/instrprof-value-prof-warn.test
Modified:
    compiler-rt/trunk/test/profile/instrprof-value-prof.test

Added: compiler-rt/trunk/test/profile/Linux/instrprof-value-prof-warn.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/Linux/instrprof-value-prof-warn.test?rev=271098&view=auto
==============================================================================
--- compiler-rt/trunk/test/profile/Linux/instrprof-value-prof-warn.test (added)
+++ compiler-rt/trunk/test/profile/Linux/instrprof-value-prof-warn.test Fri May 27 23:26:06 2016
@@ -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:
+

Modified: compiler-rt/trunk/test/profile/instrprof-value-prof.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/instrprof-value-prof.test?rev=271098&r1=271097&r2=271098&view=diff
==============================================================================
--- compiler-rt/trunk/test/profile/instrprof-value-prof.test (original)
+++ compiler-rt/trunk/test/profile/instrprof-value-prof.test Fri May 27 23:26:06 2016
@@ -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:




More information about the llvm-commits mailing list