Revert "Replace a big gob of old coalescer logic with the new CoalescerPair class."
[oota-llvm.git] / test / CodeGen / ARM / 2009-08-21-PostRAKill3.ll
1 ; RUN: llc < %s -asm-verbose=false -O3 -relocation-model=pic -disable-fp-elim -mtriple=thumbv7-apple-darwin -mcpu=cortex-a8 -post-RA-scheduler
2
3 ; ModuleID = '<stdin>'
4 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:64"
5 target triple = "armv7-apple-darwin9"
6
7 %struct.Hosp = type { i32, i32, i32, %struct.List, %struct.List, %struct.List, %struct.List }
8 %struct.List = type { %struct.List*, %struct.Patient*, %struct.List* }
9 %struct.Patient = type { i32, i32, i32, %struct.Village* }
10 %struct.Village = type { [4 x %struct.Village*], %struct.Village*, %struct.List, %struct.Hosp, i32, i32 }
11
12 define %struct.Village* @alloc_tree(i32 %level, i32 %label, %struct.Village* %back, i1 %p) nounwind {
13 entry:
14   br i1 %p, label %bb8, label %bb1
15
16 bb1:                                              ; preds = %entry
17   %0 = malloc %struct.Village                     ; <%struct.Village*> [#uses=3]
18   %exp2 = call double @ldexp(double 1.000000e+00, i32 %level) nounwind ; <double> [#uses=1]
19   %.c = fptosi double %exp2 to i32                ; <i32> [#uses=1]
20   store i32 %.c, i32* null
21   %1 = getelementptr %struct.Village* %0, i32 0, i32 3, i32 6, i32 0 ; <%struct.List**> [#uses=1]
22   store %struct.List* null, %struct.List** %1
23   %2 = getelementptr %struct.Village* %0, i32 0, i32 3, i32 6, i32 2 ; <%struct.List**> [#uses=1]
24   store %struct.List* null, %struct.List** %2
25   ret %struct.Village* %0
26
27 bb8:                                              ; preds = %entry
28   ret %struct.Village* null
29 }
30
31 declare double @ldexp(double, i32)