xref: /llvm-project/llvm/test/CodeGen/X86/swift-async-reg.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: llc -mtriple=x86_64-apple-darwin %s -o - | FileCheck %s
2; RUN: llc -mtriple=x86_64-apple-darwin %s -o - -fast-isel | FileCheck %s
3
4define ptr @argument(ptr swiftasync %in) {
5; CHECK-LABEL: argument:
6; CHECK: movq %r14, %rax
7
8  ret ptr %in
9}
10
11define void @call(ptr %in) {
12; CHECK-LABEL: call:
13; CHECK: movq %rdi, %r14
14
15  call ptr @argument(ptr swiftasync %in)
16  ret void
17}
18