summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/test/Instrumentation/InstrProfiling/X86/alloc.ll6
-rw-r--r--llvm/test/Instrumentation/InstrProfiling/X86/lit.local.cfg3
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
+
OpenPOWER on IntegriCloud