blob: 6a4b8885847a54a6f022fcda02fca234ba9f6dcc [file] [log] [blame]
Reid Kleckner710c1a42014-04-24 20:14:34 +00001; RUN: llvm-as < %s | llvm-dis | FileCheck %s
Duncan P. N. Exon Smith13f5c582014-08-19 21:08:27 +00002; RUN: verify-uselistorder < %s
Reid Kleckner710c1a42014-04-24 20:14:34 +00003
4; Check that musttail and tail roundtrip.
5
Vedant Kumarefc0b082015-10-27 21:17:06 +00006declare cc1023 void @t1_callee()
7define cc1023 void @t1() {
8; CHECK: tail call cc1023 void @t1_callee()
9 tail call cc1023 void @t1_callee()
Reid Kleckner710c1a42014-04-24 20:14:34 +000010 ret void
11}
12
Vedant Kumarefc0b082015-10-27 21:17:06 +000013declare cc1023 void @t2_callee()
14define cc1023 void @t2() {
15; CHECK: musttail call cc1023 void @t2_callee()
16 musttail call cc1023 void @t2_callee()
Reid Kleckner710c1a42014-04-24 20:14:34 +000017 ret void
18}