86ac56d39f26318dff9a0354aa4d2d2f40d6ff0b
[oota-llvm.git] / test / tools / llvm-profdata / raw-32-bits-be.test
1 RUN: printf '\377lprofR\201' > %t
2 RUN: printf '\0\0\0\0\0\0\0\1' >> %t
3 RUN: printf '\0\0\0\0\0\0\0\2' >> %t
4 RUN: printf '\0\0\0\0\0\0\0\3' >> %t
5 RUN: printf '\0\0\0\0\0\0\0\6' >> %t
6 RUN: printf '\0\0\0\0\1\0\0\0' >> %t
7 RUN: printf '\0\0\0\0\2\0\0\0' >> %t
8
9 RUN: printf '\0\0\0\3' >> %t
10 RUN: printf '\0\0\0\1' >> %t
11 RUN: printf '\0\0\0\0\0\0\0\1' >> %t
12 RUN: printf '\2\0\0\0' >> %t
13 RUN: printf '\1\0\0\0' >> %t
14
15 RUN: printf '\0\0\0\3' >> %t
16 RUN: printf '\0\0\0\2' >> %t
17 RUN: printf '\0\0\0\0\0\0\0\2' >> %t
18 RUN: printf '\2\0\0\03' >> %t
19 RUN: printf '\1\0\0\10' >> %t
20
21 RUN: printf '\0\0\0\0\0\0\0\023' >> %t
22 RUN: printf '\0\0\0\0\0\0\0\067' >> %t
23 RUN: printf '\0\0\0\0\0\0\0\101' >> %t
24 RUN: printf 'foobar' >> %t
25
26 RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s
27
28 CHECK: Counters:
29 CHECK:   foo:
30 CHECK:     Hash: 0x0000000000000001
31 CHECK:     Counters: 1
32 CHECK:     Function count: 19
33 CHECK:     Block counts: []
34 CHECK:   bar:
35 CHECK:     Hash: 0x0000000000000002
36 CHECK:     Counters: 2
37 CHECK:     Function count: 55
38 CHECK:     Block counts: [65]
39 CHECK: Functions shown: 2
40 CHECK: Total functions: 2
41 CHECK: Maximum function count: 55
42 CHECK: Maximum internal block count: 65