1 ; RUN: llc -mtriple=x86_64-apple-darwin %s -o - | FileCheck %s
4 declare swifttailcc void @swifttail_callee()
5 define swifttailcc void @swifttail() {
6 ; CHECK-LABEL: swifttail:
8 call void asm "","~{r14}"()
9 tail call swifttailcc void @swifttail_callee()
13 define swifttailcc void @no_preserve_swiftself() {
14 ; CHECK-LABEL: no_preserve_swiftself:
15 ; CHECK-NOT: popq %r13
16 call void asm "","~{r13}"()
20 declare swifttailcc ptr @SwiftSelf(ptr swiftasync %context, ptr swiftself %closure)
21 define swiftcc ptr @CallSwiftSelf(ptr swiftself %closure, ptr %context) {
22 ; CHECK-LABEL: CallSwiftSelf:
24 ;call void asm "","~{r13}"() ; We get a push r13 but why not with the call
26 %res = call swifttailcc ptr @SwiftSelf(ptr swiftasync %context, ptr swiftself %closure)