1; RUN: llc < %s -mtriple=thumbv6-apple-darwin -relocation-model=pic -frame-pointer=all 2 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 %bb4 13 i32 42, label %bb3 14 ] 15 16bb3: ; preds = %entry 17 ret i32 1 18 19bb4: ; preds = %entry 20 ret i32 0 21 22bb5: ; preds = %entry 23 ret i32 1 24} 25 26declare i32 @ReadList(ptr nocapture, ptr nocapture) nounwind 27