1 ; RUN: llc -mtriple=i386-apple-darwin %s -o - | FileCheck %s
3 declare void @clobber()
5 declare swifttailcc void @swifttail_callee()
6 define swifttailcc void @swifttail() {
7 ; CHECK-LABEL: swifttail:
10 tail call swifttailcc void @swifttail_callee()
14 declare swifttailcc void @swiftself(ptr swiftself)
16 define swifttailcc void @swifttail2(ptr %arg) {
17 ; CHECK-LABEL: swifttail2:
18 ; CHECK: movl {{.*}}, %ecx
19 ; CHECK: jmp _swiftself
20 tail call swifttailcc void @swiftself(ptr swiftself %arg)