1 ## Tests the peephole that adds trap instructions following indirect tail calls.
3 # RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown \
5 # RUN: %clang %cflags %t.o -o %t.exe -Wl,-q
6 # RUN: llvm-bolt %t.exe -o %t.bolt --peepholes=tailcall-traps \
7 # RUN: --print-peepholes --funcs=foo,bar 2>&1 | FileCheck %s
9 # CHECK: Binary Function "foo"
10 # CHECK: br x0 # TAILCALL
11 # CHECK-NEXT: brk #0x1
12 # CHECK: End of Function "foo"
14 # CHECK: Binary Function "bar"
15 # CHECK: b foo # TAILCALL
16 # CHECK: End of Function "bar"
21 .type _start, %function
25 .size _start, .-_start