diff options
Diffstat (limited to 'llvm/test/tools/llvm-profdata/Inputs')
3 files changed, 110 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-profdata/Inputs/vp-malform.proftext b/llvm/test/tools/llvm-profdata/Inputs/vp-malform.proftext new file mode 100644 index 00000000000..2db3096cecf --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/vp-malform.proftext @@ -0,0 +1,42 @@ +foo +# Func Hash: +10 +# Num Counters: +2 +# Counter Values: +999000 +359800 + +foo2 +# Func Hash: +10 +# Num Counters: +2 +# Counter Values: +1001000 +360200 + +main +# Func Hash: +16650 +# Num Counters: +4 +# Counter Values: +2 +2000 +2000000 +999000 +# NumValueKinds +1 +# Value Kind IPVK_IndirectCallTarget +0 +# NumSites +3 +# Values for each site +0 +2 +# !!!! Malformed Value/Count pair +foo+100 +foo2:1000 +1 +foo2:20000 diff --git a/llvm/test/tools/llvm-profdata/Inputs/vp-malform2.proftext b/llvm/test/tools/llvm-profdata/Inputs/vp-malform2.proftext new file mode 100644 index 00000000000..02ed5a968d8 --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/vp-malform2.proftext @@ -0,0 +1,32 @@ +foo +# Func Hash: +10 +# Num Counters: +2 +# Counter Values: +999000 +359800 + +main +# Func Hash: +16650 +# Num Counters: +4 +# Counter Values: +2 +2000 +2000000 +999000 +# NumValueKinds +1 +# Value Kind IPVK_IndirectCallTarget +0 +# NumSites +3 +# Values for each site +0 +# !! Malformed value site, missing one value +2 +foo:100 +1 +foo2:20000 diff --git a/llvm/test/tools/llvm-profdata/Inputs/vp-truncate.proftext b/llvm/test/tools/llvm-profdata/Inputs/vp-truncate.proftext new file mode 100644 index 00000000000..98b4b572b65 --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/vp-truncate.proftext @@ -0,0 +1,36 @@ +foo +# Func Hash: +10 +# Num Counters: +2 +# Counter Values: +999000 +359800 + +foo2 +# Func Hash: +10 +# Num Counters: +2 +# Counter Values: +1001000 +360200 + +main +# Func Hash: +16650 +# Num Counters: +4 +# Counter Values: +2 +2000 +2000000 +999000 +# NumValueKinds +1 +# Value Kind IPVK_IndirectCallTarget +0 +# NumSites +3 +# Values for each site +0 |

