brintos

brintos / llvm-project-archived public Read only

0
0
Text · 939 B · 87a3c06 Raw
39 lines · plain
1# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o2# RUN: ld.lld %t.o -o %t.so --shared --entry=func1.cold.1 --emit-relocs3# 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-stack6 7## Check that an entry point is a cold symbol8# RUN: llvm-readelf -h %t.so > %t.log9# RUN: llvm-nm %t.so >> %t.log10# RUN: FileCheck %s --input-file %t.log11# CHECK: Entry point address: 0x[[#%X,ENTRY:]]12# CHECK: [[#%x,ENTRY]] {{.*}} func1.cold.113 14.globl func1.cold.115.type func1.cold.1,@function16func1.cold.1:17  .cfi_startproc18.L1:19		movq %rbx, %rdx20		jmp .L321.L2:22		# exit(0)23		movq $60, %rax24		xorq %rdi, %rdi25		syscall26  .size func1.cold.1, .-func1.cold.127  .cfi_endproc28 29.globl func130.type func1,@function31func1:32  .cfi_startproc33.L3:34		movq %rax, %rdi35		jmp .L236  call exit37  .size func1, .-func138  .cfi_endproc39