2007-01-09 06:25:15 +00:00
|
|
|
; For PR1099
|
2007-02-15 21:01:58 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=c | \
|
2007-05-14 17:58:52 +00:00
|
|
|
; RUN: grep {return ((((llvm_cbe_tmp2 == llvm_cbe_b_0_0_val)) ? (1) : (0)))}
|
2007-01-09 06:25:15 +00:00
|
|
|
|
|
|
|
target datalayout = "e-p:32:32"
|
|
|
|
target triple = "i686-apple-darwin8"
|
|
|
|
%struct.Connector = type { i16, i16, i8, i8, %struct.Connector*, i8* }
|
|
|
|
|
|
|
|
|
2007-02-15 21:01:58 +00:00
|
|
|
define i1 @prune_match_entry_2E_ce(%struct.Connector* %a, i16 %b.0.0.val) {
|
2007-01-09 06:25:15 +00:00
|
|
|
newFuncRoot:
|
|
|
|
br label %entry.ce
|
|
|
|
|
|
|
|
cond_next.exitStub: ; preds = %entry.ce
|
2007-02-15 21:01:58 +00:00
|
|
|
ret i1 true
|
2007-01-09 06:25:15 +00:00
|
|
|
|
|
|
|
entry.return_crit_edge.exitStub: ; preds = %entry.ce
|
2007-02-15 21:01:58 +00:00
|
|
|
ret i1 false
|
2007-01-09 06:25:15 +00:00
|
|
|
|
|
|
|
entry.ce: ; preds = %newFuncRoot
|
2007-02-15 21:01:58 +00:00
|
|
|
%tmp1 = getelementptr %struct.Connector* %a, i32 0, i32 0 ; <i16*> [#uses=1]
|
|
|
|
%tmp2 = load i16* %tmp1 ; <i16> [#uses=1]
|
|
|
|
%tmp3 = icmp eq i16 %tmp2, %b.0.0.val ; <i1> [#uses=1]
|
|
|
|
br i1 %tmp3, label %cond_next.exitStub, label %entry.return_crit_edge.exitStub
|
2007-01-09 06:25:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|