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