1 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o
2 # RUN: ld.lld %t.o -o %t.so --shared --entry=func1.cold.1 --emit-relocs
3 # RUN: llvm-bolt -relocs %t.so -o %t -reorder-functions=hfsort+ \
4 # RUN: -split-functions -reorder-blocks=ext-tsp -split-all-cold \
5 # RUN: -dyno-stats -icf=1 -use-gnu-stack
7 # Check that an entry point is a cold symbol
8 # RUN: llvm-readelf -h %t.so > %t.log
9 # RUN: llvm-nm %t.so >> %t.log
10 # RUN: FileCheck %s --input-file %t.log
11 # CHECK: Entry point address: 0x[[#%X,ENTRY:]]
12 # CHECK: [[#%x,ENTRY]] {{.*}} func1.cold.1
15 .type func1.cold.1,@function
26 .size func1.cold.1, .-func1.cold.1