From e622dc38038ebc17a4f00ffa6622ff3db5383ce0 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Tue, 11 Apr 2017 22:29:24 +0000 Subject: AMDGPU: Refactor argument lowering Split into smaller functions and prepare for handling non-entry functions. llvm-svn: 299998 --- llvm/test/CodeGen/AMDGPU/amdgpu-shader-calling-convention.ll | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'llvm/test/CodeGen/AMDGPU/amdgpu-shader-calling-convention.ll') 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 } -- cgit v1.2.3