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
5 @var2 = addrspace(3) global i32 undef
7 ; CHECK: Module cannot mix absolute and non-absolute LDS GVs
8 define amdgpu_kernel void @kern() {
9 %val0 = load i32, ptr addrspace(3) @var1
10 %val1 = add i32 %val0, 4
11 store i32 %val1, ptr addrspace(3) @var2