1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00
llvm-mirror/test/Bitcode/tailcall.ll
Vedant Kumar 6823d9fe99 [IR] Limit bits used for CallingConv::ID, update tests
Use 10 bits to represent calling convention ID's instead of 13, and
update the bitcode compatibility tests accordingly. We now error-out in
the bitcode reader when we see bad calling conv ID's.

Thanks to rnk and dexonsmith for feedback!

Differential Revision: http://reviews.llvm.org/D13826

llvm-svn: 251452
2015-10-27 21:17:06 +00:00

19 lines
439 B
LLVM

; RUN: llvm-as < %s | llvm-dis | FileCheck %s
; RUN: verify-uselistorder < %s
; Check that musttail and tail roundtrip.
declare cc1023 void @t1_callee()
define cc1023 void @t1() {
; CHECK: tail call cc1023 void @t1_callee()
tail call cc1023 void @t1_callee()
ret void
}
declare cc1023 void @t2_callee()
define cc1023 void @t2() {
; CHECK: musttail call cc1023 void @t2_callee()
musttail call cc1023 void @t2_callee()
ret void
}