blob: cc92c26aeecec5deac9548108dd52a4f4ea4a1fb [file] [log] [blame]
David Goodwin471850a2009-10-01 21:46:35 +00001; RUN: llc < %s -asm-verbose=false -O3 -relocation-model=pic -disable-fp-elim -mtriple=thumbv7-apple-darwin -mcpu=cortex-a8 -post-RA-scheduler
David Goodwin88a589c2009-08-25 17:03:05 +00002
3; ModuleID = '<stdin>'
4target 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"
5target triple = "armv7-apple-darwin9"
6
7%struct.anon = type { [3 x double], double, %struct.node*, [64 x %struct.bnode*], [64 x %struct.bnode*] }
8%struct.bnode = type { i16, double, [3 x double], i32, i32, [3 x double], [3 x double], [3 x double], double, %struct.bnode*, %struct.bnode* }
9%struct.icstruct = type { [3 x i32], i16 }
10%struct.node = type { i16, double, [3 x double], i32, i32 }
11
Rafael Espindola1e819662010-06-17 15:18:27 +000012declare double @floor(double) nounwind readnone
David Goodwin88a589c2009-08-25 17:03:05 +000013
14define void @intcoord(%struct.icstruct* noalias nocapture sret %agg.result, i1 %a, double %b) {
15entry:
16 br i1 %a, label %bb3, label %bb1
17
18bb1: ; preds = %entry
19 unreachable
20
21bb3: ; preds = %entry
22 br i1 %a, label %bb7, label %bb5
23
24bb5: ; preds = %bb3
25 unreachable
26
27bb7: ; preds = %bb3
28 br i1 %a, label %bb11, label %bb9
29
30bb9: ; preds = %bb7
Rafael Espindola1e819662010-06-17 15:18:27 +000031 %0 = tail call double @floor(double %b) nounwind readnone ; <double> [#uses=0]
David Goodwin88a589c2009-08-25 17:03:05 +000032 br label %bb11
33
34bb11: ; preds = %bb9, %bb7
35 %1 = getelementptr %struct.icstruct* %agg.result, i32 0, i32 0, i32 0 ; <i32*> [#uses=1]
36 store i32 0, i32* %1
37 ret void
38}