2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s
|
2008-02-19 09:41:04 +08:00
|
|
|
@G = external global i32 ; <i32*> [#uses=1]
|
2006-02-12 18:24:00 +08:00
|
|
|
|
2008-02-19 09:41:04 +08:00
|
|
|
define void @encode_one_frame(i64 %tmp.2i) {
|
2006-02-12 18:24:00 +08:00
|
|
|
entry:
|
2008-02-19 09:41:04 +08:00
|
|
|
%tmp.9 = icmp eq i32 0, 0 ; <i1> [#uses=1]
|
|
|
|
br i1 %tmp.9, label %endif.0, label %shortcirc_next.0
|
2006-02-12 18:24:00 +08:00
|
|
|
|
2006-02-13 15:02:50 +08:00
|
|
|
then.5.i: ; preds = %shortcirc_next.i
|
2008-02-19 09:41:04 +08:00
|
|
|
%tmp.114.i = sdiv i64 %tmp.2i, 3 ; <i64> [#uses=1]
|
|
|
|
%tmp.111.i = call i64 @lseek( i32 0, i64 %tmp.114.i, i32 1 ) ; <i64> [#uses=0]
|
2006-02-13 15:02:50 +08:00
|
|
|
ret void
|
|
|
|
|
2006-02-12 18:24:00 +08:00
|
|
|
shortcirc_next.0: ; preds = %entry
|
|
|
|
ret void
|
|
|
|
|
|
|
|
endif.0: ; preds = %entry
|
2008-02-19 09:41:04 +08:00
|
|
|
%tmp.324.i = icmp eq i32 0, 0 ; <i1> [#uses=2]
|
|
|
|
%tmp.362.i = icmp slt i32 0, 0 ; <i1> [#uses=1]
|
|
|
|
br i1 %tmp.324.i, label %else.4.i, label %then.11.i37
|
2006-02-12 18:24:00 +08:00
|
|
|
|
|
|
|
then.11.i37: ; preds = %endif.0
|
|
|
|
ret void
|
|
|
|
|
|
|
|
else.4.i: ; preds = %endif.0
|
2008-02-19 09:41:04 +08:00
|
|
|
br i1 %tmp.362.i, label %else.5.i, label %then.12.i
|
2006-02-12 18:24:00 +08:00
|
|
|
|
|
|
|
then.12.i: ; preds = %else.4.i
|
|
|
|
ret void
|
|
|
|
|
|
|
|
else.5.i: ; preds = %else.4.i
|
2008-02-19 09:41:04 +08:00
|
|
|
br i1 %tmp.324.i, label %then.0.i40, label %then.17.i
|
2006-02-12 18:24:00 +08:00
|
|
|
|
|
|
|
then.17.i: ; preds = %else.5.i
|
|
|
|
ret void
|
|
|
|
|
|
|
|
then.0.i40: ; preds = %else.5.i
|
2008-02-19 09:41:04 +08:00
|
|
|
%tmp.8.i42 = icmp eq i32 0, 0 ; <i1> [#uses=1]
|
|
|
|
br i1 %tmp.8.i42, label %else.1.i56, label %then.1.i52
|
2006-02-12 18:24:00 +08:00
|
|
|
|
|
|
|
then.1.i52: ; preds = %then.0.i40
|
|
|
|
ret void
|
|
|
|
|
|
|
|
else.1.i56: ; preds = %then.0.i40
|
2015-02-28 05:17:42 +08:00
|
|
|
%tmp.28.i = load i32, i32* @G ; <i32> [#uses=1]
|
2008-02-19 09:41:04 +08:00
|
|
|
%tmp.29.i = icmp eq i32 %tmp.28.i, 1 ; <i1> [#uses=1]
|
|
|
|
br i1 %tmp.29.i, label %shortcirc_next.i, label %shortcirc_done.i
|
2006-02-12 18:24:00 +08:00
|
|
|
|
|
|
|
shortcirc_next.i: ; preds = %else.1.i56
|
2008-02-19 09:41:04 +08:00
|
|
|
%tmp.34.i = icmp eq i32 0, 3 ; <i1> [#uses=1]
|
|
|
|
br i1 %tmp.34.i, label %then.5.i, label %endif.5.i
|
2006-02-12 18:24:00 +08:00
|
|
|
|
|
|
|
shortcirc_done.i: ; preds = %else.1.i56
|
|
|
|
ret void
|
|
|
|
|
|
|
|
endif.5.i: ; preds = %shortcirc_next.i
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2008-02-19 09:41:04 +08:00
|
|
|
declare i64 @lseek(i32, i64, i32)
|