aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/X86/swift-async-reg.ll
blob: 12cde0d3ce7e2f6ec924759e8215614c875e2cd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; 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
}