1 RUN: printf '\377lprofr\201' > %t
2 RUN: printf '\0\0\0\0\0\0\0\11' >> %t
3 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
4 RUN: printf '\0\0\0\0\0\0\0\2' >> %t
5 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
6 RUN: printf '\0\0\0\0\0\0\0\3' >> %t
7 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
8 RUN: printf '\0\0\0\0\0\0\0\4' >> %t
9 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
10 RUN: printf '\0\0\0\0\0\0\0\20' >> %t
11 RUN: printf '\0\0\0\1\0\4\0\0' >> %t
12 RUN: printf '\0\0\0\3\0\4\0\0' >> %t
13 RUN: printf '\0\0\0\2\0\4\0\0' >> %t
14 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
16 RUN: printf '\134\370\302\114\333\030\275\254' >> %t
17 RUN: printf '\0\0\0\0\0\0\0\1' >> %t
18 RUN: printf '\0\0\0\1\0\4\0\0' >> %t
19 RUN: printf '\0\0\0\3\0\4\0\0' >> %t
20 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
21 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
22 RUN: printf '\0\0\0\1\0\0\0\0' >> %t
23 RUN: printf '\0\0\0\3\0\0\0\0' >> %t
25 RUN: printf '\344\023\165\112\031\035\265\067' >> %t
26 RUN: printf '\0\0\0\0\0\0\0\02' >> %t
27 RUN: printf '\0\0\0\1\0\3\xff\xc8' >> %t
28 RUN: printf '\0\0\0\3\0\3\xff\xc3' >> %t
29 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
30 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
31 RUN: printf '\0\0\0\02\0\0\0\0' >> %t
32 RUN: printf '\0\0\0\1\0\0\0\0' >> %t
34 RUN: printf '\0\0\0\0\0\0\0\023' >> %t
35 RUN: printf '\0\0\0\0\0\0\0\067' >> %t
36 RUN: printf '\0\0\0\0\0\0\0\101' >> %t
37 RUN: printf '\125\125\125\052' >> %t
38 RUN: printf '\7\0foo\1bar\0\0\0\0\0\0\0' >> %t
40 RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s
41 RUN: llvm-profdata show %t -all-functions -text | FileCheck %s -check-prefix=MCDC
45 CHECK: Hash: 0x0000000000000001
47 CHECK: Function count: 19
48 CHECK: Block counts: []
50 CHECK: Hash: 0x0000000000000002
52 CHECK: Function count: 55
53 CHECK: Block counts: [65]
54 CHECK: Functions shown: 2
55 CHECK: Total functions: 2
56 CHECK: Maximum function count: 55
57 CHECK: Maximum internal block count: 65
59 MCDC: Num Bitmap Bytes:
61 MCDC-NEXT: Bitmap Byte Values:
65 MCDC: Num Bitmap Bytes:
67 MCDC-NEXT: Bitmap Byte Values: