summaryrefslogtreecommitdiff
path: root/test/Bitcode/tailcall.ll
blob: 765b47054cad8a51d01790962635ed909f9fb60e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: llvm-as < %s | llvm-dis | FileCheck %s

; Check that musttail and tail roundtrip.

declare cc8191 void @t1_callee()
define cc8191 void @t1() {
; CHECK: tail call cc8191 void @t1_callee()
  tail call cc8191 void @t1_callee()
  ret void
}

declare cc8191 void @t2_callee()
define cc8191 void @t2() {
; CHECK: musttail call cc8191 void @t2_callee()
  musttail call cc8191 void @t2_callee()
  ret void
}