~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/tools/llvm-profdata/c-general.test

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
REGENERATE: You need a checkout of clang with compiler-rt to generate the
 
2
REGENERATE: binary file here.  These shell commands can be used to regenerate
 
3
REGENERATE: it.
 
4
REGENERATE:
 
5
REGENERATE: $ SRC=path/to/llvm
 
6
REGENERATE: $ CFE=$SRC/tools/clang
 
7
REGENERATE: $ TESTDIR=$SRC/test/tools/llvm-profdata
 
8
REGENERATE: $ CFE_TESTDIR=$CFE/test/Profile
 
9
REGENERATE: $ clang -o a.out -fprofile-instr-generate $CFE_TESTDIR/test/Profile/c-general.c
 
10
REGENERATE: $ LLVM_PROFILE_FILE=$TESTDIR/Inputs/c-general.profraw ./a.out
 
11
 
 
12
RUN: llvm-profdata show %p/Inputs/c-general.profraw -o - | FileCheck %s -check-prefix=CHECK
 
13
RUN: llvm-profdata show %p/Inputs/c-general.profraw -o - --function=switches | FileCheck %s -check-prefix=SWITCHES -check-prefix=CHECK
 
14
 
 
15
SWITCHES-LABEL: Counters:
 
16
SWITCHES-NEXT:   switches:
 
17
SWITCHES-NEXT:     Hash: 0x0000000000000013
 
18
SWITCHES-NEXT:     Counters: 19
 
19
SWITCHES-NEXT:     Function count: 1
 
20
SWITCHES-LABEL: Functions shown: 1
 
21
 
 
22
CHECK-LABEL: Total functions: 11
 
23
CHECK-NEXT: Maximum function count: 1
 
24
CHECK-NEXT: Maximum internal block count: 100