[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / llvm / test / CodeGen / X86 / non-lazy-bind.ll
blob546a1365f26ab4502eeeb484e9d7bb7bb05d788d
1 ; RUN: llc -mtriple=x86_64-apple-darwin < %s | FileCheck %s
3 declare void @lazy() nonlazybind
4 declare void @not()
6 ; CHECK-LABEL: foo:
7 ; CHECK:  callq _not
8 ; CHECK:  callq *_lazy@GOTPCREL(%rip)
9 define void @foo() nounwind {
10   call void @not()
11   call void @lazy()
12   ret void
15 ; CHECK-LABEL: tail_call_regular:
16 ; CHECK:   jmp _not
17 define void @tail_call_regular() nounwind {
18   tail call void @not()
19   ret void
22 ; CHECK-LABEL: tail_call_eager:
23 ; CHECK:   jmpq *_lazy@GOTPCREL(%rip)
24 define void @tail_call_eager() nounwind {
25   tail call void @lazy()
26   ret void