1 ## Tests the peephole that adds trap instructions following indirect tail calls.
3 RUN: %clang %cflags %p/Inputs/tailcall_traps.s -o %t.exe
4 RUN: llvm-bolt %t.exe -o %t --peepholes=tailcall-traps \
5 RUN: --print-peepholes --funcs=foo,bar 2>&1 | FileCheck %s
7 CHECK: Binary Function "foo"
8 CHECK: jmpl *%rax # TAILCALL
10 CHECK: End of Function "foo"
12 CHECK: Binary Function "bar"
13 CHECK: jmp moo # TAILCALL
14 CHECK: End of Function "bar"