Files
clang-p2996/bolt/test/X86/Inputs/tailcall.s
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

30 lines
370 B
ArmAsm

.globl main
.type main, %function
main:
subq $0x8, %rsp
callq foo
movl $0x400638, %edi
callq puts@PLT
xorl %eax, %eax
addq $0x8, %rsp
retq
.size main, .-main
.globl foo
.type foo, %function
foo:
jmp bar
.size foo, .-foo
.globl bar
.type bar, %function
bar:
jmp baz
.size bar, .-bar
.globl baz
.type baz, %function
baz:
retq
.size baz, .-baz