aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/2009-08-21-PostRAKill3.ll
blob: c36053a6279a08e472e2dc7f1e9bc1e60aad37a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
; RUN: llc < %s -asm-verbose=false -O3 -relocation-model=pic -disable-fp-elim -mtriple=thumbv7-apple-darwin -mcpu=cortex-a8 -disable-post-RA-scheduler=0 -avoid-hazards

; ModuleID = '<stdin>'
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"
target triple = "armv7-apple-darwin9"

%struct.Hosp = type { i32, i32, i32, %struct.List, %struct.List, %struct.List, %struct.List }
%struct.List = type { %struct.List*, %struct.Patient*, %struct.List* }
%struct.Patient = type { i32, i32, i32, %struct.Village* }
%struct.Village = type { [4 x %struct.Village*], %struct.Village*, %struct.List, %struct.Hosp, i32, i32 }

define arm_apcscc %struct.Village* @alloc_tree(i32 %level, i32 %label, %struct.Village* %back, i1 %p) nounwind {
entry:
  br i1 %p, label %bb8, label %bb1

bb1:                                              ; preds = %entry
  %0 = malloc %struct.Village                     ; <%struct.Village*> [#uses=3]
  %exp2 = call double @ldexp(double 1.000000e+00, i32 %level) nounwind ; <double> [#uses=1]
  %.c = fptosi double %exp2 to i32                ; <i32> [#uses=1]
  store i32 %.c, i32* null
  %1 = getelementptr %struct.Village* %0, i32 0, i32 3, i32 6, i32 0 ; <%struct.List**> [#uses=1]
  store %struct.List* null, %struct.List** %1
  %2 = getelementptr %struct.Village* %0, i32 0, i32 3, i32 6, i32 2 ; <%struct.List**> [#uses=1]
  store %struct.List* null, %struct.List** %2
  ret %struct.Village* %0

bb8:                                              ; preds = %entry
  ret %struct.Village* null
}

declare double @ldexp(double, i32)