llvm-project/bolt/test/X86/tailcall.test
Amir Ayupov 01a81dca41 [BOLT][TEST] Imported small tests
Summary:
Imported small internal tests:
- shared_object.test
- shrinkwrapping.test
- static_exe.test
- tailcall.test
- vararg.test

(cherry picked from FBD31523478)
2021-10-08 18:23:32 -07:00

14 lines
384 B
Plaintext

# Verifies that llvm-bolt recognizes tailcalls and mark them
# in control flow graph.
RUN: %clang %S/Inputs/tailcall.s -o %t.exe
RUN: llvm-bolt %t.exe -o /dev/null -print-cfg 2>&1 | FileCheck %s
CHECK: Binary Function "foo"
CHECK: jmp bar # TAILCALL
CHECK: End of Function "foo"
CHECK: Binary Function "bar"
CHECK: jmp baz # TAILCALL
CHECK: End of Function "bar"