1 ; RUN: llvm-profgen --format=text --perfscript=%S/Inputs/noinline-cs-pseudoprobe.perfscript --binary=%S/Inputs/noinline-cs-pseudoprobe.perfbin --output=%t1 --ignore-stack-samples
2 ; RUN: FileCheck %s --input-file %t1
3 ; RUN: llvm-profgen --format=text --perfscript=%S/Inputs/noinline-cs-pseudoprobe.aggperfscript --binary=%S/Inputs/noinline-cs-pseudoprobe.perfbin --output=%t2 --ignore-stack-samples
4 ; RUN: FileCheck %s --input-file %t2
15 ; CHECK-NEXT: 8: 15 bar:15
17 ; CHECK-NEXT: !CFGChecksum: 563088904013236
18 ; CHECK-NEXT: bar:30:15
21 ; CHECK-NEXT: !CFGChecksum: 72617220756
25 ; clang -O3 -fuse-ld=lld -fpseudo-probe-for-profiling
26 ; -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Xclang -mdisable-tail-calls
27 ; -fno-inline-functions -g test.c -o a.out
31 int bar(int x, int y) {
40 while (i++ < 4000 * 4000)
41 if (i % 91) s = bar(i, s); else s += 30;
42 printf("sum is %d\n", s);