1 ; RUN: opt %s -jump-threading | llvm-dis
4 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
5 target triple = "i386-apple-darwin9.6"
7 define i32 @func(i32 %p_79, i32 %p_80) nounwind {
14 bb2: ; preds = %bb7, %bb1
15 %l_82.0 = phi i8 [ 0, %bb1 ], [ %l_82.1, %bb7 ] ; <i8> [#uses=3]
16 br i1 true, label %bb3, label %bb1
19 %0 = icmp eq i32 %p_80_addr.1, 0 ; <i1> [#uses=1]
20 br i1 %0, label %bb7, label %bb6
23 %1 = icmp eq i8 %l_82.0, 0 ; <i1> [#uses=1]
24 br i1 %1, label %bb1.i, label %bb.i
27 br label %safe_div_func_char_s_s.exit
30 br label %safe_div_func_char_s_s.exit
32 safe_div_func_char_s_s.exit: ; preds = %bb1.i, %bb.i
35 bb6: ; preds = %safe_div_func_char_s_s.exit, %bb3
36 %p_80_addr.0 = phi i32 [ %p_80_addr.1, %bb3 ], [ 1, %safe_div_func_char_s_s.exit ] ; <i32> [#uses=2]
37 %2 = icmp eq i32 %p_80_addr.0, 0 ; <i1> [#uses=1]
38 br i1 %2, label %bb7, label %bb5
40 bb7: ; preds = %bb6, %bb3, %entry
41 %l_82.1 = phi i8 [ 1, %entry ], [ %l_82.0, %bb3 ], [ %l_82.0, %bb6 ] ; <i8> [#uses=2]
42 %p_80_addr.1 = phi i32 [ 0, %entry ], [ %p_80_addr.1, %bb3 ], [ %p_80_addr.0, %bb6 ] ; <i32> [#uses=4]
43 %3 = icmp eq i32 %p_80_addr.1, 0 ; <i1> [#uses=1]
44 br i1 %3, label %bb8, label %bb2
47 %4 = sext i8 %l_82.1 to i32 ; <i32> [#uses=0]