brintos

brintos / llvm-project-archived public Read only

0
0
Text · 822 B · cd9e087 Raw
33 lines · plain
1## This test verifies that no unnecessary stubs are inserted when each DotAddress increases during a lookup.2 3# REQUIRES: system-linux, asserts4 5# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown %s -o %t.o6# RUN: %clang %cflags -O0 %t.o -o %t.exe -Wl,-q7# RUN: link_fdata %s %t.o %t.fdata8# RUN: llvm-bolt %t.exe -o %t.bolt  \9# RUN:   --data %t.fdata  | FileCheck %s10 11# CHECK: BOLT-INFO: Inserted 1 stubs in the hot area and 0 stubs in the cold area. 12 13  .section .text14  .global _start15  .global far_away_func16 17  .align 418  .global _start19  .type _start, %function20_start:21# FDATA: 0 [unknown] 0 1 _start 0 0 10022    bl far_away_func23    bl far_away_func24    ret  25  .space 0x800000026  .global far_away_func27  .type far_away_func, %function28far_away_func:29    add x0, x0, #130    ret31 32.reloc 0, R_AARCH64_NONE33