diff options
author | Xinliang David Li <davidxl@google.com> | 2015-12-03 01:05:31 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2015-12-03 01:05:31 +0000 |
commit | 0f87463676edc180193c75dcbb2da9191fd21ed0 (patch) | |
tree | fb122668cfaf10e722b69e9d8e18cde2205e54a5 | |
parent | 72e81895da692ccec4a21bb5a9dfebf06d3a9dd2 (diff) | |
download | bcm5719-llvm-0f87463676edc180193c75dcbb2da9191fd21ed0.tar.gz bcm5719-llvm-0f87463676edc180193c75dcbb2da9191fd21ed0.zip |
[PGO] Add v2 format compatibility test
llvm-svn: 254572
-rw-r--r-- | llvm/test/tools/llvm-profdata/Inputs/compat.profdata.v2 | bin | 0 -> 712 bytes | |||
-rw-r--r-- | llvm/test/tools/llvm-profdata/compat.proftext | 20 |
2 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-profdata/Inputs/compat.profdata.v2 b/llvm/test/tools/llvm-profdata/Inputs/compat.profdata.v2 Binary files differnew file mode 100644 index 00000000000..969867584a9 --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/compat.profdata.v2 diff --git a/llvm/test/tools/llvm-profdata/compat.proftext b/llvm/test/tools/llvm-profdata/compat.proftext index 14da3374b5e..139202d162e 100644 --- a/llvm/test/tools/llvm-profdata/compat.proftext +++ b/llvm/test/tools/llvm-profdata/compat.proftext @@ -45,3 +45,23 @@ large_numbers # SUMMARY: Total functions: 3 # SUMMARY: Maximum function count: 2305843009213693952 # SUMMARY: Maximum internal block count: 1152921504606846976 + +# RUN: llvm-profdata show %S/Inputs/compat.profdata.v2 -all-functions --counts | FileCheck %s -check-prefix=FORMATV2 + +# FORMATV2: Counters: +# FORMATV2-NEXT: foo: +# FORMATV2-NEXT: Hash: 0x000000000000000a +# FORMATV2-NEXT: Counters: 2 +# FORMATV2-NEXT: Function count: 499500 +# FORMATV2-NEXT: Block counts: [179900] +# FORMATV2-NEXT: main: +# FORMATV2-NEXT: Hash: 0x000000000000410a +# FORMATV2-NEXT: Counters: 4 +# FORMATV2-NEXT: Function count: 1 +# FORMATV2-NEXT: Block counts: [1000, 1000000, 499500] +# FORMATV2-NEXT: Functions shown: 2 +# FORMATV2-NEXT: Total functions: 2 +# FORMATV2-NEXT: Maximum function count: 499500 +# FORMATV2-NEXT: Maximum internal block count: 1000000 + + |