summaryrefslogtreecommitdiff
path: root/test/CodeGen/AArch64/arm64-return-vector.ll
blob: 9457d8bc6d07922cbe4583e6e35188d08748f3c0 (plain)
1
2
3
4
5
6
7
8
9
10
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
}