diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 |
commit | 71d5a2540a98c81f5bcaeb48805e0e2881f530ef (patch) | |
tree | 5343938942df402b49ec7300a1c25a2d4ccd5821 /test/CodeGen/AMDGPU/amdgpu-shader-calling-convention.ll | |
parent | 31bbf64f3a4974a2d6c8b3b27ad2f519caf74057 (diff) |
Diffstat (limited to 'test/CodeGen/AMDGPU/amdgpu-shader-calling-convention.ll')
-rw-r--r-- | test/CodeGen/AMDGPU/amdgpu-shader-calling-convention.ll | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/CodeGen/AMDGPU/amdgpu-shader-calling-convention.ll b/test/CodeGen/AMDGPU/amdgpu-shader-calling-convention.ll index dd16907b748c..0ba8836b20dc 100644 --- a/test/CodeGen/AMDGPU/amdgpu-shader-calling-convention.ll +++ b/test/CodeGen/AMDGPU/amdgpu-shader-calling-convention.ll @@ -13,9 +13,10 @@ define amdgpu_cs float @shader_cc(<4 x i32> inreg, <4 x i32> inreg, i32 inreg %w ; GCN-LABEL: {{^}}kernel_cc: ; GCN: s_endpgm -define float @kernel_cc(<4 x i32> inreg, <4 x i32> inreg, i32 inreg %w, float %v) { +define amdgpu_kernel void @kernel_cc(<4 x i32> inreg, <4 x i32> inreg, i32 inreg %w, float %v) { %vi = bitcast float %v to i32 %x = add i32 %vi, %w %xf = bitcast i32 %x to float - ret float %xf + store float %xf, float addrspace(1)* undef + ret void } |