diff options
author | Xinliang David Li <davidxl@google.com> | 2016-02-26 03:05:10 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2016-02-26 03:05:10 +0000 |
commit | 23682e9cab92c239b2a500e251e406ce8feabb3b (patch) | |
tree | aa31a805a8127ab6ba4b56b7ea352ff6b50d4e3c | |
parent | 9f520ebc5413cd9561e3c8ee7f5d2dfc8db3ac23 (diff) | |
download | bcm5719-llvm-23682e9cab92c239b2a500e251e406ce8feabb3b.tar.gz bcm5719-llvm-23682e9cab92c239b2a500e251e406ce8feabb3b.zip |
[PGO] Add test case to ensure covmap section is not allocatable.
Differential Revision: http://reviews.llvm.org/D17324
llvm-svn: 261959
-rw-r--r-- | llvm/test/Instrumentation/InstrProfiling/X86/alloc.ll | 6 | ||||
-rw-r--r-- | llvm/test/Instrumentation/InstrProfiling/X86/lit.local.cfg | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Instrumentation/InstrProfiling/X86/alloc.ll b/llvm/test/Instrumentation/InstrProfiling/X86/alloc.ll new file mode 100644 index 00000000000..33624380a37 --- /dev/null +++ b/llvm/test/Instrumentation/InstrProfiling/X86/alloc.ll @@ -0,0 +1,6 @@ +;; Ensure that SHF_ALLOC section flag is not set for the __llvm_covmap section on Linux. +; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s + +@__llvm_coverage_mapping = internal constant i32 0, section "__llvm_covmap" + +; CHECK-DAG: .section __llvm_covmap,"" diff --git a/llvm/test/Instrumentation/InstrProfiling/X86/lit.local.cfg b/llvm/test/Instrumentation/InstrProfiling/X86/lit.local.cfg new file mode 100644 index 00000000000..e71f3cc4c41 --- /dev/null +++ b/llvm/test/Instrumentation/InstrProfiling/X86/lit.local.cfg @@ -0,0 +1,3 @@ +if not 'X86' in config.root.targets: + config.unsupported = True + |