summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/amdgpu-shader-calling-convention.ll
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2017-04-11 22:29:24 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2017-04-11 22:29:24 +0000
commite622dc38038ebc17a4f00ffa6622ff3db5383ce0 (patch)
tree2be7aab41ea012ded0e9710d59023a248bbd6f1d /llvm/test/CodeGen/AMDGPU/amdgpu-shader-calling-convention.ll
parentfe78ffba92c01a1138e12746d3fc74dfd17e01a8 (diff)
downloadbcm5719-llvm-e622dc38038ebc17a4f00ffa6622ff3db5383ce0.tar.gz
bcm5719-llvm-e622dc38038ebc17a4f00ffa6622ff3db5383ce0.zip
AMDGPU: Refactor argument lowering
Split into smaller functions and prepare for handling non-entry functions. llvm-svn: 299998
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/amdgpu-shader-calling-convention.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/amdgpu-shader-calling-convention.ll5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/amdgpu-shader-calling-convention.ll b/llvm/test/CodeGen/AMDGPU/amdgpu-shader-calling-convention.ll
index dd16907b748..0ba8836b20d 100644
--- a/llvm/test/CodeGen/AMDGPU/amdgpu-shader-calling-convention.ll
+++ b/llvm/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
}
OpenPOWER on IntegriCloud