llvm/test/CodeGen/AArch64/swiftcc.ll
Manman Ren 55d021c2f5 Swift Calling Convetion: add support for AArch64.
It will just be the same as the regular calling convention.

rdar://28029509


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279853 91177308-0d34-0410-b5e6-96231b3b80d8
2016-08-26 19:28:17 +00:00

12 lines
321 B
LLVM

; RUN: llc -verify-machineinstrs -mtriple=aarch64-apple-ios -o - %s | FileCheck %s
; RUN: llc -O0 -verify-machineinstrs -mtriple=aarch64-apple-ios -o - %s | FileCheck %s
; CHECK: t1
; CHECK: fadd s0, s0, s1
; CHECK: ret
define swiftcc float @t1(float %a, float %b) {
entry:
%add = fadd float %a, %b
ret float %add
}