[LV] Add test showing debug output for loops with uncountable BTCs.
[llvm-project.git] / bolt / test / AArch64 / dummy-return.s
blob91f89dcb84762f06ad5548056ff3209618b0e199
1 # This test checks instrumentation of static binary on AArch64.
3 # REQUIRES: system-linux,bolt-runtime,target=aarch64{{.*}}
5 # RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown %s -o %t.o
6 # RUN: %clang %cflags %t.o -o %t.exe -Wl,-q -static
7 # RUN: llvm-bolt -instrument -instrumentation-sleep-time=1 %t.exe \
8 # RUN: -o %t.instr 2>&1 | FileCheck %s
9 # RUN: llvm-objdump --disassemble-symbols=__bolt_fini_trampoline %t.instr -D \
10 # RUN: | FileCheck %s -check-prefix=CHECK-ASM
12 # CHECK: BOLT-INFO: output linked against instrumentation runtime library
13 # CHECK-ASM: <__bolt_fini_trampoline>:
14 # CHECK-ASM-NEXT: ret
16 .text
17 .align 4
18 .global _start
19 .type _start, %function
20 _start:
21 bl foo
22 ret
23 .size _start, .-_start
25 .global foo
26 .type foo, %function
27 foo:
28 mov w0, wzr
29 ret
30 .size foo, .-foo