aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM64/return-vector.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM64/return-vector.ll')
-rw-r--r--test/CodeGen/ARM64/return-vector.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/ARM64/return-vector.ll b/test/CodeGen/ARM64/return-vector.ll
new file mode 100644
index 0000000..9457d8b
--- /dev/null
+++ b/test/CodeGen/ARM64/return-vector.ll
@@ -0,0 +1,11 @@
+; RUN: llc < %s -march=arm64 | FileCheck %s
+
+; 2x64 vector should be returned in Q0.
+
+define <2 x double> @test(<2 x double>* %p) nounwind {
+; CHECK: test
+; CHECK: ldr q0, [x0]
+; CHECK: ret
+ %tmp1 = load <2 x double>* %p, align 16
+ ret <2 x double> %tmp1
+}