2008-02-19 01:41:04 +00:00
|
|
|
; RUN: llvm-as < %s | llc
|
|
|
|
@G = external global i32 ; <i32*> [#uses=1]
|
2006-02-12 10:24:00 +00:00
|
|
|
|
2008-02-19 01:41:04 +00:00
|
|
|
define void @encode_one_frame(i64 %tmp.2i) {
|
2006-02-12 10:24:00 +00:00
|
|
|
entry:
|
2008-02-19 01:41:04 +00: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 10:24:00 +00:00
|
|
|
|
2006-02-13 07:02:50 +00:00
|
|
|
then.5.i: ; preds = %shortcirc_next.i
|
2008-02-19 01:41:04 +00: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 07:02:50 +00:00
|
|
|
ret void
|
|
|
|
|
2006-02-12 10:24:00 +00:00
|
|
|
shortcirc_next.0: ; preds = %entry
|
|
|
|
ret void
|
|
|
|
|
|
|
|
endif.0: ; preds = %entry
|
2008-02-19 01:41:04 +00: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 10:24:00 +00:00
|
|
|
|
|
|
|
then.11.i37: ; preds = %endif.0
|
|
|
|
ret void
|
|
|
|
|
|
|
|
else.4.i: ; preds = %endif.0
|
2008-02-19 01:41:04 +00:00
|
|
|
br i1 %tmp.362.i, label %else.5.i, label %then.12.i
|
2006-02-12 10:24:00 +00:00
|
|
|
|
|
|
|
then.12.i: ; preds = %else.4.i
|
|
|
|
ret void
|
|
|
|
|
|
|
|
else.5.i: ; preds = %else.4.i
|
2008-02-19 01:41:04 +00:00
|
|
|
br i1 %tmp.324.i, label %then.0.i40, label %then.17.i
|
2006-02-12 10:24:00 +00:00
|
|
|
|
|
|
|
then.17.i: ; preds = %else.5.i
|
|
|
|
ret void
|
|
|
|
|
|
|
|
then.0.i40: ; preds = %else.5.i
|
2008-02-19 01:41:04 +00: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 10:24:00 +00:00
|
|
|
|
|
|
|
then.1.i52: ; preds = %then.0.i40
|
|
|
|
ret void
|
|
|
|
|
|
|
|
else.1.i56: ; preds = %then.0.i40
|
2008-02-19 01:41:04 +00:00
|
|
|
%tmp.28.i = load i32* @G ; <i32> [#uses=1]
|
|
|
|
%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 10:24:00 +00:00
|
|
|
|
|
|
|
shortcirc_next.i: ; preds = %else.1.i56
|
2008-02-19 01:41:04 +00: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 10:24:00 +00:00
|
|
|
|
|
|
|
shortcirc_done.i: ; preds = %else.1.i56
|
|
|
|
ret void
|
|
|
|
|
|
|
|
endif.5.i: ; preds = %shortcirc_next.i
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2008-02-19 01:41:04 +00:00
|
|
|
declare i64 @lseek(i32, i64, i32)
|