xref: /llvm-project/bolt/test/X86/tailcall.test (revision 11791ae7b0b05b8bd8d806331ff51da618912cf8)
1## Verifies that llvm-bolt recognizes tailcalls and mark them
2## in control flow graph.
3
4RUN: %clang %cflags %S/Inputs/tailcall.s -o %t.exe
5RUN: llvm-bolt %t.exe -o %t.null --print-cfg 2>&1 | FileCheck %s
6
7CHECK:  Binary Function "foo"
8CHECK:    jmp     bar # TAILCALL
9CHECK:  End of Function "foo"
10
11CHECK:  Binary Function "bar"
12CHECK:    jmp     baz # TAILCALL
13CHECK:  End of Function "bar"
14