1 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
3 declare dso_local swifttailcc i32 @tailcallee(i32 %a1, i32 %a2, i32 %a3, i32 %a4)
5 define dso_local swifttailcc i32 @tailcaller(i32 %in1, i32 %in2) nounwind {
6 ; CHECK-LABEL: tailcaller:
9 ; CHECK: jmp tailcallee
11 %tmp11 = musttail call swifttailcc i32 @tailcallee(i32 %in1, i32 %in2, i32 %in1, i32 %in2)
15 declare dso_local swifttailcc ptr @alias_callee()
17 define swifttailcc noalias ptr @noalias_caller() nounwind {
18 ; CHECK-LABEL: noalias_caller:
19 ; CHECK: jmp alias_callee
20 %p = musttail call swifttailcc ptr @alias_callee()
24 declare dso_local swifttailcc noalias ptr @noalias_callee()
26 define dso_local swifttailcc ptr @alias_caller() nounwind {
27 ; CHECK-LABEL: alias_caller:
28 ; CHECK: jmp noalias_callee # TAILCALL
29 %p = musttail call swifttailcc noalias ptr @noalias_callee()
33 declare dso_local swifttailcc i32 @i32_callee()
35 define dso_local swifttailcc i32 @ret_undef() nounwind {
36 ; CHECK-LABEL: ret_undef:
37 ; CHECK: jmp i32_callee # TAILCALL
38 %p = musttail call swifttailcc i32 @i32_callee()
42 declare dso_local swifttailcc void @does_not_return()
44 define dso_local swifttailcc i32 @noret() nounwind {
46 ; CHECK: jmp does_not_return
47 tail call swifttailcc void @does_not_return()
51 define dso_local swifttailcc void @void_test(i32, i32, i32, i32) {
52 ; CHECK-LABEL: void_test:
53 ; CHECK: jmp void_test
55 musttail call swifttailcc void @void_test( i32 %0, i32 %1, i32 %2, i32 %3)
59 define dso_local swifttailcc i1 @i1test(i32, i32, i32, i32) {
60 ; CHECK-LABEL: i1test:
63 %4 = musttail call swifttailcc i1 @i1test( i32 %0, i32 %1, i32 %2, i32 %3)