1 ; RUN: not --crash opt -S -mtriple=amdgcn-- -amdgpu-lower-module-lds < %s 2>&1 | FileCheck %s
2 ; RUN: not --crash opt -S -mtriple=amdgcn-- -passes=amdgpu-lower-module-lds < %s 2>&1 | FileCheck %s
4 @var1 = addrspace(3) global i32 undef, !absolute_symbol !0
6 ; CHECK: LLVM ERROR: LDS variables with absolute addresses are unimplemented.
7 define amdgpu_kernel void @kern() {
8 %val0 = load i32, ptr addrspace(3) @var1
9 %val1 = add i32 %val0, 4
10 store i32 %val1, ptr addrspace(3) @var1