2008-03-19 05:39:35 +00:00
|
|
|
; RUN: llvm-as < %s | opt -predsimplify -disable-output
|
2006-11-22 23:49:16 +00:00
|
|
|
|
2008-03-19 05:39:35 +00:00
|
|
|
define i32 @test_wp_B_slice(i32 %select_method) {
|
2006-11-22 23:49:16 +00:00
|
|
|
entry:
|
|
|
|
br label %bb309
|
|
|
|
cond_true114: ; preds = %bb309
|
2008-03-19 05:39:35 +00:00
|
|
|
%tmp130 = icmp slt i32 0, 128 ; <i1> [#uses=1]
|
|
|
|
%min = select i1 %tmp130, i32 0, i32 127 ; <i32> [#uses=2]
|
|
|
|
%tmp143 = load i32* null ; <i32> [#uses=0]
|
|
|
|
br i1 false, label %bb303, label %bb314
|
2006-11-22 23:49:16 +00:00
|
|
|
cond_true166: ; preds = %bb303
|
2008-03-19 05:39:35 +00:00
|
|
|
ret i32 0
|
2006-11-22 23:49:16 +00:00
|
|
|
cond_false200: ; preds = %bb303
|
2008-03-19 05:39:35 +00:00
|
|
|
%tmp205 = sdiv i32 %min, 2 ; <i32> [#uses=1]
|
|
|
|
%iftmp.380.0.p = select i1 false, i32 0, i32 %tmp205 ; <i32> [#uses=0]
|
|
|
|
ret i32 0
|
2006-11-22 23:49:16 +00:00
|
|
|
bb303: ; preds = %cond_true114
|
2008-03-19 05:39:35 +00:00
|
|
|
%tmp165 = icmp eq i32 %min, 0 ; <i1> [#uses=1]
|
|
|
|
br i1 %tmp165, label %cond_true166, label %cond_false200
|
|
|
|
bb309: ; preds = %entry
|
|
|
|
br i1 false, label %cond_true114, label %bb314
|
|
|
|
bb314: ; preds = %bb309, %cond_true114
|
|
|
|
ret i32 0
|
2006-11-22 23:49:16 +00:00
|
|
|
}
|
2008-03-19 05:39:35 +00:00
|
|
|
|