27 lines · plain
1; RUN: llc < %s -mtriple=thumbv6-apple-darwin -relocation-model=pic -frame-pointer=all2 3 %struct.LinkList = type { i32, ptr }4 %struct.List = type { i32, ptr }5@llvm.used = appending global [1 x ptr] [ptr @main], section "llvm.metadata" ; <ptr> [#uses=0]6 7define i32 @main() nounwind {8entry:9 %ll = alloca ptr, align 4 ; <ptr> [#uses=1]10 %0 = call i32 @ReadList(ptr %ll, ptr null) nounwind ; <i32> [#uses=1]11 switch i32 %0, label %bb5 [12 i32 7, label %bb413 i32 42, label %bb314 ]15 16bb3: ; preds = %entry17 ret i32 118 19bb4: ; preds = %entry20 ret i32 021 22bb5: ; preds = %entry23 ret i32 124}25 26declare i32 @ReadList(ptr nocapture, ptr nocapture) nounwind27