1 RUN: llvm-readelf --elf-hash-histogram %p/Inputs/gnuhash.so.elf-ppc64 \
2 RUN: | FileCheck %s -check-prefix PPC64GNU
3 RUN: llvm-readelf --elf-hash-histogram %p/Inputs/gnuhash.so.elf-x86_64 \
4 RUN: | FileCheck %s -check-prefix X86GNU
5 RUN: llvm-readelf --elf-hash-histogram %p/Inputs/got-plt.exe.elf-mipsel \
6 RUN: | FileCheck %s -check-prefix SYSV
8 PPC64GNU: Histogram for `.gnu.hash' bucket list length (total of 3 buckets)
9 PPC64GNU-NEXT: Length Number % of total Coverage
10 PPC64GNU-NEXT: 0 1 ( 33.3%) 0.0%
11 PPC64GNU-NEXT: 1 1 ( 33.3%) 25.0%
12 PPC64GNU-NEXT: 2 0 ( 0.0%) 25.0%
13 PPC64GNU-NEXT: 3 1 ( 33.3%) 100.0%
15 X86GNU: Histogram for `.gnu.hash' bucket list length (total of 3 buckets)
16 X86GNU-NEXT: Length Number % of total Coverage
17 X86GNU-NEXT: 0 1 ( 33.3%) 0.0%
18 X86GNU-NEXT: 1 1 ( 33.3%) 25.0%
19 X86GNU-NEXT: 2 0 ( 0.0%) 25.0%
20 X86GNU-NEXT: 3 1 ( 33.3%) 100.0%
22 SYSV: Histogram for bucket list length (total of 3 buckets)
23 SYSV-NEXT: Length Number % of total Coverage
24 SYSV-NEXT: 0 0 ( 0.0%) 0.0%
25 SYSV-NEXT: 1 0 ( 0.0%) 0.0%
26 SYSV-NEXT: 2 2 ( 66.7%) 57.1%
27 SYSV-NEXT: 3 1 ( 33.3%) 100.0%