bolt/deps/llvm-18.1.8/llvm/test/CodeGen/X86/swift-async-reg.ll
2025-02-14 19:21:04 +01:00

17 lines
379 B
LLVM

; 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
}