[LV] Add test showing debug output for loops with uncountable BTCs.
[llvm-project.git] / bolt / test / AArch64 / long-jmp-one-stub.s
blobcd9e0875a43c4cb3733b4892820a4777275769b8
1 ## This test verifies that no unnecessary stubs are inserted when each DotAddress increases during a lookup.
3 # REQUIRES: system-linux, asserts
5 # RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown %s -o %t.o
6 # RUN: %clang %cflags -O0 %t.o -o %t.exe -Wl,-q
7 # RUN: link_fdata %s %t.o %t.fdata
8 # RUN: llvm-bolt %t.exe -o %t.bolt \
9 # RUN: --data %t.fdata | FileCheck %s
11 # CHECK: BOLT-INFO: Inserted 1 stubs in the hot area and 0 stubs in the cold area.
13 .section .text
14 .global _start
15 .global far_away_func
17 .align 4
18 .global _start
19 .type _start, %function
20 _start:
21 # FDATA: 0 [unknown] 0 1 _start 0 0 100
22 bl far_away_func
23 bl far_away_func
24 ret
25 .space 0x8000000
26 .global far_away_func
27 .type far_away_func, %function
28 far_away_func:
29 add x0, x0, #1
30 ret
32 .reloc 0, R_AARCH64_NONE