1 ; RUN: llc -mtriple amdgcn-amd-- -mcpu=bonaire -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
3 ; Before the fix that this test was committed with, this code would leave
4 ; an unused stack slot, causing ScratchSize to be non-zero.
6 ; GCN-LABEL: store_v3i32:
10 define amdgpu_kernel void @store_v3i32(<3 x i32> addrspace(3)* %out, <3 x i32> %a) nounwind {
11 %val = load <3 x i32>, <3 x i32> addrspace(3)* %out
12 %val.1 = add <3 x i32> %a, %val
13 store <3 x i32> %val.1, <3 x i32> addrspace(3)* %out, align 16
17 ; GCN-LABEL: store_v5i32:
23 define amdgpu_kernel void @store_v5i32(<5 x i32> addrspace(3)* %out, <5 x i32> %a) nounwind {
24 %val = load <5 x i32>, <5 x i32> addrspace(3)* %out
25 %val.1 = add <5 x i32> %a, %val
26 store <5 x i32> %val.1, <5 x i32> addrspace(3)* %out, align 16