blob: 63dd9da0b11d17d7adf7de94f7ce50b7c1abbba9 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; For PR1099
Chris Lattner68e88842008-05-31 19:50:53 +00002; RUN: llvm-as < %s | llc -march=c | grep {(llvm_cbe_tmp2 == llvm_cbe_b_2e_0_2e_0_2e_val)}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003
4target datalayout = "e-p:32:32"
5target triple = "i686-apple-darwin8"
6 %struct.Connector = type { i16, i16, i8, i8, %struct.Connector*, i8* }
7
8
9define i1 @prune_match_entry_2E_ce(%struct.Connector* %a, i16 %b.0.0.val) {
10newFuncRoot:
11 br label %entry.ce
12
13cond_next.exitStub: ; preds = %entry.ce
14 ret i1 true
15
16entry.return_crit_edge.exitStub: ; preds = %entry.ce
17 ret i1 false
18
19entry.ce: ; preds = %newFuncRoot
20 %tmp1 = getelementptr %struct.Connector* %a, i32 0, i32 0 ; <i16*> [#uses=1]
21 %tmp2 = load i16* %tmp1 ; <i16> [#uses=1]
22 %tmp3 = icmp eq i16 %tmp2, %b.0.0.val ; <i1> [#uses=1]
23 br i1 %tmp3, label %cond_next.exitStub, label %entry.return_crit_edge.exitStub
24}
25
26