brintos

brintos / llvm-project-archived public Read only

0
0
Text · 574 B · 58228fd 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@dynlds = external addrspace(3) global [0 x i32], align 49@lds = internal unnamed_addr addrspace(3) global i32 poison, align 410 11define amdgpu_kernel void @test() {12entry:13  store i32 0, ptr addrspace(3) @dynlds14  store i32 1, ptr addrspace(3) @lds15  ret void16}17