01190d74c3486c7dd63f9c2c86cea0ce17fe7cc1
[oota-llvm.git] / test / Bitcode / tailcall.ll
1 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2 ; RUN: verify-uselistorder < %s
3
4 ; Check that musttail and tail roundtrip.
5
6 declare cc8191 void @t1_callee()
7 define cc8191 void @t1() {
8 ; CHECK: tail call cc8191 void @t1_callee()
9   tail call cc8191 void @t1_callee()
10   ret void
11 }
12
13 declare cc8191 void @t2_callee()
14 define cc8191 void @t2() {
15 ; CHECK: musttail call cc8191 void @t2_callee()
16   musttail call cc8191 void @t2_callee()
17   ret void
18 }