mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
[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
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user