]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/AArch64/arm64-return-vector.ll
Vendor import of llvm RELEASE_361/final tag r237755 (effectively, 3.6.1 release):
[FreeBSD/FreeBSD.git] / test / CodeGen / AArch64 / arm64-return-vector.ll
1 ; RUN: llc < %s -march=arm64 | FileCheck %s
2
3 ; 2x64 vector should be returned in Q0.
4
5 define <2 x double> @test(<2 x double>* %p) nounwind {
6 ; CHECK: test
7 ; CHECK: ldr q0, [x0]
8 ; CHECK: ret
9   %tmp1 = load <2 x double>* %p, align 16
10   ret <2 x double> %tmp1
11 }