2009-09-12 02:01:28 +08:00
|
|
|
; RUN: opt < %s -instcombine -S | \
|
2007-04-15 04:13:02 +08:00
|
|
|
; RUN: grep {%bothcond =}
|
2006-12-09 01:38:55 +08:00
|
|
|
|
2008-03-01 17:15:35 +08: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-09 01:38:55 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
exitTrue: ; preds = %bb
|
|
|
|
ret i1 true
|
2006-12-09 01:38:55 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
exitFalse: ; preds = %bb
|
|
|
|
ret i1 false
|
2006-12-09 01:38:55 +08:00
|
|
|
}
|
2008-03-01 17:15:35 +08:00
|
|
|
|