; ModuleID = 'radeon' target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v24:32:32-v32:32:32-v48:64:64-v64:64:64-v96:128:128-v128:128:128-v192:256:256-v256:256:256-v512:512:512-v1024:1024:1024-v2048:2048:2048-n32:64" target triple = "r600--" ; Function Attrs: nounwind define void @test4(i32 addrspace(1)* nocapture %a, i32 addrspace(1)* nocapture %b, i32 addrspace(1)* nocapture %c) #0 { entry: %x.i12.i = tail call i32 @llvm.r600.read.local.size.x() #1 %x.i.i = tail call i32 @llvm.r600.read.tgid.x() #1 %x.i4.i = tail call i32 @llvm.r600.read.tidig.x() #1 %mul26.i = mul i32 %x.i.i, %x.i12.i %add.i = add i32 %x.i4.i, %mul26.i %0 = sext i32 %add.i to i64 %arrayidx = getelementptr inbounds i32 addrspace(1)* %b, i64 %0 %1 = load i32 addrspace(1)* %arrayidx, align 4, !tbaa !1 %cmp = icmp eq i32 %1, 0 br i1 %cmp, label %if.then, label %if.else if.then: ; preds = %entry %arrayidx1 = getelementptr inbounds i32 addrspace(1)* %c, i64 %0 store i32 0, i32 addrspace(1)* %arrayidx1, align 4, !tbaa !1 br label %if.end if.else: ; preds = %entry %arrayidx2 = getelementptr inbounds i32 addrspace(1)* %a, i64 %0 %2 = load i32 addrspace(1)* %arrayidx2, align 4, !tbaa !1 %add = add i32 %2, %1 %arrayidx4 = getelementptr inbounds i32 addrspace(1)* %c, i64 %0 store i32 %add, i32 addrspace(1)* %arrayidx4, align 4, !tbaa !1 br label %if.end if.end: ; preds = %if.else, %if.then ret void } ; Function Attrs: nounwind readnone declare i32 @llvm.r600.read.tgid.x() #1 ; Function Attrs: nounwind readnone declare i32 @llvm.r600.read.local.size.x() #1 ; Function Attrs: nounwind readnone declare i32 @llvm.r600.read.tidig.x() #1 attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" } attributes #1 = { nounwind readnone } !opencl.kernels = !{!0} !0 = metadata !{void (i32 addrspace(1)*, i32 addrspace(1)*, i32 addrspace(1)*)* @test4} !1 = metadata !{metadata !"int", metadata !2} !2 = metadata !{metadata !"omnipotent char", metadata !3} !3 = metadata !{metadata !"Simple C/C++ TBAA"}