xref: /llvm-project/llvm/test/CodeGen/AArch64/swift-async-reg.ll (revision 5ddce70ef0e5a641d7fea95e31fc5e2439cb98cb)
1; RUN: llc -mtriple=arm64-apple-ios %s -o - | FileCheck %s
2; RUN: llc -mtriple=arm64-apple-ios %s -o - -global-isel | FileCheck %s
3; RUN: llc -mtriple=arm64-apple-ios %s -o - -fast-isel | FileCheck %s
4
5define ptr @argument(ptr swiftasync %in) {
6; CHECK-LABEL: argument:
7; CHECK: mov x0, x22
8
9  ret ptr %in
10}
11
12define void @call(ptr %in) {
13; CHECK-LABEL: call:
14; CHECK: mov x22, x0
15
16  call ptr @argument(ptr swiftasync %in)
17  ret void
18}
19