1 ; XFAIL: target={{.*}}-aix{{.*}}
3 ; RUN: opt -S -mtriple=amdgcn-- -amdgpu-lower-module-lds %s -o %t.ll
4 ; RUN: opt -S -mtriple=amdgcn-- -amdgpu-lower-module-lds %t.ll -o %t.second.ll
5 ; RUN: diff -ub %t.ll %t.second.ll -I ".*ModuleID.*"
7 ; Check AMDGPULowerModuleLDS can run more than once on the same module, and that
8 ; the second run is a no-op.
10 @dynlds = external addrspace(3) global [0 x i32], align 4
11 @lds = internal unnamed_addr addrspace(3) global i32 undef, align 4
13 define amdgpu_kernel void @test() {
15 store i32 0, ptr addrspace(3) @dynlds
16 store i32 1, ptr addrspace(3) @lds