diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-02-12 10:24:00 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-02-12 10:24:00 +0000 |
commit | 50b5c2ebd91c3fec75750b53880ff04048a043d4 (patch) | |
tree | 72d18ddf86917ac9ed78f5dacf63ab57b36b4518 /test | |
parent | 789fd42320857a13ecca110b3e83a450063f5c73 (diff) | |
download | external_llvm-50b5c2ebd91c3fec75750b53880ff04048a043d4.zip external_llvm-50b5c2ebd91c3fec75750b53880ff04048a043d4.tar.gz external_llvm-50b5c2ebd91c3fec75750b53880ff04048a043d4.tar.bz2 |
Added a test case for a libcall insertion bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/Generic/2006-02-12-InsertLibcall.ll | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2006-02-12-InsertLibcall.ll b/test/CodeGen/Generic/2006-02-12-InsertLibcall.ll new file mode 100644 index 0000000..c847771 --- /dev/null +++ b/test/CodeGen/Generic/2006-02-12-InsertLibcall.ll @@ -0,0 +1,64 @@ +; RUN: llvm-as < %s | llc + + %typedef.InputParameters = type { int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, [8 x [2 x int]], [8 x [2 x int]], int, int, int, int, [200 x sbyte], [200 x sbyte], [200 x sbyte], [200 x sbyte], [200 x sbyte], int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, [1024 x sbyte], int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, double, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, [200 x sbyte], [200 x sbyte], int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, [200 x sbyte], int, int, int*, int*, ubyte*, int*, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, [8 x int], int, int, int, int, int, int, int, int, int, int, int, [6 x double], [200 x sbyte], int, int, int, int, [2 x [5 x int]], int, int, int, int } + +%inputs = external global %typedef.InputParameters ; <%typedef.InputParameters*> [#uses=1] + +void %encode_one_frame() { +entry: + %tmp.9 = seteq int 0, 0 ; <bool> [#uses=1] + br bool %tmp.9, label %endif.0, label %shortcirc_next.0 + +shortcirc_next.0: ; preds = %entry + ret void + +endif.0: ; preds = %entry + %tmp.324.i = seteq int 0, 0 ; <bool> [#uses=2] + %tmp.362.i = setlt int 0, 0 ; <bool> [#uses=1] + br bool %tmp.324.i, label %else.4.i, label %then.11.i37 + +then.11.i37: ; preds = %endif.0 + ret void + +else.4.i: ; preds = %endif.0 + br bool %tmp.362.i, label %else.5.i, label %then.12.i + +then.12.i: ; preds = %else.4.i + ret void + +else.5.i: ; preds = %else.4.i + br bool %tmp.324.i, label %then.0.i40, label %then.17.i + +then.17.i: ; preds = %else.5.i + ret void + +then.0.i40: ; preds = %else.5.i + %tmp.8.i42 = seteq int 0, 0 ; <bool> [#uses=1] + br bool %tmp.8.i42, label %else.1.i56, label %then.1.i52 + +then.1.i52: ; preds = %then.0.i40 + ret void + +else.1.i56: ; preds = %then.0.i40 + %tmp.25.i = cast int 0 to long ; <long> [#uses=1] + %tmp.28.i = load int* getelementptr (%typedef.InputParameters* %inputs, int 0, uint 152) ; <int> [#uses=1] + %tmp.29.i = seteq int %tmp.28.i, 1 ; <bool> [#uses=1] + br bool %tmp.29.i, label %shortcirc_next.i, label %shortcirc_done.i + +shortcirc_next.i: ; preds = %else.1.i56 + %tmp.34.i = seteq int 0, 3 ; <bool> [#uses=1] + br bool %tmp.34.i, label %then.5.i, label %endif.5.i + +shortcirc_done.i: ; preds = %else.1.i56 + ret void + +then.5.i: ; preds = %shortcirc_next.i + %tmp.114.i = div long %tmp.25.i, 3 ; <long> [#uses=1] + %tmp.111.i = call long %lseek( int 0, long %tmp.114.i, int 1 ) ; <long> [#uses=0] + ret void + +endif.5.i: ; preds = %shortcirc_next.i + ret void +} + +declare long %lseek(int, long, int) |