2014-04-24 22:14:34 +02:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
2014-08-19 23:08:27 +02:00
|
|
|
; RUN: verify-uselistorder < %s
|
2014-04-24 22:14:34 +02:00
|
|
|
|
|
|
|
; Check that musttail and tail roundtrip.
|
|
|
|
|
2015-10-27 22:17:06 +01:00
|
|
|
declare cc1023 void @t1_callee()
|
|
|
|
define cc1023 void @t1() {
|
|
|
|
; CHECK: tail call cc1023 void @t1_callee()
|
|
|
|
tail call cc1023 void @t1_callee()
|
2014-04-24 22:14:34 +02:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2015-10-27 22:17:06 +01:00
|
|
|
declare cc1023 void @t2_callee()
|
|
|
|
define cc1023 void @t2() {
|
|
|
|
; CHECK: musttail call cc1023 void @t2_callee()
|
|
|
|
musttail call cc1023 void @t2_callee()
|
2014-04-24 22:14:34 +02:00
|
|
|
ret void
|
|
|
|
}
|