brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 4104b64 Raw
44 lines · plain
1; RUN: llc < %s -mtriple=i386-pc-linux-gnu2; PR60273 4%class.OlsonTimeZone = type { i16, ptr, ptr, i16 }5 6define void @XX(ptr %this) align 2 {7entry:8  %call = tail call ptr @_Z15uprv_malloc_4_2v()9  %tmp = getelementptr inbounds %class.OlsonTimeZone, ptr %this, i32 0, i32 310  %tmp2 = load i16, ptr %tmp11  %tmp626 = load i16, ptr %this12  %cmp27 = icmp slt i16 %tmp2, %tmp62613  br i1 %cmp27, label %bb.nph, label %for.end14 15for.cond:16  %tmp6 = load i16, ptr %this17  %cmp = icmp slt i16 %inc, %tmp618  %indvar.next = add i32 %indvar, 119  br i1 %cmp, label %for.body, label %for.end20 21bb.nph:22  %tmp10 = getelementptr inbounds %class.OlsonTimeZone, ptr %this, i32 0, i32 223  %tmp17 = getelementptr inbounds %class.OlsonTimeZone, ptr %this, i32 0, i32 124  %tmp29 = sext i16 %tmp2 to i3225  %tmp31 = add i16 %tmp2, 126  %tmp32 = zext i16 %tmp31 to i3227  br label %for.body28 29for.body:30  %indvar = phi i32 [ 0, %bb.nph ], [ %indvar.next, %for.cond ]31  %tmp30 = add i32 %indvar, %tmp2932  %tmp33 = add i32 %indvar, %tmp3233  %inc = trunc i32 %tmp33 to i1634  %tmp11 = load ptr, ptr %tmp1035  %arrayidx = getelementptr i8, ptr %tmp11, i32 %tmp3036  %tmp12 = load i8, ptr %arrayidx37  br label %for.cond38 39for.end:40  ret void41}42 43declare ptr @_Z15uprv_malloc_4_2v()44