summaryrefslogtreecommitdiff
path: root/test/tools/llvm-cov/Inputs
diff options
context:
space:
mode:
Diffstat (limited to 'test/tools/llvm-cov/Inputs')
-rwxr-xr-xtest/tools/llvm-cov/Inputs/binary-formats.v1.linux64lbin0 -> 2125219 bytes
-rwxr-xr-xtest/tools/llvm-cov/Inputs/binary-formats.v2.linux32lbin0 -> 29424 bytes
-rwxr-xr-xtest/tools/llvm-cov/Inputs/binary-formats.v2.linux64lbin0 -> 2124848 bytes
-rw-r--r--test/tools/llvm-cov/Inputs/combine_expansions.covmappingbin0 -> 168 bytes
-rw-r--r--test/tools/llvm-cov/Inputs/combine_expansions.proftext8
-rw-r--r--test/tools/llvm-cov/Inputs/double_dots.covmappingbin0 -> 108 bytes
-rw-r--r--test/tools/llvm-cov/Inputs/double_dots.proftext8
-rw-r--r--test/tools/llvm-cov/Inputs/elf_binary_comdat.profdatabin0 -> 840 bytes
-rw-r--r--test/tools/llvm-cov/Inputs/gcov47_compatibility.gcdabin0 -> 116 bytes
-rw-r--r--test/tools/llvm-cov/Inputs/gcov47_compatibility.gcnobin0 -> 228 bytes
-rw-r--r--test/tools/llvm-cov/Inputs/highlightedRanges.covmappingbin355 -> 360 bytes
-rw-r--r--test/tools/llvm-cov/Inputs/instrprof-comdat.h24
-rw-r--r--test/tools/llvm-cov/Inputs/lineExecutionCounts.covmappingbin162 -> 168 bytes
-rw-r--r--test/tools/llvm-cov/Inputs/prefer_used_to_unused.covmappingbin0 -> 420 bytes
-rw-r--r--test/tools/llvm-cov/Inputs/prefer_used_to_unused.cpp5
-rw-r--r--test/tools/llvm-cov/Inputs/prefer_used_to_unused.proftext25
-rw-r--r--test/tools/llvm-cov/Inputs/prevent_false_instantiations.covmappingbin0 -> 336 bytes
-rw-r--r--test/tools/llvm-cov/Inputs/prevent_false_instantiations.cpp15
-rw-r--r--test/tools/llvm-cov/Inputs/prevent_false_instantiations.proftext26
-rw-r--r--test/tools/llvm-cov/Inputs/regionMarkers.covmappingbin202 -> 208 bytes
-rw-r--r--test/tools/llvm-cov/Inputs/showExpansions.covmappingbin250 -> 256 bytes
-rw-r--r--test/tools/llvm-cov/Inputs/templateInstantiations.covmappingbin244 -> 248 bytes
22 files changed, 111 insertions, 0 deletions
diff --git a/test/tools/llvm-cov/Inputs/binary-formats.v1.linux64l b/test/tools/llvm-cov/Inputs/binary-formats.v1.linux64l
new file mode 100755
index 0000000000000..319322d747f28
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/binary-formats.v1.linux64l
Binary files differ
diff --git a/test/tools/llvm-cov/Inputs/binary-formats.v2.linux32l b/test/tools/llvm-cov/Inputs/binary-formats.v2.linux32l
new file mode 100755
index 0000000000000..6ea83e5d24ec1
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/binary-formats.v2.linux32l
Binary files differ
diff --git a/test/tools/llvm-cov/Inputs/binary-formats.v2.linux64l b/test/tools/llvm-cov/Inputs/binary-formats.v2.linux64l
new file mode 100755
index 0000000000000..9c6835cdff1ba
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/binary-formats.v2.linux64l
Binary files differ
diff --git a/test/tools/llvm-cov/Inputs/combine_expansions.covmapping b/test/tools/llvm-cov/Inputs/combine_expansions.covmapping
new file mode 100644
index 0000000000000..744bb291efabd
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/combine_expansions.covmapping
Binary files differ
diff --git a/test/tools/llvm-cov/Inputs/combine_expansions.proftext b/test/tools/llvm-cov/Inputs/combine_expansions.proftext
new file mode 100644
index 0000000000000..5419d233fc08f
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/combine_expansions.proftext
@@ -0,0 +1,8 @@
+main
+# Func Hash:
+0
+# Num Counters:
+1
+# Counter Values:
+1
+
diff --git a/test/tools/llvm-cov/Inputs/double_dots.covmapping b/test/tools/llvm-cov/Inputs/double_dots.covmapping
new file mode 100644
index 0000000000000..b03e19e03e877
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/double_dots.covmapping
Binary files differ
diff --git a/test/tools/llvm-cov/Inputs/double_dots.proftext b/test/tools/llvm-cov/Inputs/double_dots.proftext
new file mode 100644
index 0000000000000..5419d233fc08f
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/double_dots.proftext
@@ -0,0 +1,8 @@
+main
+# Func Hash:
+0
+# Num Counters:
+1
+# Counter Values:
+1
+
diff --git a/test/tools/llvm-cov/Inputs/elf_binary_comdat.profdata b/test/tools/llvm-cov/Inputs/elf_binary_comdat.profdata
new file mode 100644
index 0000000000000..ef80e56a88442
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/elf_binary_comdat.profdata
Binary files differ
diff --git a/test/tools/llvm-cov/Inputs/gcov47_compatibility.gcda b/test/tools/llvm-cov/Inputs/gcov47_compatibility.gcda
new file mode 100644
index 0000000000000..825156ba63a45
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/gcov47_compatibility.gcda
Binary files differ
diff --git a/test/tools/llvm-cov/Inputs/gcov47_compatibility.gcno b/test/tools/llvm-cov/Inputs/gcov47_compatibility.gcno
new file mode 100644
index 0000000000000..90e3bd277a941
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/gcov47_compatibility.gcno
Binary files differ
diff --git a/test/tools/llvm-cov/Inputs/highlightedRanges.covmapping b/test/tools/llvm-cov/Inputs/highlightedRanges.covmapping
index e97320b7855d1..5c1b1d6112018 100644
--- a/test/tools/llvm-cov/Inputs/highlightedRanges.covmapping
+++ b/test/tools/llvm-cov/Inputs/highlightedRanges.covmapping
Binary files differ
diff --git a/test/tools/llvm-cov/Inputs/instrprof-comdat.h b/test/tools/llvm-cov/Inputs/instrprof-comdat.h
new file mode 100644
index 0000000000000..a701504e34bf0
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/instrprof-comdat.h
@@ -0,0 +1,24 @@
+template <class T> class FOO {
+public:
+ FOO() : t(0) {}
+
+ T DoIt(T ti);
+
+private:
+ T t;
+};
+
+template <class T> T FOO<T>::DoIt(T ti) { // HEADER: 2| [[@LINE]]|template
+ for (T I = 0; I < ti; I++) { // HEADER: 22| [[@LINE]]| for (T
+ t += I; // HEADER: 20| [[@LINE]]| t += I;
+ if (I > ti / 2) // HEADER: 20| [[@LINE]]| if (I > ti
+ t -= 1; // HEADER: 8| [[@LINE]]| t -= 1;
+ } // HEADER: 20| [[@LINE]]| }
+ // HEADER: 2| [[@LINE]]|
+ return t; // HEADER: 2| [[@LINE]]| return t;
+}
+
+// To generate the binaries which correspond to this file, you must first
+// compile a program with two calls to Foo<int>::DoIt(10) for each desired
+// architecture. Collect a raw profile from any one of these binaries, index
+// it, and check it in along with the executables.
diff --git a/test/tools/llvm-cov/Inputs/lineExecutionCounts.covmapping b/test/tools/llvm-cov/Inputs/lineExecutionCounts.covmapping
index 9774b89ede8c3..20d6abfffa73e 100644
--- a/test/tools/llvm-cov/Inputs/lineExecutionCounts.covmapping
+++ b/test/tools/llvm-cov/Inputs/lineExecutionCounts.covmapping
Binary files differ
diff --git a/test/tools/llvm-cov/Inputs/prefer_used_to_unused.covmapping b/test/tools/llvm-cov/Inputs/prefer_used_to_unused.covmapping
new file mode 100644
index 0000000000000..4722129fc1874
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/prefer_used_to_unused.covmapping
Binary files differ
diff --git a/test/tools/llvm-cov/Inputs/prefer_used_to_unused.cpp b/test/tools/llvm-cov/Inputs/prefer_used_to_unused.cpp
new file mode 100644
index 0000000000000..a0892b1e15696
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/prefer_used_to_unused.cpp
@@ -0,0 +1,5 @@
+#include "prefer_used_to_unused.h"
+
+int main() {
+ return sampleFunc(5) + simpleFunc(5);
+}
diff --git a/test/tools/llvm-cov/Inputs/prefer_used_to_unused.proftext b/test/tools/llvm-cov/Inputs/prefer_used_to_unused.proftext
new file mode 100644
index 0000000000000..dd3e704a09084
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/prefer_used_to_unused.proftext
@@ -0,0 +1,25 @@
+_Z10sampleFunci
+# Func Hash:
+10
+# Num Counters:
+2
+# Counter Values:
+1
+1
+
+main
+# Func Hash:
+0
+# Num Counters:
+1
+# Counter Values:
+1
+
+_Z10simpleFunci
+# Func Hash:
+0
+# Num Counters:
+1
+# Counter Values:
+1
+
diff --git a/test/tools/llvm-cov/Inputs/prevent_false_instantiations.covmapping b/test/tools/llvm-cov/Inputs/prevent_false_instantiations.covmapping
new file mode 100644
index 0000000000000..bbaefe5a75f62
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/prevent_false_instantiations.covmapping
Binary files differ
diff --git a/test/tools/llvm-cov/Inputs/prevent_false_instantiations.cpp b/test/tools/llvm-cov/Inputs/prevent_false_instantiations.cpp
new file mode 100644
index 0000000000000..2a84f1dd58e4b
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/prevent_false_instantiations.cpp
@@ -0,0 +1,15 @@
+#include "prevent_false_instantiations.h"
+
+void func1() {
+ DO_SOMETHING();
+}
+
+void func2() {
+ DO_SOMETHING();
+}
+
+int main() {
+ func1();
+ func2();
+ return 0;
+}
diff --git a/test/tools/llvm-cov/Inputs/prevent_false_instantiations.proftext b/test/tools/llvm-cov/Inputs/prevent_false_instantiations.proftext
new file mode 100644
index 0000000000000..ad5362e17e4b6
--- /dev/null
+++ b/test/tools/llvm-cov/Inputs/prevent_false_instantiations.proftext
@@ -0,0 +1,26 @@
+_Z5func1v
+# Func Hash:
+3
+# Num Counters:
+2
+# Counter Values:
+1
+0
+
+_Z5func2v
+# Func Hash:
+3
+# Num Counters:
+2
+# Counter Values:
+1
+0
+
+main
+# Func Hash:
+0
+# Num Counters:
+1
+# Counter Values:
+1
+
diff --git a/test/tools/llvm-cov/Inputs/regionMarkers.covmapping b/test/tools/llvm-cov/Inputs/regionMarkers.covmapping
index 501cba2b734ad..1c9b5dd45c720 100644
--- a/test/tools/llvm-cov/Inputs/regionMarkers.covmapping
+++ b/test/tools/llvm-cov/Inputs/regionMarkers.covmapping
Binary files differ
diff --git a/test/tools/llvm-cov/Inputs/showExpansions.covmapping b/test/tools/llvm-cov/Inputs/showExpansions.covmapping
index e02a7281b0001..d4eb527660662 100644
--- a/test/tools/llvm-cov/Inputs/showExpansions.covmapping
+++ b/test/tools/llvm-cov/Inputs/showExpansions.covmapping
Binary files differ
diff --git a/test/tools/llvm-cov/Inputs/templateInstantiations.covmapping b/test/tools/llvm-cov/Inputs/templateInstantiations.covmapping
index d243736045134..2dfc6cddbe7a7 100644
--- a/test/tools/llvm-cov/Inputs/templateInstantiations.covmapping
+++ b/test/tools/llvm-cov/Inputs/templateInstantiations.covmapping
Binary files differ