diff options
author | Xinliang David Li <davidxl@google.com> | 2016-02-28 00:54:28 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2016-02-28 00:54:28 +0000 |
commit | 80d4b898d19d001a591b59ce002c779c6d63ea01 (patch) | |
tree | ef6488aa285d5e1b6585b61cef904cc7da5df8e2 /compiler-rt/test | |
parent | adbb7b7b574bf1d1f0b3f4e26adf6786979b2da1 (diff) | |
download | bcm5719-llvm-80d4b898d19d001a591b59ce002c779c6d63ea01.tar.gz bcm5719-llvm-80d4b898d19d001a591b59ce002c779c6d63ea01.zip |
Test cleanups
llvm-svn: 262162
Diffstat (limited to 'compiler-rt/test')
-rw-r--r-- | compiler-rt/test/profile/Linux/coverage_dtor.cpp | 2 | ||||
-rw-r--r-- | compiler-rt/test/profile/Linux/coverage_test.cpp | 8 | ||||
-rw-r--r-- | compiler-rt/test/profile/instrprof-value-prof.test | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/compiler-rt/test/profile/Linux/coverage_dtor.cpp b/compiler-rt/test/profile/Linux/coverage_dtor.cpp index c59c34df4bc..f35eb100fa1 100644 --- a/compiler-rt/test/profile/Linux/coverage_dtor.cpp +++ b/compiler-rt/test/profile/Linux/coverage_dtor.cpp @@ -1,4 +1,4 @@ -// RUN: %clang -x c++ -fno-exceptions -std=c++11 -fuse-ld=gold -fprofile-instr-generate -fcoverage-mapping -o %t %s +// RUN: %clang_profgen -x c++ -fno-exceptions -std=c++11 -fuse-ld=gold -fcoverage-mapping -o %t %s // RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t // RUN: llvm-profdata merge -o %t.profdata %t.profraw // RUN: llvm-cov show %t -instr-profile %t.profdata -filename-equivalence 2>&1 | FileCheck %s diff --git a/compiler-rt/test/profile/Linux/coverage_test.cpp b/compiler-rt/test/profile/Linux/coverage_test.cpp index 09bc82586ae..9b4ba073cf0 100644 --- a/compiler-rt/test/profile/Linux/coverage_test.cpp +++ b/compiler-rt/test/profile/Linux/coverage_test.cpp @@ -1,18 +1,18 @@ -// RUN: %clang_profgen -fuse-ld=gold -O2 -fdata-sections -ffunction-sections -fprofile-instr-generate -fcoverage-mapping -Wl,--gc-sections -o %t %s +// RUN: %clang_profgen -fuse-ld=gold -O2 -fdata-sections -ffunction-sections -fcoverage-mapping -Wl,--gc-sections -o %t %s // RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t // RUN: llvm-profdata merge -o %t.profdata %t.profraw // RUN: llvm-cov show %t -instr-profile %t.profdata -filename-equivalence 2>&1 | FileCheck %s // BFD linker older than 2.26 has a bug that per-func profile data will be wrongly garbage collected when GC is turned on. We only do end-to-end test here without GC: -// RUN: %clang_profgen -O2 -fprofile-instr-generate -fcoverage-mapping -o %t.2 %s +// RUN: %clang_profgen -O2 -fcoverage-mapping -o %t.2 %s // RUN: env LLVM_PROFILE_FILE=%t.2.profraw %run %t.2 // RUN: llvm-profdata merge -o %t.2.profdata %t.2.profraw // RUN: llvm-cov show %t.2 -instr-profile %t.2.profdata -filename-equivalence 2>&1 | FileCheck %s // Check covmap is not garbage collected when GC is turned on with BFD linker. Due to the bug mentioned above, we can only // do the check with objdump: -// RUN: %clang_profgen -O2 -fprofile-instr-generate -fcoverage-mapping -Wl,--gc-sections -o %t.3 %s +// RUN: %clang_profgen -O2 -fcoverage-mapping -Wl,--gc-sections -o %t.3 %s // RUN: llvm-objdump -h %t.3 | FileCheck --check-prefix COVMAP %s // Check PIE option -// RUN: %clang_profgen -fuse-ld=gold -O2 -fdata-sections -ffunction-sections -fPIE -pie -fprofile-instr-generate -fcoverage-mapping -Wl,--gc-sections -o %t.pie %s +// RUN: %clang_profgen -fuse-ld=gold -O2 -fdata-sections -ffunction-sections -fPIE -pie -fcoverage-mapping -Wl,--gc-sections -o %t.pie %s // RUN: env LLVM_PROFILE_FILE=%t.pie.profraw %run %t.pie // RUN: llvm-profdata merge -o %t.pie.profdata %t.pie.profraw // RUN: llvm-cov show %t.pie -instr-profile %t.pie.profdata -filename-equivalence 2>&1 | FileCheck %s diff --git a/compiler-rt/test/profile/instrprof-value-prof.test b/compiler-rt/test/profile/instrprof-value-prof.test index d033f9fba44..7ebeff37bce 100644 --- a/compiler-rt/test/profile/instrprof-value-prof.test +++ b/compiler-rt/test/profile/instrprof-value-prof.test @@ -1,4 +1,4 @@ -// RUN: %clang_profgen -O2 -fprofile-instr-generate -mllvm -enable-value-profiling=true -o %t %S/Inputs/instrprof-value-prof-real.c +// RUN: %clang_profgen -O2 -mllvm -enable-value-profiling=true -o %t %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 |