Justin Bogner | cf36a36 | 2014-07-29 22:29:23 +0000 | [diff] [blame] | 1 | Some very basic tests for the multiple input cases. |
| 2 | |
Justin Bogner | af3001e | 2014-07-30 23:02:01 +0000 | [diff] [blame] | 3 | RUN: llvm-profdata merge %p/Inputs/foo3-1.proftext %p/Inputs/foo3-2.proftext -o %t |
Justin Bogner | b7aa263 | 2014-04-18 21:48:40 +0000 | [diff] [blame] | 4 | RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3 |
Justin Bogner | af3001e | 2014-07-30 23:02:01 +0000 | [diff] [blame] | 5 | RUN: llvm-profdata merge %p/Inputs/foo3-2.proftext %p/Inputs/foo3-1.proftext -o %t |
Justin Bogner | b7aa263 | 2014-04-18 21:48:40 +0000 | [diff] [blame] | 6 | RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3 |
Justin Bogner | b9bd7f8 | 2014-03-21 17:46:22 +0000 | [diff] [blame] | 7 | FOO3: foo: |
| 8 | FOO3: Counters: 3 |
| 9 | FOO3: Function count: 8 |
| 10 | FOO3: Block counts: [7, 6] |
| 11 | FOO3: Total functions: 1 |
| 12 | FOO3: Maximum function count: 8 |
| 13 | FOO3: Maximum internal block count: 7 |
Justin Bogner | ec49f98 | 2014-03-12 22:00:57 +0000 | [diff] [blame] | 14 | |
Justin Bogner | af3001e | 2014-07-30 23:02:01 +0000 | [diff] [blame] | 15 | RUN: llvm-profdata merge %p/Inputs/empty.proftext %p/Inputs/foo3-1.proftext -o %t |
Justin Bogner | b7aa263 | 2014-04-18 21:48:40 +0000 | [diff] [blame] | 16 | RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3EMPTY |
Justin Bogner | b9bd7f8 | 2014-03-21 17:46:22 +0000 | [diff] [blame] | 17 | FOO3EMPTY: foo: |
| 18 | FOO3EMPTY: Counters: 3 |
| 19 | FOO3EMPTY: Function count: 1 |
| 20 | FOO3EMPTY: Block counts: [2, 3] |
| 21 | FOO3EMPTY: Total functions: 1 |
| 22 | FOO3EMPTY: Maximum function count: 1 |
| 23 | FOO3EMPTY: Maximum internal block count: 3 |
| 24 | |
Justin Bogner | af3001e | 2014-07-30 23:02:01 +0000 | [diff] [blame] | 25 | RUN: llvm-profdata merge %p/Inputs/foo3-1.proftext %p/Inputs/foo3bar3-1.proftext -o %t |
Justin Bogner | b7aa263 | 2014-04-18 21:48:40 +0000 | [diff] [blame] | 26 | RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3FOO3BAR3 |
Justin Bogner | b9bd7f8 | 2014-03-21 17:46:22 +0000 | [diff] [blame] | 27 | FOO3FOO3BAR3: foo: |
| 28 | FOO3FOO3BAR3: Counters: 3 |
| 29 | FOO3FOO3BAR3: Function count: 3 |
| 30 | FOO3FOO3BAR3: Block counts: [5, 8] |
| 31 | FOO3FOO3BAR3: bar: |
| 32 | FOO3FOO3BAR3: Counters: 3 |
| 33 | FOO3FOO3BAR3: Function count: 7 |
| 34 | FOO3FOO3BAR3: Block counts: [11, 13] |
| 35 | FOO3FOO3BAR3: Total functions: 2 |
| 36 | FOO3FOO3BAR3: Maximum function count: 7 |
| 37 | FOO3FOO3BAR3: Maximum internal block count: 13 |
| 38 | |
Justin Bogner | af3001e | 2014-07-30 23:02:01 +0000 | [diff] [blame] | 39 | RUN: llvm-profdata merge %p/Inputs/foo3-1.proftext %p/Inputs/bar3-1.proftext -o %t |
Justin Bogner | b7aa263 | 2014-04-18 21:48:40 +0000 | [diff] [blame] | 40 | RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=DISJOINT |
Justin Bogner | b9bd7f8 | 2014-03-21 17:46:22 +0000 | [diff] [blame] | 41 | DISJOINT: foo: |
| 42 | DISJOINT: Counters: 3 |
| 43 | DISJOINT: Function count: 1 |
| 44 | DISJOINT: Block counts: [2, 3] |
| 45 | DISJOINT: bar: |
| 46 | DISJOINT: Counters: 3 |
| 47 | DISJOINT: Function count: 1 |
| 48 | DISJOINT: Block counts: [2, 3] |
| 49 | DISJOINT: Total functions: 2 |
| 50 | DISJOINT: Maximum function count: 1 |
| 51 | DISJOINT: Maximum internal block count: 3 |