1 ; July 6, 2002 -- LLC Regression test
2 ; This test case checks if the integer CC register %xcc (or %ccr)
3 ; is correctly spilled. The code fragment came from function
4 ; MakeGraph in Olden-mst.
5 ; The original code made all comparisons with 0, so that the %xcc
6 ; register is not needed for the branch in the first basic block.
7 ; Replace 0 with 1 in the first comparson so that the
8 ; branch-on-register instruction cannot be used directly, i.e.,
9 ; the %xcc register is needed for the first branch.
11 %Graph = type %struct.graph_st*
12 %Hash = type %struct.hash*
13 %HashEntry = type %struct.hash_entry*
14 %Vertex = type %struct.vert_st*
15 %struct.graph_st = type { [1 x %Vertex] }
16 %struct.hash = type { %HashEntry*, int (uint)*, int }
17 %struct.hash_entry = type { uint, sbyte*, %HashEntry }
18 %struct.vert_st = type { int, %Vertex, %Hash }
19 %HashRange = uninitialized global int ; <int*> [#uses=1]
20 %.LC0 = internal global [13 x sbyte] c"Make phase 2\00" ; <[13 x sbyte]*> [#uses=1]
21 %.LC1 = internal global [13 x sbyte] c"Make phase 3\00" ; <[13 x sbyte]*> [#uses=1]
22 %.LC2 = internal global [13 x sbyte] c"Make phase 4\00" ; <[13 x sbyte]*> [#uses=1]
23 %.LC3 = internal global [15 x sbyte] c"Make returning\00" ; <[15 x sbyte]*> [#uses=1]
25 implementation ; Functions:
27 %Graph %MakeGraph(int %numvert, int %numproc) {
29 %reg111 = add int %numproc, -1 ; <int> [#uses=3]
30 %cond275 = setlt int %reg111, 1 ; <bool> [#uses=2]
31 %cond276 = setle int %reg111, 0 ; <bool> [#uses=1]
32 %cond277 = setge int %numvert, 0 ; <bool> [#uses=2]
33 %reg162 = add int %numvert, 3 ; <int> [#uses=2]
34 br bool %cond275, label %bb7, label %bb4
37 br bool %cond276, label %bb7, label %bb5
40 br bool %cond277, label %bb7, label %bb6