blob: 9c064eebe58413645013d6b16ec3a9e2ad35bf74 [file] [log] [blame]
Tanya Lattner97b38e12008-03-19 05:39:35 +00001; RUN: llvm-as < %s | opt -predsimplify -verify
2target datalayout = "e-p:32:32"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003target triple = "i686-pc-linux-gnu"
4deplibs = [ "c", "crtend" ]
Tanya Lattner97b38e12008-03-19 05:39:35 +00005 %struct.anon = type { %struct.set_family*, %struct.set_family*, %struct.set_family*, i8*, i32, i32*, %struct.pair_struct*, i8**, %struct.symbolic_t*, %struct.symbolic_t* }
6 %struct.pair_struct = type { i32, i32*, i32* }
7 %struct.set_family = type { i32, i32, i32, i32, i32, i32*, %struct.set_family* }
8 %struct.symbolic_label_t = type { i8*, %struct.symbolic_label_t* }
9 %struct.symbolic_list_t = type { i32, i32, %struct.symbolic_list_t* }
10 %struct.symbolic_t = type { %struct.symbolic_list_t*, i32, %struct.symbolic_label_t*, i32, %struct.symbolic_t* }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011
Tanya Lattner97b38e12008-03-19 05:39:35 +000012define void @find_pairing_cost(i32 %strategy) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013entry:
Tanya Lattner97b38e12008-03-19 05:39:35 +000014 br i1 false, label %cond_true299, label %bb314
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015bb94: ; preds = %cond_true299
Tanya Lattner97b38e12008-03-19 05:39:35 +000016 switch i32 %strategy, label %bb246 [
17 i32 0, label %bb196
18 i32 1, label %bb159
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019 ]
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020cond_next113: ; preds = %cond_true299
Tanya Lattner97b38e12008-03-19 05:39:35 +000021 switch i32 %strategy, label %bb246 [
22 i32 0, label %bb196
23 i32 1, label %bb159
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024 ]
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025bb159: ; preds = %cond_next113, %bb94
26 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027bb196: ; preds = %cond_next113, %bb94
28 %Rsave.0.3 = phi %struct.set_family* [ null, %bb94 ], [ null, %cond_next113 ] ; <%struct.set_family*> [#uses=0]
29 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030bb246: ; preds = %cond_next113, %bb94
31 br label %bb314
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032cond_true299: ; preds = %entry
Tanya Lattner97b38e12008-03-19 05:39:35 +000033 %tmp55 = icmp sgt i32 %strategy, 0 ; <i1> [#uses=1]
34 br i1 %tmp55, label %bb94, label %cond_next113
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035bb314: ; preds = %bb246, %entry
36 ret void
37}