[llvm] r261959 - [PGO] Add test case to ensure covmap section is not allocatable.

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 25 19:05:10 PST 2016


Author: davidxl
Date: Thu Feb 25 21:05:10 2016
New Revision: 261959

URL: http://llvm.org/viewvc/llvm-project?rev=261959&view=rev
Log:
[PGO] Add test case to ensure covmap section is not allocatable.

Differential Revision: http://reviews.llvm.org/D17324

Added:
    llvm/trunk/test/Instrumentation/InstrProfiling/X86/
    llvm/trunk/test/Instrumentation/InstrProfiling/X86/alloc.ll
    llvm/trunk/test/Instrumentation/InstrProfiling/X86/lit.local.cfg

Added: llvm/trunk/test/Instrumentation/InstrProfiling/X86/alloc.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Instrumentation/InstrProfiling/X86/alloc.ll?rev=261959&view=auto
==============================================================================
--- llvm/trunk/test/Instrumentation/InstrProfiling/X86/alloc.ll (added)
+++ llvm/trunk/test/Instrumentation/InstrProfiling/X86/alloc.ll Thu Feb 25 21:05:10 2016
@@ -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
+
+ at __llvm_coverage_mapping = internal constant i32 0, section "__llvm_covmap"
+
+; CHECK-DAG: .section	__llvm_covmap,""

Added: llvm/trunk/test/Instrumentation/InstrProfiling/X86/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Instrumentation/InstrProfiling/X86/lit.local.cfg?rev=261959&view=auto
==============================================================================
--- llvm/trunk/test/Instrumentation/InstrProfiling/X86/lit.local.cfg (added)
+++ llvm/trunk/test/Instrumentation/InstrProfiling/X86/lit.local.cfg Thu Feb 25 21:05:10 2016
@@ -0,0 +1,3 @@
+if not 'X86' in config.root.targets:
+    config.unsupported = True
+




More information about the llvm-commits mailing list