diff options
author | Xinliang David Li <davidxl@google.com> | 2015-12-14 18:44:01 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2015-12-14 18:44:01 +0000 |
commit | e3bf4fd3943bffb5383d95376cb11e729c4b1669 (patch) | |
tree | 53a7b8c7755e28f348b58b89e7a2575b26ddc9d0 /llvm/test/tools/llvm-profdata/text-format-errors.test | |
parent | bbfc7219ef121d345784b0c080a268beb051c736 (diff) | |
download | bcm5719-llvm-e3bf4fd3943bffb5383d95376cb11e729c4b1669.tar.gz bcm5719-llvm-e3bf4fd3943bffb5383d95376cb11e729c4b1669.zip |
[PGO] Value profiling text format reader/writer support
This patch adds the missing functionality in parsable
text format support for value profiling.
Differential Revision: http://reviews.llvm.org/D15212
llvm-svn: 255523
Diffstat (limited to 'llvm/test/tools/llvm-profdata/text-format-errors.test')
-rw-r--r-- | llvm/test/tools/llvm-profdata/text-format-errors.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-profdata/text-format-errors.test b/llvm/test/tools/llvm-profdata/text-format-errors.test index c8500bfac76..b300586d102 100644 --- a/llvm/test/tools/llvm-profdata/text-format-errors.test +++ b/llvm/test/tools/llvm-profdata/text-format-errors.test @@ -18,3 +18,12 @@ NO-COUNTS: error: {{.*}}no-counts.proftext: Malformed instrumentation profile da RUN: not llvm-profdata show %p/Inputs/text-format-errors.text.bin 2>&1 | FileCheck %s --check-prefix=BINARY BINARY: error: {{.+}}: Unrecognized instrumentation profile encoding format BINARY: Perhaps you forgot to use the -sample option? + +5- Detect malformed value profile data +RUN: not llvm-profdata show %p/Inputs/vp-malform.proftext 2>&1 | FileCheck %s --check-prefix=VP +RUN: not llvm-profdata show %p/Inputs/vp-malform2.proftext 2>&1 | FileCheck %s --check-prefix=VP +VP: Malformed instrumentation profile data + +6- Detect truncated value profile data +RUN: not llvm-profdata show %p/Inputs/vp-truncate.proftext 2>&1 | FileCheck %s --check-prefix=VPTRUNC +VPTRUNC: Truncated profile data |