1 ; RUN: opt < %s -licm -enable-licm-constant-variables -S | grep -A 1 entry | grep load.*@a
2 @a = external constant float*
4 define void @test(i32 %count) {
9 %i.0 = phi i32 [ 0, %entry ], [ %inc, %forbody ]
10 %cmp = icmp ult i32 %i.0, %count
11 br i1 %cmp, label %forbody, label %afterfor
14 %tmp3 = load float** @a
15 %arrayidx = getelementptr float* %tmp3, i32 %i.0
16 %tmp7 = uitofp i32 %i.0 to float
17 store float %tmp7, float* %arrayidx
18 %inc = add i32 %i.0, 1