blob: b7ddfabacaadb8def629bec01ce35ec709401b9e [file] [log] [blame]
Hemant Kulkarni9b1b7f02016-04-11 17:15:30 +00001RUN: llvm-readobj -elf-hash-histogram %p/Inputs/gnuhash.so.elf-ppc64 \
2RUN: --elf-output-style=GNU | FileCheck %s -check-prefix PPC64GNU
3RUN: llvm-readobj -elf-hash-histogram %p/Inputs/gnuhash.so.elf-x86_64 --elf-output-style=GNU \
4RUN: | FileCheck %s -check-prefix X86GNU
5RUN: llvm-readobj -elf-hash-histogram %p/Inputs/got-plt.exe.elf-mipsel --elf-output-style=GNU \
6RUN: | FileCheck %s -check-prefix SYSV
7
8PPC64GNU: Histogram for `.gnu.hash' bucket list length (total of 3 buckets)
9PPC64GNU-NEXT: Length Number % of total Coverage
10PPC64GNU-NEXT: 0 1 ( 33.3%) 0.0%
11PPC64GNU-NEXT: 1 1 ( 33.3%) 25.0%
12PPC64GNU-NEXT: 2 0 ( 0.0%) 25.0%
13PPC64GNU-NEXT: 3 1 ( 33.3%) 100.0%
14
15X86GNU: Histogram for `.gnu.hash' bucket list length (total of 3 buckets)
16X86GNU-NEXT: Length Number % of total Coverage
17X86GNU-NEXT: 0 1 ( 33.3%) 0.0%
18X86GNU-NEXT: 1 1 ( 33.3%) 25.0%
19X86GNU-NEXT: 2 0 ( 0.0%) 25.0%
20X86GNU-NEXT: 3 1 ( 33.3%) 100.0%
21
22SYSV: Histogram for bucket list length (total of 3 buckets)
23SYSV-NEXT: Length Number % of total Coverage
24SYSV-NEXT: 0 0 ( 0.0%) 0.0%
25SYSV-NEXT: 1 0 ( 0.0%) 0.0%
26SYSV-NEXT: 2 2 ( 66.7%) 57.1%
27SYSV-NEXT: 3 1 ( 33.3%) 100.0%