1 ; RUN: llc -O3 -mtriple=armv6-apple-darwin -relocation-model=pic < %s
3 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:64-n32"
5 define void @compdecomp() nounwind {
7 %heap = alloca [256 x i32], align 4
8 br i1 undef, label %bb25.lr.ph, label %bb17
10 bb17: ; preds = %bb17, %entry
13 bb25.lr.ph: ; preds = %entry
14 %0 = sdiv i32 undef, 2
17 bb.i: ; preds = %bb5.i
18 %1 = shl nsw i32 %k_addr.0.i, 1
19 %.sum8.i = add i32 %1, -1
20 %2 = getelementptr inbounds [256 x i32], [256 x i32]* %heap, i32 0, i32 %.sum8.i
21 %3 = load i32, i32* %2, align 4
22 br i1 false, label %bb5.i, label %bb4.i
24 bb4.i: ; preds = %bb.i
25 %.sum10.i = add i32 %k_addr.0.i, -1
26 %4 = getelementptr inbounds [256 x i32], [256 x i32]* %heap, i32 0, i32 %.sum10.i
27 store i32 %3, i32* %4, align 4
30 bb5.i: ; preds = %bb5.i, %bb4.i, %bb.i, %bb25.lr.ph
31 %k_addr.0.i = phi i32 [ %1, %bb4.i ], [ undef, %bb25.lr.ph ], [ undef, %bb5.i ], [ undef, %bb.i ]
32 %5 = icmp slt i32 %0, %k_addr.0.i
33 br i1 %5, label %bb5.i, label %bb.i