[NVPTX] aligned byte-buffers for vector return types
[oota-llvm.git] / test / CodeGen / NVPTX / vector-return.ll
1 ; RUN: llc < %s -march=nvptx64 -mcpu=sm_35 | FileCheck %s
2
3 declare <2 x float> @bar(<2 x float> %input)
4
5 define void @foo(<2 x float> %input, <2 x float>* %output) {
6 ; CHECK-LABEL: @foo
7 entry:
8   %call = tail call <2 x float> @bar(<2 x float> %input)
9 ; CHECK: .param .align 8 .b8 retval0[8];
10 ; CHECK: ld.param.v2.f32 {[[ELEM1:%f[0-9]+]], [[ELEM2:%f[0-9]+]]}, [retval0+0];
11   store <2 x float> %call, <2 x float>* %output, align 8
12 ; CHECK: st.v2.f32 [{{%rd[0-9]+}}], {[[ELEM1]], [[ELEM2]]}
13   ret void
14 }