mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
18 lines
379 B
LLVM
18 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 i8* @argument(i8* swiftasync %in) {
|
||
|
; CHECK-LABEL: argument:
|
||
|
; CHECK: movq %r14, %rax
|
||
|
|
||
|
ret i8* %in
|
||
|
}
|
||
|
|
||
|
define void @call(i8* %in) {
|
||
|
; CHECK-LABEL: call:
|
||
|
; CHECK: movq %rdi, %r14
|
||
|
|
||
|
call i8* @argument(i8* swiftasync %in)
|
||
|
ret void
|
||
|
}
|