14 lines · plain
1## Verifies that llvm-bolt recognizes tailcalls and mark them2## in control flow graph.3 4RUN: %clang %cflags %S/Inputs/tailcall.s -o %t.exe5RUN: llvm-bolt %t.exe -o %t.null --print-cfg 2>&1 | FileCheck %s6 7CHECK: Binary Function "foo"8CHECK: jmp bar # TAILCALL9CHECK: End of Function "foo"10 11CHECK: Binary Function "bar"12CHECK: jmp baz # TAILCALL13CHECK: End of Function "bar"14