aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/NVPTX
diff options
context:
space:
mode:
authorJustin Holewinski <jholewinski@nvidia.com>2013-06-28 17:57:55 +0000
committerJustin Holewinski <jholewinski@nvidia.com>2013-06-28 17:57:55 +0000
commitbc48ce87ef608730616c3250b18c013b1b4a39fc (patch)
tree3e8731197b9e8c01eaeda13edc0d395b5a5c49bf /test/CodeGen/NVPTX
parentb67366514316bbb3cc3cb57f72f2d1439ec474bc (diff)
downloadexternal_llvm-bc48ce87ef608730616c3250b18c013b1b4a39fc.zip
external_llvm-bc48ce87ef608730616c3250b18c013b1b4a39fc.tar.gz
external_llvm-bc48ce87ef608730616c3250b18c013b1b4a39fc.tar.bz2
[NVPTX] Add support for vectorized function return values
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185173 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/NVPTX')
-rw-r--r--test/CodeGen/NVPTX/vector-args.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/NVPTX/vector-args.ll b/test/CodeGen/NVPTX/vector-args.ll
index e480b08..c6c8e73 100644
--- a/test/CodeGen/NVPTX/vector-args.ll
+++ b/test/CodeGen/NVPTX/vector-args.ll
@@ -23,3 +23,13 @@ define float @bar(<4 x float> %a) {
%t4 = fadd float %t2, %t3
ret float %t4
}
+
+
+define <4 x float> @baz(<4 x float> %a) {
+; CHECK: .func (.param .align 16 .b8 func_retval0[16]) baz
+; CHECK: .param .align 16 .b8 baz_param_0[16]
+; CHECK: ld.param.v4.f32 {%f{{[0-9]+}}, %f{{[0-9]+}}, %f{{[0-9]+}}, %f{{[0-9]+}}}
+; CHECK: st.param.v4.f32 [func_retval0+0], {%f{{[0-9]+}}, %f{{[0-9]+}}, %f{{[0-9]+}}, %f{{[0-9]+}}}
+ %t1 = fmul <4 x float> %a, %a
+ ret <4 x float> %t1
+}