1 ## This test checks how llvm-readobj prints skipped BB entries (-basic-block-address-map-skip-emit-bb-entries).
4 # RUN: yaml2obj %s -DBITS=64 -o %t1.x64.o
5 # RUN: llvm-readobj %t1.x64.o --bb-addr-map 2>&1 | FileCheck --match-full-lines %s -DFILE=%t1.x64.o
8 # RUN: yaml2obj %s -DBITS=32 -o %t1.x32.o
9 # RUN: llvm-readobj %t1.x32.o --bb-addr-map 2>&1 | FileCheck --match-full-lines %s -DFILE=%t1.x32.o
12 # CHECK-NEXT: Function {
13 # CHECK-NEXT: At: 0x11111
14 # CHECK-NEXT: Name: foo
15 # CHECK-NEXT: BB Ranges [
17 # CHECK-NEXT: Base Address: 0x11111
18 # CHECK-NEXT: BB Entries [
22 # CHECK-NEXT: PGO analyses {
23 # CHECK-NEXT: FuncEntryCount: 100
24 # CHECK-NEXT: PGO BB entries [
29 # CHECK-NEXT:BBAddrMap [
30 # CHECK-NEXT: Function {
31 # CHECK-NEXT: At: 0x33333
32 # CHECK-NEXT: Name: bar
33 # CHECK-NEXT: BB Ranges [
35 # CHECK-NEXT: Base Address: 0x33333
36 # CHECK-NEXT: BB Entries [
40 # CHECK-NEXT: PGO analyses {
41 # CHECK-NEXT: FuncEntryCount: 89
42 # CHECK-NEXT: PGO BB entries [
50 Class: ELFCLASS[[BITS]]
60 - Name: .llvm_bb_addr_map
61 Type: SHT_LLVM_BB_ADDR_MAP
62 ShSize: [[SIZE=<none>]]
68 - BaseAddress: 0x11111
71 - Name: '.llvm_bb_addr_map2'
72 Type: SHT_LLVM_BB_ADDR_MAP
78 - BaseAddress: 0x33333