diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-02-19 01:41:04 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-02-19 01:41:04 +0000 |
commit | 53a66d10f01ebfeac7b8e59ca677f2cf2d4a3b26 (patch) | |
tree | 896c6dee3a55f268ea98656237c7954799fd8ec7 /test/CodeGen/Generic/spillccr.ll | |
parent | efec751a1b786724862ceff52748df94873a807e (diff) | |
download | external_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/spillccr.ll')
-rw-r--r-- | test/CodeGen/Generic/spillccr.ll | 73 |
1 files changed, 36 insertions, 37 deletions
diff --git a/test/CodeGen/Generic/spillccr.ll b/test/CodeGen/Generic/spillccr.ll index 6ae7506..120668a 100644 --- a/test/CodeGen/Generic/spillccr.ll +++ b/test/CodeGen/Generic/spillccr.ll @@ -1,4 +1,4 @@ -; RUN: llvm-upgrade %s | llvm-as | llc +; RUN: llvm-as < %s -o - | llc ; July 6, 2002 -- LLC Regression test ; This test case checks if the integer CC register %xcc (or %ccr) @@ -10,41 +10,40 @@ ; branch-on-register instruction cannot be used directly, i.e., ; the %xcc register is needed for the first branch. ; - %Graph = type %struct.graph_st* - %Hash = type %struct.hash* - %HashEntry = type %struct.hash_entry* - %Vertex = type %struct.vert_st* - %struct.graph_st = type { [1 x %Vertex] } - %struct.hash = type { %HashEntry*, int (uint)*, int } - %struct.hash_entry = type { uint, sbyte*, %HashEntry } - %struct.vert_st = type { int, %Vertex, %Hash } -%HashRange = uninitialized global int ; <int*> [#uses=1] -%.LC0 = internal global [13 x sbyte] c"Make phase 2\00" ; <[13 x sbyte]*> [#uses=1] -%.LC1 = internal global [13 x sbyte] c"Make phase 3\00" ; <[13 x sbyte]*> [#uses=1] -%.LC2 = internal global [13 x sbyte] c"Make phase 4\00" ; <[13 x sbyte]*> [#uses=1] -%.LC3 = internal global [15 x sbyte] c"Make returning\00" ; <[15 x sbyte]*> [#uses=1] - -implementation ; Functions: - -%Graph %MakeGraph(int %numvert, int %numproc) { -bb1: ;[#uses=1] - %reg111 = add int %numproc, -1 ; <int> [#uses=3] - %cond275 = setlt int %reg111, 1 ; <bool> [#uses=2] - %cond276 = setle int %reg111, 0 ; <bool> [#uses=1] - %cond277 = setge int %numvert, 0 ; <bool> [#uses=2] - %reg162 = add int %numvert, 3 ; <int> [#uses=2] - br bool %cond275, label %bb7, label %bb4 - -bb4: - br bool %cond276, label %bb7, label %bb5 - -bb5: - br bool %cond277, label %bb7, label %bb6 - -bb6: ;[#uses=2] - ret %Graph null - -bb7: ;[#uses=2] - ret %Graph null + + %Graph = type %struct.graph_st* + %Hash = type %struct.hash* + %HashEntry = type %struct.hash_entry* + %Vertex = type %struct.vert_st* + %struct.graph_st = type { [1 x %Vertex] } + %struct.hash = type { %HashEntry*, i32 (i32)*, i32 } + %struct.hash_entry = type { i32, i8*, %HashEntry } + %struct.vert_st = type { i32, %Vertex, %Hash } +@HashRange = external global i32 ; <i32*> [#uses=0] +@.LC0 = internal global [13 x i8] c"Make phase 2\00" ; <[13 x i8]*> [#uses=0] +@.LC1 = internal global [13 x i8] c"Make phase 3\00" ; <[13 x i8]*> [#uses=0] +@.LC2 = internal global [13 x i8] c"Make phase 4\00" ; <[13 x i8]*> [#uses=0] +@.LC3 = internal global [15 x i8] c"Make returning\00" ; <[15 x i8]*> [#uses=0] + +define %Graph @MakeGraph(i32 %numvert, i32 %numproc) { +bb1: + %reg111 = add i32 %numproc, -1 ; <i32> [#uses=2] + %cond275 = icmp slt i32 %reg111, 1 ; <i1> [#uses=1] + %cond276 = icmp sle i32 %reg111, 0 ; <i1> [#uses=1] + %cond277 = icmp sge i32 %numvert, 0 ; <i1> [#uses=1] + %reg162 = add i32 %numvert, 3 ; <i32> [#uses=0] + br i1 %cond275, label %bb7, label %bb4 + +bb4: ; preds = %bb1 + br i1 %cond276, label %bb7, label %bb5 + +bb5: ; preds = %bb4 + br i1 %cond277, label %bb7, label %bb6 + +bb6: ; preds = %bb5 + ret %Graph null + +bb7: ; preds = %bb5, %bb4, %bb1 + ret %Graph null } |