2009-09-08 16:50:01 +00:00
|
|
|
; RUN: opt %s -instcombine | llvm-dis | \
|
2007-04-14 20:13:02 +00:00
|
|
|
; RUN: grep {%bothcond =}
|
2006-12-08 17:38:55 +00:00
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
define i1 @Doit_bb(i32 %i.0) {
|
|
|
|
bb:
|
|
|
|
%tmp = icmp sgt i32 %i.0, 0 ; <i1> [#uses=1]
|
|
|
|
%tmp.not = xor i1 %tmp, true ; <i1> [#uses=1]
|
|
|
|
%tmp2 = icmp sgt i32 %i.0, 8 ; <i1> [#uses=1]
|
|
|
|
%bothcond = or i1 %tmp.not, %tmp2 ; <i1> [#uses=1]
|
|
|
|
br i1 %bothcond, label %exitTrue, label %exitFalse
|
2006-12-08 17:38:55 +00:00
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
exitTrue: ; preds = %bb
|
|
|
|
ret i1 true
|
2006-12-08 17:38:55 +00:00
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
exitFalse: ; preds = %bb
|
|
|
|
ret i1 false
|
2006-12-08 17:38:55 +00:00
|
|
|
}
|
2008-03-01 09:15:35 +00:00
|
|
|
|