brintos

brintos / llvm-project-archived public Read only

0
0
Text · 544 B · 14636f1 Raw
15 lines · plain
1; RUN: opt -mtriple=amdgcn-amd-amdhsa -passes=separate-const-offset-from-gep %s2 3@gv = external local_unnamed_addr addrspace(3) global [16 x i8], align 164 5; The add referencing itself is illegal, except it's in an unreachable block.6define weak amdgpu_kernel void @foo() {7entry:8  ret void9 10for.body28.i:                                     ; preds = %for.body28.i11  %arrayidx3389.i = getelementptr inbounds [16 x i8], ptr addrspace(3) @gv, i32 0, i32 %inc38.7.i.112  %inc38.7.i.1 = add nuw nsw i32 %inc38.7.i.1, 1613  br label %for.body28.i14}15