blob: 12cde0d3ce7e2f6ec924759e8215614c875e2cd0 [file] [log] [blame]
; RUN: llc -mtriple=x86_64-apple-darwin %s -o - | FileCheck %s
; RUN: llc -mtriple=x86_64-apple-darwin %s -o - -fast-isel | FileCheck %s
define ptr @argument(ptr swiftasync %in) {
; CHECK-LABEL: argument:
; CHECK: movq %r14, %rax
ret ptr %in
}
define void @call(ptr %in) {
; CHECK-LABEL: call:
; CHECK: movq %rdi, %r14
call ptr @argument(ptr swiftasync %in)
ret void
}