aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-profgen/filter-ambiguous-profile.test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/tools/llvm-profgen/filter-ambiguous-profile.test')
-rw-r--r--llvm/test/tools/llvm-profgen/filter-ambiguous-profile.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-profgen/filter-ambiguous-profile.test b/llvm/test/tools/llvm-profgen/filter-ambiguous-profile.test
new file mode 100644
index 0000000..3a264e3
--- /dev/null
+++ b/llvm/test/tools/llvm-profgen/filter-ambiguous-profile.test
@@ -0,0 +1,8 @@
+; RUN: llvm-profgen --format=text --llvm-sample-profile=%S/Inputs/filter-ambiguous-profile.prof --binary=%S/Inputs/inline-cs-noprobe.perfbin --csspgo-preinliner=0 --output=%t1 || FileCheck %s --input-file %t1
+
+;CHECK: foo:12345:1000
+;CHECK-NEXT 1: 1000
+;CHECK-NEXT 4: bar:1000
+;CHECK-NEXT 1: 1000
+;CHECK-NEXT 3: goo:300
+;CHECK-NEXT 1: 300