brintos

brintos / llvm-project-archived public Read only

0
0
Text · 519 B · 1fe29f6 Raw
17 lines · plain
1; RUN: opt -S -mtriple=amdgcn-- -amdgpu-lower-module-lds %s -o %t.ll2; RUN: opt -S -mtriple=amdgcn-- -amdgpu-lower-module-lds %t.ll -o %t.second.ll3; RUN: diff -ub %t.ll %t.second.ll -I ".*ModuleID.*"4 5; Check AMDGPULowerModuleLDS can run more than once on the same module, and that6; the second run is a no-op.7 8@lds = internal unnamed_addr addrspace(3) global i32 poison, align 4, !absolute_symbol !09 10define amdgpu_kernel void @test() {11entry:12  store i32 1, ptr addrspace(3) @lds13  ret void14}15 16!0 = !{i32 0, i32 1}17