1 ; RUN: llvm-profgen --format=text --perfscript=%S/Inputs/inline-cs-noprobe.perfscript --binary=%S/Inputs/inline-cs-noprobe.perfbin --output=%t --show-unwinder-output --profile-summary-cold-count=0 | FileCheck %s --check-prefix=CHECK-UNWINDER
2 ; RUN: FileCheck %s --input-file %t
4 ; CHECK:[main:1 @ foo]:309:0
7 ; CHECK: 3.1: 14 bar:14
9 ; CHECK:[main:1 @ foo:3.1 @ bar]:84:0
12 ; CHECK-UNWINDER: Binary(inline-cs-noprobe.perfbin)'s Range Counter:
13 ; CHECK-UNWINDER: main:1 @ foo
14 ; CHECK-UNWINDER: (670, 6ad): 1
15 ; CHECK-UNWINDER: (67e, 69b): 1
16 ; CHECK-UNWINDER: (67e, 6ad): 13
17 ; CHECK-UNWINDER: (6bd, 6c8): 14
18 ; CHECK-UNWINDER: main:1 @ foo:3.1 @ bar
19 ; CHECK-UNWINDER: (6af, 6bb): 14
21 ; CHECK-UNWINDER: Binary(inline-cs-noprobe.perfbin)'s Branch Counter:
22 ; CHECK-UNWINDER: main:1 @ foo
23 ; CHECK-UNWINDER: (69b, 670): 1
24 ; CHECK-UNWINDER: (6c8, 67e): 15
27 ; clang -O3 -g test.c -o a.out
30 int bar(int x, int y) {
39 while (i++ < 4000 * 4000)
40 if (i % 91) s = bar(i, s); else s += 30;
41 printf("sum is %d\n", s);