1 ; RUN: llc < %s | FileCheck %s
2 target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:32:64-v128:32:128-a0:0:32-n32"
3 target triple = "thumbv7-apple-darwin10"
5 %struct.op = type { %struct.op*, %struct.op*, %struct.op* ()*, i32, i16, i16, i8, i8 }
9 ; CHECK: mov [[REGISTER:(r[0-9]+)|(lr)]]
10 ; CHECK: str {{(r[0-9])|(lr)}}, {{\[}}[[REGISTER]]{{\]}}, #24
12 define void @Perl_ck_sort() nounwind optsize {
14 %tmp27 = load %struct.op** undef, align 4
15 switch i16 undef, label %if.end151 [
16 i16 178, label %if.then60
17 i16 177, label %if.then60
20 if.then60: ; preds = %if.then40
21 br i1 undef, label %if.then67, label %if.end95
23 if.then67: ; preds = %if.then60
24 %op_next71 = getelementptr inbounds %struct.op* %tmp27, i32 0, i32 0
25 store %struct.op* %tmp27, %struct.op** %op_next71, align 4
26 %0 = getelementptr inbounds %struct.op* %tmp27, i32 1, i32 0
29 if.end95: ; preds = %if.else92, %if.then67
30 %.pre-phi = phi %struct.op** [ undef, %if.then60 ], [ %0, %if.then67 ]
31 %tmp98 = load %struct.op** %.pre-phi, align 4
34 if.end151: ; preds = %if.end100, %if.end, %entry