1 ; RUN: llc < %s -mtriple=thumbv7-apple-ios -relocation-model=pic -frame-pointer=all -mcpu=cortex-a8
2 ; RUN: llc < %s -mtriple=thumbv8-none-linux-gnueabi
4 %struct.LIST_NODE.0.16 = type { ptr, ptr }
6 define ptr @list_AssocListPair(ptr %List, ptr %Key) nounwind readonly {
11 %Scan.0.idx7.val = load ptr, ptr undef, align 4
12 %.idx = getelementptr i8, ptr %Scan.0.idx7.val, i32 4
13 %.idx.val = load ptr, ptr %.idx, align 4
14 %0 = icmp eq ptr %.idx.val, %Key
15 br i1 %0, label %bb5, label %bb2
18 %Scan.0.idx8.val = load ptr, ptr undef, align 4
21 bb3: ; preds = %bb2, %entry
22 %Scan.0 = phi ptr [ %List, %entry ], [ %Scan.0.idx8.val, %bb2 ]
23 %1 = icmp eq ptr %Scan.0, null
24 br i1 %1, label %bb5, label %bb
26 bb5: ; preds = %bb3, %bb
30 declare void @use(i32)
31 define double @find_max_double(i32 %n, ptr nocapture readonly %aa) {
33 br i1 undef, label %for.body, label %for.end
35 for.body: ; preds = %for.body, %entry
36 %0 = load double, ptr null, align 8
37 %cmp2.6 = fcmp ogt double %0, 0.000000e+00
38 %idx.1.6 = select i1 %cmp2.6, i32 undef, i32 0
39 %idx.1.7 = select i1 undef, i32 undef, i32 %idx.1.6
40 %max.1.7 = select i1 undef, double 0.000000e+00, double undef
41 br i1 undef, label %for.end, label %for.body
43 for.end: ; preds = %for.body, %entry
44 %max.0.lcssa = phi double [ undef, %entry ], [ %max.1.7, %for.body ]
45 %idx.0.lcssa = phi i32 [ 0, %entry ], [ %idx.1.7, %for.body ]
46 tail call void @use(i32 %idx.0.lcssa)
47 ret double %max.0.lcssa