1 ; RUN: not llc -mtriple=amdgcn-amd-amdhsa -o /dev/null %s 2>&1 | FileCheck %s 2 3 @lds = internal addrspace(3) global float undef, align 4 4 5 ; CHECK: error: <unknown>:0:0: in function func_use_lds_global void (): local memory global used by non-kernel function 6 define void @func_use_lds_global() { 7 store float 0.0, float addrspace(3)* @lds, align 4 8 ret void 9 } 10