summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2016-08-26 19:28:17 +0000
committerManman Ren <manman.ren@gmail.com>2016-08-26 19:28:17 +0000
commit66b54e9f3202e172d4b029bc054544689b61efd9 (patch)
treec0887a4f2bd9a5a6021935a16f9497f6caf65ece /llvm/test/CodeGen
parent85cf564c5168150d306d63f360409cd86f92f04c (diff)
downloadbcm5719-llvm-66b54e9f3202e172d4b029bc054544689b61efd9.tar.gz
bcm5719-llvm-66b54e9f3202e172d4b029bc054544689b61efd9.zip
Swift Calling Convetion: add support for AArch64.
It will just be the same as the regular calling convention. rdar://28029509 llvm-svn: 279853
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/AArch64/swiftcc.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/swiftcc.ll b/llvm/test/CodeGen/AArch64/swiftcc.ll
new file mode 100644
index 00000000000..43249542715
--- /dev/null
+++ b/llvm/test/CodeGen/AArch64/swiftcc.ll
@@ -0,0 +1,11 @@
+; 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
+}
OpenPOWER on IntegriCloud