aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Generic/2006-02-12-InsertLibcall.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-02-19 01:41:04 +0000
committerTanya Lattner <tonic@nondot.org>2008-02-19 01:41:04 +0000
commit53a66d10f01ebfeac7b8e59ca677f2cf2d4a3b26 (patch)
tree896c6dee3a55f268ea98656237c7954799fd8ec7 /test/CodeGen/Generic/2006-02-12-InsertLibcall.ll
parentefec751a1b786724862ceff52748df94873a807e (diff)
downloadexternal_llvm-53a66d10f01ebfeac7b8e59ca677f2cf2d4a3b26.zip
external_llvm-53a66d10f01ebfeac7b8e59ca677f2cf2d4a3b26.tar.gz
external_llvm-53a66d10f01ebfeac7b8e59ca677f2cf2d4a3b26.tar.bz2
Remove llvm-upgrade and update tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47296 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic/2006-02-12-InsertLibcall.ll')
-rw-r--r--test/CodeGen/Generic/2006-02-12-InsertLibcall.ll40
1 files changed, 20 insertions, 20 deletions
diff --git a/test/CodeGen/Generic/2006-02-12-InsertLibcall.ll b/test/CodeGen/Generic/2006-02-12-InsertLibcall.ll
index d18ce14..bacf8b5 100644
--- a/test/CodeGen/Generic/2006-02-12-InsertLibcall.ll
+++ b/test/CodeGen/Generic/2006-02-12-InsertLibcall.ll
@@ -1,54 +1,54 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc
-%G = external global int
+; RUN: llvm-as < %s | llc
+@G = external global i32 ; <i32*> [#uses=1]
-void %encode_one_frame(long %tmp.2i) {
+define void @encode_one_frame(i64 %tmp.2i) {
entry:
- %tmp.9 = seteq int 0, 0 ; <bool> [#uses=1]
- br bool %tmp.9, label %endif.0, label %shortcirc_next.0
+ %tmp.9 = icmp eq i32 0, 0 ; <i1> [#uses=1]
+ br i1 %tmp.9, label %endif.0, label %shortcirc_next.0
then.5.i: ; preds = %shortcirc_next.i
- %tmp.114.i = div long %tmp.2i, 3 ; <long> [#uses=1]
- %tmp.111.i = call long %lseek( int 0, long %tmp.114.i, int 1 ) ; <long> [#uses=0]
+ %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]
ret void
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
+ %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
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
+ br i1 %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
+ br i1 %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
+ %tmp.8.i42 = icmp eq i32 0, 0 ; <i1> [#uses=1]
+ br i1 %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.28.i = load int* %G
- %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
+ %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
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
+ %tmp.34.i = icmp eq i32 0, 3 ; <i1> [#uses=1]
+ br i1 %tmp.34.i, label %then.5.i, label %endif.5.i
shortcirc_done.i: ; preds = %else.1.i56
ret void
@@ -57,4 +57,4 @@ endif.5.i: ; preds = %shortcirc_next.i
ret void
}
-declare long %lseek(int, long, int)
+declare i64 @lseek(i32, i64, i32)