xref: /llvm-project/llvm/test/tools/llvm-profgen/cs-extbinary.test (revision bc380c0930c9e110b7f6dda97ffee417f9cba00d)
1c3aeabaeSwlei; test for dwarf-based cs profile
2*bc380c09SHongtao Yu; RUN: llvm-profgen --format=extbinary --perfscript=%S/Inputs/recursion-compression-noprobe.perfscript --binary=%S/Inputs/recursion-compression-noprobe.perfbin --output=%t1 --profile-summary-hot-count=0 --csspgo-preinliner=0 --gen-cs-nested-profile=0
3c3aeabaeSwlei; RUN: llvm-profdata merge --sample --text --output=%t2 %t1
4c3aeabaeSwlei; RUN: FileCheck %S/recursion-compression-noprobe.test --input-file %t2
5c3aeabaeSwlei; RUN: llvm-profdata merge --sample --extbinary --output=%t3 %t2 && llvm-profdata merge --sample --text --output=%t4 %t3
6c3aeabaeSwlei; RUN: diff -b %t2 %t4
7c3aeabaeSwlei
8c3aeabaeSwlei
9c3aeabaeSwlei; test for probe-based cs profile
10*bc380c09SHongtao Yu; RUN: llvm-profgen --format=extbinary --perfscript=%S/Inputs/recursion-compression-pseudoprobe.perfscript --binary=%S/Inputs/recursion-compression-pseudoprobe.perfbin --output=%t5 --profile-summary-hot-count=0 --csspgo-preinliner=0 --gen-cs-nested-profile=0
11c3aeabaeSwlei; RUN: llvm-profdata merge --sample --text --output=%t6 %t5
12c3aeabaeSwlei; RUN: FileCheck %S/recursion-compression-pseudoprobe.test --input-file %t6
13c3aeabaeSwlei; RUN: llvm-profdata merge --sample --extbinary --output=%t7 %t6 && llvm-profdata merge --sample --text --output=%t8 %t7
14c3aeabaeSwlei; RUN: diff -b %t6 %t8
15