summaryrefslogtreecommitdiff
path: root/test/CodeGen/NVPTX/vector-args.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/NVPTX/vector-args.ll')
-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 e480b08607..c6c8e73bf8 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
+}